16#include <TGeoVolume.h>
18#include <TGeoPhysicalNode.h>
139 Bool_t
IsHit(Int_t layer, Int_t wire);
149 static const int m_kSegment = 66;
150 static const int m_kStereoLayerIn = 8;
151 static const int m_kAxialLayerIn = 12;
152 static const int m_kStereoLayerOut = 16;
153 static const int m_kAxialLayerOut = 7;
154 static const int m_kLayer = 50;
155 static const int m_kTrueLayer = 43;
156 static const int m_kReplicaMax = 288;
157 static const int m_kReplica[m_kLayer];
158 static const int m_kStereoDir[m_kTrueLayer];
159 static const int m_kCorrectLayer = 10;
160 static const int m_kiCorrectLayer[m_kCorrectLayer];
161 static const int m_kiCorrectReplica[m_kCorrectLayer];
164 static const int m_kSegmentNodeOffset = 891;
165 static const int m_kSegmentBr = 2;
170 Bool_t k_QNotOverflow;
171 Bool_t k_ColorfulWire;
172 Bool_t k_MdcTimeSubEvTime;
177 static const int MDC_TIME_FACTOR = 100000;
178 static const int MDC_CHARGE_FACTOR = 1000000;
184 int m_twistedTubsColor;
187 std::map<int ,int> m_CorrectMap;
188 typedef std::map<int, int> intMap;
191 TGeoNode *m_NodeLayer[m_kLayer];
192 TGeoNode *m_NodeReplica[m_kLayer][m_kReplicaMax];
193 TGeoPhysicalNode *m_PhysicalSegment[m_kSegment*2];
194 TGeoPhysicalNode *m_PhysicalReplica[m_kLayer][m_kReplicaMax];
196 const TObjArray *m_MdcDigiCol;
201 Mdc2DWire *m_Mdc2DWire[m_kTrueLayer][m_kReplicaMax];
TGeoNode * GetSegment(int segment, int no)
Get segment node;.
void SetTFire(Bool_t input)
int GetSegmentNb()
Get number of segments;.
int CorrectReplica(int layer, int replica)
Correct some axial layer id to copyNo;.
void SetVolumeDefaultVis()
Set default visual attributes;.
TGeoVolume * GetVolumeLayer(int layer)
Get layer volume;
MdcROOTGeo(Bool_t cgem_flag=0)
Constructor.
TGeoPhysicalNode * GetPhysicalSegment(int segment)
Get segment physical node;.
int GetReplicaNb(int layer)
Get number of replicas on each layer;.
void SetQuarterVisible()
Set quater visible;.
void SetNode()
Set the pointers to theirs nodes;.
void SetMdcTimeSubEvTime(Bool_t input)
int GetLayerNb()
Get number of layers;.
TGeoNode * GetLayer(int layer)
Get layer node;
void SetQFire(Bool_t input)
void SetQNotOverflow(Bool_t input)
void DrawHits(Option_t *option)
Draw 2D hits.
void SetColorfulWire(Bool_t input)
void InitFromROOT(TGeoVolume *vol)
Initialize ROOTGeo from TGeoVolume logicalMdc.
void Init2DGeometry()
Initialize 2D Geometry.
TGeoNode * GetReplica(int layer, int replica)
Get replica node;.
TGeoVolume * GetVolumeReplica(int layer)
Get replica volume;.
TGeoVolume * GetVolumeSegment(int segment)
Get segment volume;.
void Draw(Option_t *option)
Draw function.
void SetVisMdcHits()
Set Mdc hits visibility;.
void SetVisMdcDetector()
Set Mdc default detector visibility;.
Int_t GetSimuLayer(Int_t trueLayer)
Trans trueLayer to simuLayer (0~42)->(0~49)
Mdc2DWire * Get2DWire(Int_t layer, Int_t replica)
Get Mdc2DWire;.
void SetVolumeMdc(TGeoVolume *vol)
Set Mdc volume, while initializing from ROOT;.
void SetHalfVisible()
Set half visible;.
TGeoPhysicalNode * GetPhysicalReplica(int layer, int replica)
Get replica physical node;.
void SetPhysicalDefaultVis()
Set default physical node attributes;.
void SetPhysicalNode()
Set the pointers to the physical nodes;.
void SetAllVisible()
Set all visible;.
TGeoVolume * GetVolumeMdc()
Get Mdc volume;.
Bool_t IsHit(Int_t layer, Int_t wire)
Judge whether the digiCol contains (layer, wire)
void SetDetector()
Draw Detecor (what is detector depends on you)
void InitFromGDML(const char *gdmlFile, const char *setupName)
Initialize ROOTGeo from GDML.
void SetHits()
Set all physicalNodes corresponding to digiCol;.