CbmRoot
|
#include <CbmTofGeoHandler.h>
Public Member Functions | |
CbmTofGeoHandler () | |
~CbmTofGeoHandler () | |
Int_t | GetUniqueDetectorId () |
Int_t | GetUniqueCounterId () |
Int_t | GetUniqueDetectorId (TString volName) |
Int_t | GetCellId (Int_t uniqueId) |
Int_t | GetGeoVersion () |
Int_t | Init (Bool_t isSimulation=kFALSE) |
Int_t | GetDetSystemId (Int_t uniqueId) |
Int_t | GetSMType (Int_t uniqueId) |
Int_t | GetSModule (Int_t uniqueId) |
Int_t | GetCounter (Int_t uniqueId) |
Int_t | GetGap (Int_t uniqueId) |
Int_t | GetCell (Int_t uniqueId) |
Int_t | GetRegion (Int_t uniqueId) |
Float_t | GetSizeX (TString volName) |
Float_t | GetSizeY (TString volName) |
Float_t | GetSizeZ (TString volName) |
Float_t | GetX (TString volName) |
Float_t | GetY (TString volName) |
Float_t | GetZ (TString volName) |
void | FillDetectorInfoArray (Int_t uniqueId) |
void | NavigateTo (TString volName) |
Int_t | CurrentVolOffID (Int_t off, Int_t ©) const |
Int_t | CurrentVolID (Int_t ©) const |
Int_t | VolId (const Text_t *name) const |
Int_t | VolIdGeo (const char *name) const |
const char * | CurrentVolName () const |
const char * | CurrentVolOffName (Int_t off) const |
const char * | CurrentNodeName () const |
const char * | CurrentNodeOffName (Int_t off) const |
Int_t | CheckGeometryVersion () |
CbmTofDetectorId * | GetDetIdPointer () |
Private Member Functions | |
CbmTofGeoHandler (const CbmTofGeoHandler &) | |
CbmTofGeoHandler | operator= (const CbmTofGeoHandler &) |
Private Attributes | |
CbmTofDetectorId * | fTofId |
Int_t | fGeoVersion |
Bool_t | fIsSimulation |
Int_t | fMCVersion |
Bool_t | fUseNodeName |
Int_t | fLastUsedDetectorID |
CbmTofDetectorInfo | fDetectorInfoArray |
UInt_t | fGeoPathHash |
TGeoVolume * | fCurrentVolume |
TGeoBBox * | fVolumeShape |
Double_t | fGlobal [3] |
TGeoHMatrix * | fGlobalMatrix |
Global centre of volume. | |
Definition at line 41 of file CbmTofGeoHandler.h.
CbmTofGeoHandler::CbmTofGeoHandler | ( | ) |
Constructor
Definition at line 29 of file CbmTofGeoHandler.cxx.
|
inline |
Destructor
Definition at line 48 of file CbmTofGeoHandler.h.
|
private |
Int_t CbmTofGeoHandler::CheckGeometryVersion | ( | ) |
Definition at line 72 of file CbmTofGeoHandler.cxx.
References fGeoVersion, fIsSimulation, fMCVersion, fTofId, fUseNodeName, k07a, k12b, k14a, and k21a.
Referenced by Init(), CbmTofTBClusterizer::Init(), and CbmTofSimpClusterizer::LoadGeometry().
const char * CbmTofGeoHandler::CurrentNodeName | ( | ) | const |
Definition at line 525 of file CbmTofGeoHandler.cxx.
Referenced by CurrentNodeOffName().
const char * CbmTofGeoHandler::CurrentNodeOffName | ( | Int_t | off | ) | const |
Definition at line 535 of file CbmTofGeoHandler.cxx.
References CurrentNodeName().
Referenced by GetUniqueCounterId(), and GetUniqueDetectorId().
Int_t CbmTofGeoHandler::CurrentVolID | ( | Int_t & | copy | ) | const |
Definition at line 444 of file CbmTofGeoHandler.cxx.
References fIsSimulation.
Referenced by CurrentVolOffID(), GetUniqueCounterId(), and GetUniqueDetectorId().
const char * CbmTofGeoHandler::CurrentVolName | ( | ) | const |
Definition at line 490 of file CbmTofGeoHandler.cxx.
References fIsSimulation.
Referenced by CurrentVolOffName(), GetUniqueCounterId(), and GetUniqueDetectorId().
Int_t CbmTofGeoHandler::CurrentVolOffID | ( | Int_t | off, |
Int_t & | copy ) const |
Definition at line 464 of file CbmTofGeoHandler.cxx.
References CurrentVolID(), and fIsSimulation.
Referenced by GetUniqueCounterId(), and GetUniqueDetectorId().
const char * CbmTofGeoHandler::CurrentVolOffName | ( | Int_t | off | ) | const |
Definition at line 505 of file CbmTofGeoHandler.cxx.
References CurrentVolName(), and fIsSimulation.
Referenced by GetUniqueCounterId(), and GetUniqueDetectorId().
void CbmTofGeoHandler::FillDetectorInfoArray | ( | Int_t | uniqueId | ) |
Definition at line 548 of file CbmTofGeoHandler.cxx.
References fDetectorInfoArray, fLastUsedDetectorID, fTofId, and CbmTofDetectorId::GetDetectorInfo().
Referenced by GetCell(), GetCounter(), GetDetSystemId(), GetGap(), GetSModule(), and GetSMType().
Int_t CbmTofGeoHandler::GetCell | ( | Int_t | uniqueId | ) |
Definition at line 594 of file CbmTofGeoHandler.cxx.
References CbmTofDetectorInfo::fCell, fDetectorInfoArray, FillDetectorInfoArray(), and fLastUsedDetectorID.
Referenced by CbmTofDigitize::DigitizeDirectClusterSize(), CbmTofDigitize::DigitizeFlatDisc(), CbmTofDigitize::DigitizeGaussCharge(), CbmTofCreateDigiPar::FillCellInfoFromGeoHandler(), CbmTofCreateDigiPar::FillDigiPar(), CbmTofTBClusterizer::Init(), CbmDeviceHitBuilderTof::LoadGeometry(), CbmTofCosmicClusterizer::LoadGeometry(), CbmTofEventClusterizer::LoadGeometry(), CbmTofHitMaker::LoadGeometry(), CbmTofSimpClusterizer::LoadGeometry(), CbmTofTestBeamClusterizer::LoadGeometry(), CbmTofMergeMcPoints::MergeRealisticTofPoints(), and CbmTof::ProcessHits().
Int_t CbmTofGeoHandler::GetCellId | ( | Int_t | uniqueId | ) |
Definition at line 612 of file CbmTofGeoHandler.cxx.
References fTofId, and CbmTofDetectorId::GetCellId().
Referenced by CbmTofDigitize::DigitizeDirectClusterSize(), CbmTofDigitize::DigitizeFlatDisc(), CbmTofDigitize::DigitizeGaussCharge(), and CbmTofCreateDigiPar::FillCellInfoFromGeoHandler().
Int_t CbmTofGeoHandler::GetCounter | ( | Int_t | uniqueId | ) |
Definition at line 578 of file CbmTofGeoHandler.cxx.
References CbmTofDetectorInfo::fCounter, fDetectorInfoArray, FillDetectorInfoArray(), and fLastUsedDetectorID.
Referenced by CbmTofDigitize::DigitizeDirectClusterSize(), CbmTofDigitize::DigitizeFlatDisc(), CbmTofDigitize::DigitizeGaussCharge(), CbmTofCreateDigiPar::FillCellInfoFromGeoHandler(), CbmTofCreateDigiPar::FillDigiPar(), CbmTofAnaTestbeam::FillHistos(), CbmTofTBClusterizer::Init(), CbmDeviceHitBuilderTof::LoadGeometry(), CbmTofCosmicClusterizer::LoadGeometry(), CbmTofEventClusterizer::LoadGeometry(), CbmTofHitMaker::LoadGeometry(), CbmTofSimpClusterizer::LoadGeometry(), CbmTofTestBeamClusterizer::LoadGeometry(), CbmTofMergeMcPoints::MergeRealisticTofPoints(), and CbmTof::ProcessHits().
|
inline |
Definition at line 91 of file CbmTofGeoHandler.h.
References fTofId.
Referenced by CbmTof::FinishEvent(), CbmTofMergeMcPoints::Init(), and CbmTof::Initialize().
Int_t CbmTofGeoHandler::GetDetSystemId | ( | Int_t | uniqueId | ) |
Definition at line 554 of file CbmTofGeoHandler.cxx.
References fDetectorInfoArray, CbmTofDetectorInfo::fDetectorSystem, FillDetectorInfoArray(), and fLastUsedDetectorID.
Referenced by CbmTof::ProcessHits().
Int_t CbmTofGeoHandler::GetGap | ( | Int_t | uniqueId | ) |
Definition at line 586 of file CbmTofGeoHandler.cxx.
References fDetectorInfoArray, CbmTofDetectorInfo::fGap, FillDetectorInfoArray(), and fLastUsedDetectorID.
Referenced by CbmTofDigitize::DigitizeDirectClusterSize(), CbmTofDigitize::DigitizeFlatDisc(), CbmTofDigitize::DigitizeGaussCharge(), CbmTofCreateDigiPar::FillCellInfoFromGeoHandler(), and CbmTof::ProcessHits().
|
inline |
Definition at line 56 of file CbmTofGeoHandler.h.
References fGeoVersion.
Referenced by CbmTofSimpClusterizer::BuildClusters(), CbmTofDigitize::DigitizeDirectClusterSize(), CbmTofDigitize::DigitizeFlatDisc(), CbmTofDigitize::DigitizeGaussCharge(), CbmTofHitFinderQa::FillHistos(), CbmTofTests::FillHistos(), CbmTofGeometryQa::Init(), CbmTofHitFinderQa::Init(), CbmTofMergeMcPoints::Init(), CbmTaskTofHitFinder::InitParameters(), CbmTofSimpClusterizer::InitParameters(), CbmTofDigitize::LoadBeamtimeValues(), and CbmTofSimpClusterizer::LoadGeometry().
Int_t CbmTofGeoHandler::GetRegion | ( | Int_t | uniqueId | ) |
Definition at line 602 of file CbmTofGeoHandler.cxx.
References GetSMType().
Referenced by CbmTofCreateDigiPar::FillCellInfoFromGeoHandler(), and CbmTofCreateDigiPar::FillDigiPar().
Float_t CbmTofGeoHandler::GetSizeX | ( | TString | volName | ) |
Definition at line 614 of file CbmTofGeoHandler.cxx.
References fGeoPathHash, fVolumeShape, and NavigateTo().
Referenced by CbmTofCreateDigiPar::FillCellInfoFromGeoHandler().
Float_t CbmTofGeoHandler::GetSizeY | ( | TString | volName | ) |
Definition at line 623 of file CbmTofGeoHandler.cxx.
References fGeoPathHash, fVolumeShape, and NavigateTo().
Referenced by CbmTofCreateDigiPar::FillCellInfoFromGeoHandler().
Float_t CbmTofGeoHandler::GetSizeZ | ( | TString | volName | ) |
Definition at line 632 of file CbmTofGeoHandler.cxx.
References fGeoPathHash, fVolumeShape, and NavigateTo().
Int_t CbmTofGeoHandler::GetSModule | ( | Int_t | uniqueId | ) |
Definition at line 570 of file CbmTofGeoHandler.cxx.
References fDetectorInfoArray, FillDetectorInfoArray(), fLastUsedDetectorID, and CbmTofDetectorInfo::fSModule.
Referenced by CbmTofDigitize::DigitizeDirectClusterSize(), CbmTofDigitize::DigitizeFlatDisc(), CbmTofDigitize::DigitizeGaussCharge(), CbmTofCreateDigiPar::FillCellInfoFromGeoHandler(), CbmTofCreateDigiPar::FillDigiPar(), CbmTofAnaTestbeam::FillHistos(), CbmTofTBClusterizer::Init(), CbmDeviceHitBuilderTof::LoadGeometry(), CbmTofCosmicClusterizer::LoadGeometry(), CbmTofEventClusterizer::LoadGeometry(), CbmTofHitMaker::LoadGeometry(), CbmTofSimpClusterizer::LoadGeometry(), CbmTofTestBeamClusterizer::LoadGeometry(), CbmTofMergeMcPoints::MergeRealisticTofPoints(), and CbmTof::ProcessHits().
Int_t CbmTofGeoHandler::GetSMType | ( | Int_t | uniqueId | ) |
Definition at line 562 of file CbmTofGeoHandler.cxx.
References fDetectorInfoArray, FillDetectorInfoArray(), fLastUsedDetectorID, and CbmTofDetectorInfo::fSMtype.
Referenced by CbmTofDigitize::DigitizeDirectClusterSize(), CbmTofDigitize::DigitizeFlatDisc(), CbmTofDigitize::DigitizeGaussCharge(), CbmTofCreateDigiPar::FillCellInfoFromGeoHandler(), CbmTofCreateDigiPar::FillDigiPar(), CbmTofAnaTestbeam::FillHistos(), GetRegion(), CbmTofTBClusterizer::Init(), CbmDeviceHitBuilderTof::LoadGeometry(), CbmTofCosmicClusterizer::LoadGeometry(), CbmTofEventClusterizer::LoadGeometry(), CbmTofHitMaker::LoadGeometry(), CbmTofSimpClusterizer::LoadGeometry(), CbmTofTestBeamClusterizer::LoadGeometry(), CbmTofMergeMcPoints::MergeRealisticTofPoints(), and CbmTof::ProcessHits().
Int_t CbmTofGeoHandler::GetUniqueCounterId | ( | ) |
Definition at line 262 of file CbmTofGeoHandler.cxx.
References counter, CurrentNodeOffName(), CurrentVolID(), CurrentVolName(), CurrentVolOffID(), CurrentVolOffName(), fDetectorInfoArray, fGeoVersion, fLastUsedDetectorID, fTofId, fUseNodeName, k07a, k12b, k14a, k21a, kTof, and CbmTofDetectorId::SetDetectorInfo().
Referenced by CbmTof::ProcessHits().
Int_t CbmTofGeoHandler::GetUniqueDetectorId | ( | ) |
Definition at line 172 of file CbmTofGeoHandler.cxx.
References counter, CurrentNodeOffName(), CurrentVolID(), CurrentVolName(), CurrentVolOffID(), CurrentVolOffName(), fGeoVersion, fTofId, fUseNodeName, k07a, k12b, k14a, k21a, kTof, and CbmTofDetectorId::SetDetectorInfo().
Referenced by CbmTofCreateDigiPar::FillCellInfoFromGeoHandler(), GetUniqueDetectorId(), and CbmTof::ProcessHits().
Int_t CbmTofGeoHandler::GetUniqueDetectorId | ( | TString | volName | ) |
Definition at line 163 of file CbmTofGeoHandler.cxx.
References fGeoPathHash, GetUniqueDetectorId(), and NavigateTo().
Float_t CbmTofGeoHandler::GetX | ( | TString | volName | ) |
Definition at line 657 of file CbmTofGeoHandler.cxx.
References fGeoPathHash, fGlobal, and NavigateTo().
Referenced by CbmTofCreateDigiPar::FillCellInfoFromGeoHandler().
Float_t CbmTofGeoHandler::GetY | ( | TString | volName | ) |
Definition at line 649 of file CbmTofGeoHandler.cxx.
References fGeoPathHash, fGlobal, and NavigateTo().
Referenced by CbmTofCreateDigiPar::FillCellInfoFromGeoHandler().
Float_t CbmTofGeoHandler::GetZ | ( | TString | volName | ) |
Definition at line 641 of file CbmTofGeoHandler.cxx.
References fGeoPathHash, fGlobal, and NavigateTo().
Referenced by CbmTofCreateDigiPar::FillCellInfoFromGeoHandler().
Int_t CbmTofGeoHandler::Init | ( | Bool_t | isSimulation = kFALSE | ) |
Definition at line 46 of file CbmTofGeoHandler.cxx.
References CheckGeometryVersion(), fIsSimulation, and fMCVersion.
Referenced by CbmTofCreateDigiPar::Init(), CbmTofGeometryQa::Init(), CbmTofHitFinderQa::Init(), CbmTofMergeMcPoints::Init(), CbmTofTBClusterizer::Init(), CbmDeviceHitBuilderTof::InitContainers(), CbmTof::Initialize(), CbmTaskTofClusterizerParWrite::InitParameters(), CbmTaskTofHitFinder::InitParameters(), CbmTofAnaTestbeam::InitParameters(), CbmTofCosmicClusterizer::InitParameters(), CbmTofDigitize::InitParameters(), CbmTofEventClusterizer::InitParameters(), CbmTofFindTracks::InitParameters(), CbmTofHitMaker::InitParameters(), CbmTofSimpClusterizer::InitParameters(), CbmTofTestBeamClusterizer::InitParameters(), and CbmTofTests::InitParameters().
void CbmTofGeoHandler::NavigateTo | ( | TString | volName | ) |
Definition at line 665 of file CbmTofGeoHandler.cxx.
References fCurrentVolume, fGeoPathHash, fGlobal, fIsSimulation, and fVolumeShape.
Referenced by GetSizeX(), GetSizeY(), GetSizeZ(), GetUniqueDetectorId(), GetX(), GetY(), and GetZ().
|
private |
Int_t CbmTofGeoHandler::VolId | ( | const Text_t * | name | ) | const |
Definition at line 424 of file CbmTofGeoHandler.cxx.
References fIsSimulation, and VolIdGeo().
Int_t CbmTofGeoHandler::VolIdGeo | ( | const char * | name | ) | const |
Definition at line 410 of file CbmTofGeoHandler.cxx.
Referenced by VolId().
|
private |
Definition at line 104 of file CbmTofGeoHandler.h.
Referenced by NavigateTo().
|
private |
Definition at line 102 of file CbmTofGeoHandler.h.
Referenced by FillDetectorInfoArray(), GetCell(), GetCounter(), GetDetSystemId(), GetGap(), GetSModule(), GetSMType(), and GetUniqueCounterId().
|
private |
Definition at line 103 of file CbmTofGeoHandler.h.
Referenced by GetSizeX(), GetSizeY(), GetSizeZ(), GetUniqueDetectorId(), GetX(), GetY(), GetZ(), and NavigateTo().
|
private |
Definition at line 95 of file CbmTofGeoHandler.h.
Referenced by CheckGeometryVersion(), GetGeoVersion(), GetUniqueCounterId(), and GetUniqueDetectorId().
|
private |
Definition at line 106 of file CbmTofGeoHandler.h.
Referenced by GetX(), GetY(), GetZ(), and NavigateTo().
|
private |
Global centre of volume.
Definition at line 107 of file CbmTofGeoHandler.h.
|
private |
Definition at line 97 of file CbmTofGeoHandler.h.
Referenced by CheckGeometryVersion(), CurrentVolID(), CurrentVolName(), CurrentVolOffID(), CurrentVolOffName(), Init(), NavigateTo(), and VolId().
|
private |
Definition at line 101 of file CbmTofGeoHandler.h.
Referenced by FillDetectorInfoArray(), GetCell(), GetCounter(), GetDetSystemId(), GetGap(), GetSModule(), GetSMType(), and GetUniqueCounterId().
|
private |
Definition at line 98 of file CbmTofGeoHandler.h.
Referenced by CheckGeometryVersion(), and Init().
|
private |
Definition at line 94 of file CbmTofGeoHandler.h.
Referenced by CheckGeometryVersion(), FillDetectorInfoArray(), GetCellId(), GetDetIdPointer(), GetUniqueCounterId(), and GetUniqueDetectorId().
|
private |
Definition at line 99 of file CbmTofGeoHandler.h.
Referenced by CheckGeometryVersion(), GetUniqueCounterId(), and GetUniqueDetectorId().
|
private |
Definition at line 105 of file CbmTofGeoHandler.h.
Referenced by GetSizeX(), GetSizeY(), GetSizeZ(), and NavigateTo().