14#include <TGeoVolume.h>
16#include <TGeoPhysicalNode.h>
40 void InitFromGDML(
const char *gdmlFile,
const char *setupName );
117 TGeoNode *
GetPVF(
int part,
int layer,
int scin );
120 TGeoNode *
GetAl(
int part,
int layer );
135 Int_t
GetPart(TGeoPhysicalNode* phyNode);
138 void Draw(Option_t *option);
144 static const int m_kPart = 3;
145 static const int m_kLayerBr = 2;
146 static const int m_kLayerEc = 1;
147 static const int m_kScinBr = 88;
148 static const int m_kScinEc = 48;
149 static const int m_kBucketEc = 1;
150 static const int m_kBucketBr = 2;
152 static const int TOF_TIME_FACTOR = 1000000;
153 static const int TOF_CHARGE_FACTOR = 1000000;
163 TGeoNode *m_NodePVF[m_kPart][m_kLayerBr][m_kScinBr];
164 TGeoNode *m_NodeAl[m_kPart][m_kLayerBr];
165 TGeoNode *m_NodeScin[m_kPart][m_kLayerBr];
166 TGeoPhysicalNode *m_PhysicalScin[m_kPart][m_kLayerBr][m_kScinBr];
168 const TObjArray *m_TofDigiCol;
171 Tof2DScin *m_Tof2DScin[m_kPart][m_kLayerBr][m_kScinBr];
TGeoNode * GetAl(int part, int layer)
Get Al node;.
void SetQuarterVisible()
Set quater visible;.
TGeoVolume * GetVolumeScin(int part)
Get scintillator volume;.
void SetVolumeTof(TGeoVolume *vol)
Set Tof volume, while initializing from ROOT;.
void InitFromROOT(TGeoVolume *vol)
Initialize ROOTGeo from TGeoVolume logicalTof.
TGeoVolume * GetVolumeAl(int part, int layer)
Get Al volume;.
void Draw(Option_t *option)
Draw function.
int GetPartNb()
Get number of part;.
void InitFromGDML(const char *gdmlFile, const char *setupName)
Initialize ROOTGeo from GDML.
TGeoVolume * GetVolumeTof()
Get Tof volume;.
TGeoVolume * GetVolumeBucket(int part)
Get bucket volume;.
void SetHalfVisible()
Set half visible;.
void SetQMatch(Bool_t input)
void SetNoEndVisible()
Set noend visible;.
void SetHits()
Set all physicalNodes corresponding to digiCol;.
TGeoVolume * GetVolumePart(int part)
Get assembly volume; part=0,2 for AssemblyEc, 1 for AssemblyBr;
void SetDetector()
Draw Detecor (what is detector depends on you)
void DrawHits(Option_t *option)
Draw 2D hits.
Tof2DScin * Get2DScin(Int_t part, Int_t layer, Int_t scin)
Get Tof2DScin;.
void SetVisTofDetector()
Set Tof detector visibility;.
int GetScinNb(int part)
Get number of scintillators on each part;.
void SetPhysicalNode()
Set the pointers to the physical nodes;.
TGeoNode * GetPVF(int part, int layer, int scin)
Get PVF node;.
void Init2DGeometry()
Initialize 2D Geometry.
TGeoVolume * GetVolumePVF(int part, int layer)
Get PVF volume;.
void SetTMatch(Bool_t input)
void SetVisTofHits()
Set Tof hits visibility;.
TGeoPhysicalNode * GetPhysicalScin(int part, int scin)
Get scintillator physical node;.
Int_t GetPart(TGeoPhysicalNode *phyNode)
Get part no of a scintillator physcial node.
TGeoNode * GetScin(int part, int layer)
Get scintillator node;.
void SetNode()
Set the pointers to theirs nodes;.
void SetVolumeDefaultVis()
Set default visual attributes;.
void SetAllVisible()
Set all visible;.