CbmRoot
CbmMuchModuleGem.h
Go to the documentation of this file.
1 
10 #ifndef CBMMUCHMODULEGEM_H
11 #define CBMMUCHMODULEGEM_H 1
12 
13 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
14 #include <RtypesCore.h> // for Int_t, Bool_t, Color_t, Double_t, kTRUE
15 #include <TVector3.h> // for TVector3
16 
17 #include <vector> // for vector
18 
19 #include "CbmMuchModule.h" // for CbmMuchModule
20 
21 class CbmMuchPad;
22 class CbmMuchSector;
23 
25 public:
28 
37  CbmMuchModuleGem(Int_t iStation,
38  Int_t iLayer,
39  Bool_t iSide,
40  Int_t iModule,
41  TVector3 position,
42  TVector3 size,
43  Double_t cutRadius);
44 
46  virtual ~CbmMuchModuleGem() {}
47 
49  CbmMuchSector* GetSector(Int_t address);
50 
52  CbmMuchPad* GetPad(Int_t address);
53 
54  CbmMuchSector* GetSectorByIndex(Int_t iSector) { return fSectors[iSector]; }
55 
57  Int_t GetNSectors() const { return fSectors.size(); }
58 
60  std::vector<CbmMuchPad*> GetPads();
61 
63  Int_t GetNPads();
64 
67  void AddSector(CbmMuchSector* sector) { fSectors.push_back(sector); }
68 
70  virtual Bool_t InitModule() { return kTRUE; }
71 
73  void DrawModule(Color_t color);
74 
75  void DrawPads();
76  void SetPadFired(Int_t address, Int_t digiIndex, Int_t adcCharge);
77 
78 protected:
79  std::vector<CbmMuchSector*> fSectors; // Array of sectors within this module
80 
82 };
83 #endif
CbmMuchModule.h
CbmMuchModuleGem::AddSector
void AddSector(CbmMuchSector *sector)
Definition: CbmMuchModuleGem.h:67
CbmMuchModuleGem::GetPads
std::vector< CbmMuchPad * > GetPads()
Definition: CbmMuchModuleGem.cxx:41
CbmMuchModuleGem::ClassDef
ClassDef(CbmMuchModuleGem, 2)
CbmMuchSector
Definition: CbmMuchSector.h:22
CbmMuchModuleGem::SetPadFired
void SetPadFired(Int_t address, Int_t digiIndex, Int_t adcCharge)
Definition: CbmMuchModuleGem.cxx:110
CbmMuchModuleGem::GetSector
CbmMuchSector * GetSector(Int_t address)
Definition: CbmMuchModuleGem.cxx:71
CbmMuchModuleGem::DrawModule
void DrawModule(Color_t color)
Definition: CbmMuchModuleGem.cxx:88
CbmMuchModuleGem::~CbmMuchModuleGem
virtual ~CbmMuchModuleGem()
Definition: CbmMuchModuleGem.h:46
CbmMuchModuleGem::GetNPads
Int_t GetNPads()
Definition: CbmMuchModuleGem.cxx:58
CbmMuchModuleGem
Definition: CbmMuchModuleGem.h:24
CbmMuchModuleGem::fSectors
std::vector< CbmMuchSector * > fSectors
Definition: CbmMuchModuleGem.h:79
CbmMuchModule
Definition: CbmMuchModule.h:24
CbmMuchPad
Definition: CbmMuchPad.h:21
CbmMuchModuleGem::InitModule
virtual Bool_t InitModule()
Definition: CbmMuchModuleGem.h:70
CbmMuchModuleGem::GetPad
CbmMuchPad * GetPad(Int_t address)
Definition: CbmMuchModuleGem.cxx:79
CbmMuchModuleGem::GetSectorByIndex
CbmMuchSector * GetSectorByIndex(Int_t iSector)
Definition: CbmMuchModuleGem.h:54
CbmMuchModuleGem::GetNSectors
Int_t GetNSectors() const
Definition: CbmMuchModuleGem.h:57
CbmMuchModuleGem::DrawPads
void DrawPads()
Definition: CbmMuchModuleGem.cxx:101
CbmMuchModuleGem::CbmMuchModuleGem
CbmMuchModuleGem()
Definition: CbmMuchModuleGem.cxx:23