16#include <TGeoVolume.h>
18#include <TGeoPhysicalNode.h>
44 void InitFromGDML(
const char *gdmlFile,
const char *setupName );
141 Bool_t
IsHit(Int_t layer, Int_t wire);
144 void Draw(Option_t *option);
151 static const int m_kSegment = 66;
152 static const int m_kStereoLayerIn = 8;
153 static const int m_kAxialLayerIn = 12;
154 static const int m_kStereoLayerOut = 16;
155 static const int m_kAxialLayerOut = 7;
156 static const int m_kLayer = 50;
157 static const int m_kTrueLayer = 43;
158 static const int m_kReplicaMax = 288;
159 static const int m_kReplica[m_kLayer];
160 static const int m_kStereoDir[m_kTrueLayer];
161 static const int m_kCorrectLayer = 10;
162 static const int m_kiCorrectLayer[m_kCorrectLayer];
163 static const int m_kiCorrectReplica[m_kCorrectLayer];
166 static const int m_kSegmentNodeOffset = 891;
167 static const int m_kSegmentBr = 2;
172 Bool_t k_QNotOverflow;
173 Bool_t k_ColorfulWire;
174 Bool_t k_MdcTimeSubEvTime;
179 static const int MDC_TIME_FACTOR = 100000;
180 static const int MDC_CHARGE_FACTOR = 1000000;
186 int m_twistedTubsColor;
189 std::map<int ,int> m_CorrectMap;
190 typedef std::map<int, int> intMap;
193 TGeoNode *m_NodeLayer[m_kLayer];
194 TGeoNode *m_NodeReplica[m_kLayer][m_kReplicaMax];
195 TGeoPhysicalNode *m_PhysicalSegment[m_kSegment*2];
198 const TObjArray *m_MdcDigiCol;
203 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;
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 SetVisMdcHits()
Set Mdc hits visibility;.
void ClearHits()
Set all physicalNodes corresponding to digiCol;.
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.