GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TBgo.h
Go to the documentation of this file.
1#ifndef TBGO_H
2#define TBGO_H
3
4/** \addtogroup Detectors
5 * @{
6 */
7
8#include <cstdio>
9//#include <tuple>
10
11#include "TVector3.h"
12
13#include "TBgoHit.h"
14#include "TDetector.h"
15
16class TBgo : public TDetector {
17public:
18 TBgo();
19 TBgo(const TBgo&);
20 TBgo(TBgo&&) noexcept;
22
23 TBgoHit* GetBgoHit(const Int_t& index) { return static_cast<TBgoHit*>(GetHit(index)); }
24
25 static TVector3 GetPosition(int DetNbr, int CryNbr = 5, double distance = 110.0); //!<!
26#ifndef __CINT__
27 void AddFragment(const std::shared_ptr<const TFragment>& frag, TChannel* chan) override; //!<!
28#endif
29 void BuildHits() override {} // no need to build any hits, everything already done in AddFragment
30
31 TBgo& operator=(const TBgo&); //!<!
32 TBgo& operator=(TBgo&&) noexcept; //!<!
33
34private:
35 static std::array<TVector3, 17> fScintPosition; //!<! Position of each BGO scintillator
37public:
38 void Copy(TObject&) const override; //!<!
39 void Clear(Option_t* opt = "all") override; //!<!
40 void Print(Option_t* opt = "") const override; //!<!
41 void Print(std::ostream& out) const override; //!<!
42
43 /// \cond CLASSIMP
44 ClassDefOverride(TBgo, 1) // NOLINT(readability-else-after-return)
45 /// \endcond
46};
47/*! @} */
48#endif
Definition TBgo.h:16
TBgo()
Definition TBgo.cxx:92
static TVector3 GetPosition(int DetNbr, int CryNbr=5, double distance=110.0)
!
Definition TBgo.cxx:165
TBgo & operator=(const TBgo &)
!
Definition TBgo.cxx:110
void Copy(TObject &) const override
!
Definition TBgo.cxx:126
void Clear(Option_t *opt="all") override
!
Definition TBgo.cxx:134
static std::array< TVector3, 17 > fScintPosition
! Position of each BGO scintillator
Definition TBgo.h:36
void AddFragment(const std::shared_ptr< const TFragment > &frag, TChannel *chan) override
!
Definition TBgo.cxx:153
TBgoHit * GetBgoHit(const Int_t &index)
Definition TBgo.h:23
void BuildHits() override
!
Definition TBgo.h:29
void Print(Option_t *opt="") const override
!
Definition TBgo.cxx:140
virtual TDetectorHit * GetHit(const int &index) const
Definition TDetector.cxx:84