CGEM BOSS 6.6.5.g
BESIII Offline Software System
|
#include <MdcROOTGeo.h>
Public Member Functions | |
MdcROOTGeo () | |
Constructor. | |
~MdcROOTGeo () | |
Destructor. | |
void | InitFromGdml (const char *gdmlFile, const char *setupName) |
Initialize the instance of ROOTGeo. | |
void | SetNode () |
Set the pointers to theirs nodes;. | |
int | CorrectReplica (int layer, int replica) |
Correct some axial layer id to copyNo;. | |
void | SetDefaultVis () |
Set default visual attributes;. | |
void | SetAllVisible () |
Set all visible;. | |
void | SetQuarterVisible () |
Set quater visible;. | |
void | SetPhysicalNode () |
Set the pointers to the physical nodes;. | |
int | GetSegmentNb () |
Get number of segments;. | |
int | GetLayerNb () |
Get number of layers;. | |
int | GetReplicaNb (int layer) |
Get number of replicas on each layer;. | |
TGeoVolume * | GetVolumeMdc () |
Get Mdc volume;. | |
TGeoVolume * | GetVolumeSegment (int segment) |
Get segment volume;. | |
TGeoVolume * | GetVolumeLayer (int layer) |
Get layer volume; | |
TGeoVolume * | GetVolumeReplica (int layer) |
Get replica volume;. | |
TGeoNode * | GetSegment (int segment, int no) |
Get segment node;. | |
TGeoNode * | GetLayer (int layer) |
Get layer node; | |
TGeoNode * | GetReplica (int layer, int replica) |
Get replica node;. | |
TGeoPhysicalNode * | GetPhysicalReplica (int layer, int replica) |
Get replica physical node;. | |
MdcROOTGeo (Bool_t cgem_flag=0) | |
Constructor. | |
~MdcROOTGeo () | |
Destructor. | |
void | InitFromGDML (const char *gdmlFile, const char *setupName) |
Initialize ROOTGeo from GDML. | |
void | InitFromROOT (TGeoVolume *vol) |
Initialize ROOTGeo from TGeoVolume logicalMdc. | |
void | Init2DGeometry () |
Initialize 2D Geometry. | |
void | SetNode () |
Set the pointers to theirs nodes;. | |
int | CorrectReplica (int layer, int replica) |
Correct some axial layer id to copyNo;. | |
void | SetVolumeDefaultVis () |
Set default visual attributes;. | |
void | SetAllVisible () |
Set all visible;. | |
void | SetQuarterVisible () |
Set quater visible;. | |
void | SetHalfVisible () |
Set half visible;. | |
void | SetPhysicalNode () |
Set the pointers to the physical nodes;. | |
void | SetPhysicalDefaultVis () |
Set default physical node attributes;. | |
void | SetDetector () |
Draw Detecor (what is detector depends on you) | |
void | ClearHits () |
Set all physicalNodes corresponding to digiCol;. | |
void | SetHits () |
void | SetTFire (Bool_t input) |
void | SetQFire (Bool_t input) |
void | SetQNotOverflow (Bool_t input) |
void | SetColorfulWire (Bool_t input) |
void | SetMdcTimeSubEvTime (Bool_t input) |
void | SetVisMdcDetector () |
Set Mdc default detector visibility;. | |
void | SetVisMdcHits () |
Set Mdc hits visibility;. | |
int | GetSegmentNb () |
Get number of segments;. | |
int | GetLayerNb () |
Get number of layers;. | |
int | GetReplicaNb (int layer) |
Get number of replicas on each layer;. | |
void | SetVolumeMdc (TGeoVolume *vol) |
Set Mdc volume, while initializing from ROOT;. | |
TGeoVolume * | GetVolumeMdc () |
Get Mdc volume;. | |
TGeoVolume * | GetVolumeSegment (int segment) |
Get segment volume;. | |
TGeoVolume * | GetVolumeLayer (int layer) |
Get layer volume; | |
TGeoVolume * | GetVolumeReplica (int layer) |
Get replica volume;. | |
TGeoNode * | GetSegment (int segment, int no) |
Get segment node;. | |
TGeoNode * | GetLayer (int layer) |
Get layer node; | |
TGeoNode * | GetReplica (int layer, int replica) |
Get replica node;. | |
TGeoPhysicalNode * | GetPhysicalSegment (int segment) |
Get segment physical node;. | |
TGeoPhysicalNode * | GetPhysicalReplica (int layer, int replica) |
Get replica physical node;. | |
Mdc2DWire * | Get2DWire (Int_t layer, Int_t replica) |
Get Mdc2DWire;. | |
Int_t | GetSimuLayer (Int_t trueLayer) |
Trans trueLayer to simuLayer (0~42)->(0~49) | |
Bool_t | IsHit (Int_t layer, Int_t wire) |
Judge whether the digiCol contains (layer, wire) | |
void | Draw (Option_t *option) |
Draw function. | |
void | DrawHits (Option_t *option) |
Draw 2D hits. | |
Public Member Functions inherited from SubDetectorROOTGeo | |
SubDetectorROOTGeo () | |
Constructor. | |
virtual | ~SubDetectorROOTGeo () |
Destructor. | |
void | ReadGdml (const char *gdmlFile, const char *setupName) |
Initialize the instance of ROOTGeo. | |
int | IsInitialized () |
If the ROOT geometry of this subdetctor is initialized;. | |
void | SetChildNo (int childNo) |
TGeoVolume * | GetLogicalVolume (const std::string &vn) |
Get a logical volume by name;. | |
TGeoVolume * | GetTopVolume () |
Get the top(world) volume;. | |
TGeoVolumeAssembly * | GetAssemblyVolume (const std::string &an) |
Get an assembly by name;. | |
TGeoNode * | GetNode (const std::string &nn) |
Get a node(physical volume) by name;. | |
SubDetectorROOTGeo () | |
Constructor. | |
virtual | ~SubDetectorROOTGeo () |
Destructor. | |
virtual void | ReadGdml (const char *gdmlFile, const char *setupName) |
Initialize the instance of ROOTGeo. | |
virtual int | IsInitialized () |
If the ROOT geometry of this subdetctor is initialized;. | |
virtual void | SetChildNo (int childNo) |
virtual TGeoVolume * | GetLogicalVolume (const std::string &vn) |
Get a logical volume by name;. | |
virtual TGeoVolume * | GetTopVolume () |
Get the top(world) volume;. | |
virtual TGeoVolumeAssembly * | GetAssemblyVolume (const std::string &an) |
Get an assembly by name;. | |
virtual TGeoNode * | GetNode (const std::string &nn) |
Get a node(physical volume) by name;. | |
virtual int | GetHitsNum () |
Get number of hits in HitsArray;. | |
virtual TGeoPhysicalNode * | GetHit (int i) |
Get ith hit in HitsArray;. | |
virtual void | SetDetectorOn () |
Set all physicalNodes in m_DeteorsArray visible;. | |
Additional Inherited Members | |
Protected Attributes inherited from SubDetectorROOTGeo | |
int | m_ROOTGeoInit |
int | m_childNo |
TGeoVolume * | m_TopVolume |
int | m_2DGeoInit |
TObjArray * | m_DetectorsArray |
TObjArray * | m_HitsArray |
TObjArray * | m_2DHitsArray |
Class MdcGeo contains all of the objects necessary to describe the mdc geometry.
Definition at line 29 of file DetectorDescription/ROOTGeo/ROOTGeo-00-00-15/ROOTGeo/MdcROOTGeo.h.
MdcROOTGeo::MdcROOTGeo | ( | ) |
Constructor.
Definition at line 36 of file DetectorDescription/ROOTGeo/ROOTGeo-00-00-15/src/MdcROOTGeo.cxx.
MdcROOTGeo::~MdcROOTGeo | ( | ) |
Destructor.
Definition at line 51 of file DetectorDescription/ROOTGeo/ROOTGeo-00-00-15/src/MdcROOTGeo.cxx.
MdcROOTGeo::MdcROOTGeo | ( | Bool_t | cgem_flag = 0 | ) |
Constructor.
Definition at line 51 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/src/MdcROOTGeo.cxx.
MdcROOTGeo::~MdcROOTGeo | ( | ) |
Destructor.
void MdcROOTGeo::ClearHits | ( | ) |
Set all physicalNodes corresponding to digiCol;.
Definition at line 677 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/src/MdcROOTGeo.cxx.
Referenced by BesEvent::ClearHits(), and SetHits().
int MdcROOTGeo::CorrectReplica | ( | int | layer, |
int | replica | ||
) |
Correct some axial layer id to copyNo;.
Definition at line 103 of file DetectorDescription/ROOTGeo/ROOTGeo-00-00-15/src/MdcROOTGeo.cxx.
Referenced by SetNode().
int MdcROOTGeo::CorrectReplica | ( | int | layer, |
int | replica | ||
) |
Correct some axial layer id to copyNo;.
void MdcROOTGeo::Draw | ( | Option_t * | option | ) |
Draw function.
Definition at line 1074 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/src/MdcROOTGeo.cxx.
Referenced by BesGeometry::Draw2DXY(), and BesGeometry::Draw2DZR().
void MdcROOTGeo::DrawHits | ( | Option_t * | option | ) |
Draw 2D hits.
Definition at line 1124 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/src/MdcROOTGeo.cxx.
Referenced by BesEvent::DrawHits().
Mdc2DWire * MdcROOTGeo::Get2DWire | ( | Int_t | layer, |
Int_t | replica | ||
) |
Get Mdc2DWire;.
Definition at line 1044 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/src/MdcROOTGeo.cxx.
Referenced by BesEvent::ConstructMdcTrackFromRec().
TGeoNode * MdcROOTGeo::GetLayer | ( | int | layer | ) |
Get layer node;
Definition at line 334 of file DetectorDescription/ROOTGeo/ROOTGeo-00-00-15/src/MdcROOTGeo.cxx.
Referenced by Init2DGeometry(), SetAllVisible(), SetDefaultVis(), SetHalfVisible(), SetPhysicalNode(), SetQuarterVisible(), and SetVolumeDefaultVis().
TGeoNode * MdcROOTGeo::GetLayer | ( | int | layer | ) |
Get layer node;
int MdcROOTGeo::GetLayerNb | ( | ) |
Get number of layers;.
|
inline |
Get number of layers;.
Definition at line 99 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/BesVisLib/MdcROOTGeo.h.
TGeoPhysicalNode * MdcROOTGeo::GetPhysicalReplica | ( | int | layer, |
int | replica | ||
) |
Get replica physical node;.
Definition at line 376 of file DetectorDescription/ROOTGeo/ROOTGeo-00-00-15/src/MdcROOTGeo.cxx.
Referenced by BesEvent::ConstructMdcTrackFromRec(), BesGeometry::GetPhysicalMdcReplica(), Init2DGeometry(), BesVisDisplay::SetMdcFiredCell(), and SetPhysicalDefaultVis().
TGeoPhysicalNode * MdcROOTGeo::GetPhysicalReplica | ( | int | layer, |
int | replica | ||
) |
Get replica physical node;.
TGeoPhysicalNode * MdcROOTGeo::GetPhysicalSegment | ( | int | segment | ) |
Get segment physical node;.
Definition at line 1019 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/src/MdcROOTGeo.cxx.
TGeoNode * MdcROOTGeo::GetReplica | ( | int | layer, |
int | replica | ||
) |
Get replica node;.
Definition at line 363 of file DetectorDescription/ROOTGeo/ROOTGeo-00-00-15/src/MdcROOTGeo.cxx.
Referenced by SetAllVisible(), SetDefaultVis(), SetHalfVisible(), SetPhysicalNode(), SetQuarterVisible(), and SetVolumeDefaultVis().
TGeoNode * MdcROOTGeo::GetReplica | ( | int | layer, |
int | replica | ||
) |
Get replica node;.
|
inline |
Get number of replicas on each layer;.
Definition at line 67 of file DetectorDescription/ROOTGeo/ROOTGeo-00-00-15/ROOTGeo/MdcROOTGeo.h.
|
inline |
Get number of replicas on each layer;.
Definition at line 102 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/BesVisLib/MdcROOTGeo.h.
TGeoNode * MdcROOTGeo::GetSegment | ( | int | segment, |
int | no | ||
) |
Get segment node;.
Definition at line 320 of file DetectorDescription/ROOTGeo/ROOTGeo-00-00-15/src/MdcROOTGeo.cxx.
Referenced by SetAllVisible(), SetDefaultVis(), SetHalfVisible(), SetQuarterVisible(), and SetVolumeDefaultVis().
TGeoNode * MdcROOTGeo::GetSegment | ( | int | segment, |
int | no | ||
) |
Get segment node;.
int MdcROOTGeo::GetSegmentNb | ( | ) |
Get number of segments;.
|
inline |
Get number of segments;.
Definition at line 96 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/BesVisLib/MdcROOTGeo.h.
Int_t MdcROOTGeo::GetSimuLayer | ( | Int_t | trueLayer | ) |
Trans trueLayer to simuLayer (0~42)->(0~49)
Definition at line 1051 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/src/MdcROOTGeo.cxx.
Referenced by Draw(), Init2DGeometry(), and SetHits().
TGeoVolume * MdcROOTGeo::GetVolumeLayer | ( | int | layer | ) |
Get layer volume;
Definition at line 268 of file DetectorDescription/ROOTGeo/ROOTGeo-00-00-15/src/MdcROOTGeo.cxx.
Referenced by BesGeometry::GetVolumeMdcLayer(), SetAllVisible(), SetDefaultVis(), SetHalfVisible(), SetQuarterVisible(), and SetVolumeDefaultVis().
TGeoVolume * MdcROOTGeo::GetVolumeLayer | ( | int | layer | ) |
Get layer volume;
|
inline |
Get Mdc volume;.
Definition at line 70 of file DetectorDescription/ROOTGeo/ROOTGeo-00-00-15/ROOTGeo/MdcROOTGeo.h.
Referenced by BesEvent::ConstructMcTrack(), BesEvent::ConstructMdcTrackFromRec(), BesGeometry::GetVolumeMdc(), Init2DGeometry(), and BesGeometry::InitFromGDML().
|
inline |
Get Mdc volume;.
Definition at line 108 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/BesVisLib/MdcROOTGeo.h.
TGeoVolume * MdcROOTGeo::GetVolumeReplica | ( | int | layer | ) |
Get replica volume;.
Definition at line 294 of file DetectorDescription/ROOTGeo/ROOTGeo-00-00-15/src/MdcROOTGeo.cxx.
Referenced by BesGeometry::GetVolumeMdcReplica(), SetAllVisible(), SetDefaultVis(), SetHalfVisible(), SetQuarterVisible(), and SetVolumeDefaultVis().
TGeoVolume * MdcROOTGeo::GetVolumeReplica | ( | int | layer | ) |
Get replica volume;.
TGeoVolume * MdcROOTGeo::GetVolumeSegment | ( | int | segment | ) |
Get segment volume;.
Definition at line 260 of file DetectorDescription/ROOTGeo/ROOTGeo-00-00-15/src/MdcROOTGeo.cxx.
Referenced by BesGeometry::GetVolumeMdcSegment(), SetAllVisible(), SetDefaultVis(), SetHalfVisible(), SetQuarterVisible(), and SetVolumeDefaultVis().
TGeoVolume * MdcROOTGeo::GetVolumeSegment | ( | int | segment | ) |
Get segment volume;.
void MdcROOTGeo::Init2DGeometry | ( | ) |
Initialize 2D Geometry.
Definition at line 126 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/src/MdcROOTGeo.cxx.
Referenced by BesGeometry::InitGeometry().
void MdcROOTGeo::InitFromGdml | ( | const char * | gdmlFile, |
const char * | setupName | ||
) |
Initialize the instance of ROOTGeo.
Definition at line 55 of file DetectorDescription/ROOTGeo/ROOTGeo-00-00-15/src/MdcROOTGeo.cxx.
void MdcROOTGeo::InitFromGDML | ( | const char * | gdmlFile, |
const char * | setupName | ||
) |
Initialize ROOTGeo from GDML.
Definition at line 110 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/src/MdcROOTGeo.cxx.
Referenced by BesGeometry::InitFromGDML().
void MdcROOTGeo::InitFromROOT | ( | TGeoVolume * | vol | ) |
Initialize ROOTGeo from TGeoVolume logicalMdc.
Definition at line 118 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/src/MdcROOTGeo.cxx.
Referenced by BesGeometry::InitFromROOT().
Bool_t MdcROOTGeo::IsHit | ( | Int_t | layer, |
Int_t | wire | ||
) |
Judge whether the digiCol contains (layer, wire)
Definition at line 1059 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/src/MdcROOTGeo.cxx.
void MdcROOTGeo::SetAllVisible | ( | ) |
Set all visible;.
Definition at line 170 of file DetectorDescription/ROOTGeo/ROOTGeo-00-00-15/src/MdcROOTGeo.cxx.
void MdcROOTGeo::SetAllVisible | ( | ) |
Set all visible;.
void MdcROOTGeo::SetColorfulWire | ( | Bool_t | input | ) |
Definition at line 860 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/src/MdcROOTGeo.cxx.
void MdcROOTGeo::SetDefaultVis | ( | ) |
Set default visual attributes;.
Definition at line 120 of file DetectorDescription/ROOTGeo/ROOTGeo-00-00-15/src/MdcROOTGeo.cxx.
Referenced by InitFromGdml().
void MdcROOTGeo::SetDetector | ( | ) |
Draw Detecor (what is detector depends on you)
Definition at line 629 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/src/MdcROOTGeo.cxx.
Referenced by BesClient::HandleViewOptionMenu().
void MdcROOTGeo::SetHalfVisible | ( | ) |
Set half visible;.
Definition at line 512 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/src/MdcROOTGeo.cxx.
void MdcROOTGeo::SetHits | ( | ) |
Definition at line 702 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/src/MdcROOTGeo.cxx.
Referenced by BesEvent::SetHits().
void MdcROOTGeo::SetMdcTimeSubEvTime | ( | Bool_t | input | ) |
Definition at line 865 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/src/MdcROOTGeo.cxx.
void MdcROOTGeo::SetNode | ( | ) |
Set the pointers to theirs nodes;.
Definition at line 65 of file DetectorDescription/ROOTGeo/ROOTGeo-00-00-15/src/MdcROOTGeo.cxx.
Referenced by InitFromGdml(), InitFromGDML(), and InitFromROOT().
void MdcROOTGeo::SetNode | ( | ) |
Set the pointers to theirs nodes;.
void MdcROOTGeo::SetPhysicalDefaultVis | ( | ) |
Set default physical node attributes;.
Definition at line 592 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/src/MdcROOTGeo.cxx.
Referenced by BesGeometry::Draw3D(), and BesGeometry::SetPhysicalDefaultVis().
void MdcROOTGeo::SetPhysicalNode | ( | ) |
Set the pointers to the physical nodes;.
Definition at line 223 of file DetectorDescription/ROOTGeo/ROOTGeo-00-00-15/src/MdcROOTGeo.cxx.
Referenced by BesGeometry::InitGeometry().
void MdcROOTGeo::SetPhysicalNode | ( | ) |
Set the pointers to the physical nodes;.
void MdcROOTGeo::SetQFire | ( | Bool_t | input | ) |
Definition at line 854 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/src/MdcROOTGeo.cxx.
void MdcROOTGeo::SetQNotOverflow | ( | Bool_t | input | ) |
Definition at line 848 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/src/MdcROOTGeo.cxx.
void MdcROOTGeo::SetQuarterVisible | ( | ) |
Set quater visible;.
Definition at line 196 of file DetectorDescription/ROOTGeo/ROOTGeo-00-00-15/src/MdcROOTGeo.cxx.
void MdcROOTGeo::SetQuarterVisible | ( | ) |
Set quater visible;.
void MdcROOTGeo::SetTFire | ( | Bool_t | input | ) |
Definition at line 836 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/src/MdcROOTGeo.cxx.
void MdcROOTGeo::SetVisMdcDetector | ( | ) |
Set Mdc default detector visibility;.
Definition at line 797 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/src/MdcROOTGeo.cxx.
Referenced by BesGeometry::Draw3D(), and BesClient::HandleViewOptionMenu().
void MdcROOTGeo::SetVisMdcHits | ( | ) |
Set Mdc hits visibility;.
Definition at line 813 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/src/MdcROOTGeo.cxx.
Referenced by BesGeometry::Draw3D().
void MdcROOTGeo::SetVolumeDefaultVis | ( | ) |
Set default visual attributes;.
Definition at line 390 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/src/MdcROOTGeo.cxx.
|
inline |
Set Mdc volume, while initializing from ROOT;.
Definition at line 105 of file EventDisplay/BesVisLib/BesVisLib-00-06-12/BesVisLib/MdcROOTGeo.h.
Referenced by InitFromROOT().