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. More... | |
Definition at line 30 of file CbmTofGeoHandler.h.
CbmTofGeoHandler::CbmTofGeoHandler | ( | ) |
Constructor
Definition at line 24 of file CbmTofGeoHandler.cxx.
|
inline |
Destructor
Definition at line 37 of file CbmTofGeoHandler.h.
|
private |
Int_t CbmTofGeoHandler::CheckGeometryVersion | ( | ) |
Definition at line 61 of file CbmTofGeoHandler.cxx.
References fGeoVersion, fIsSimulation, fMCVersion, fTofId, fUseNodeName, k07a, k12b, and k14a.
Referenced by Init(), CbmTofTBClusterizer::Init(), and CbmTofSimpClusterizer::LoadGeometry().
const char * CbmTofGeoHandler::CurrentNodeName | ( | ) | const |
Definition at line 428 of file CbmTofGeoHandler.cxx.
Referenced by CurrentNodeOffName().
const char * CbmTofGeoHandler::CurrentNodeOffName | ( | Int_t | off | ) | const |
Definition at line 437 of file CbmTofGeoHandler.cxx.
References CurrentNodeName().
Referenced by GetUniqueCounterId(), and GetUniqueDetectorId().
Int_t CbmTofGeoHandler::CurrentVolID | ( | Int_t & | copy | ) | const |
Definition at line 363 of file CbmTofGeoHandler.cxx.
References fIsSimulation.
Referenced by CurrentVolOffID(), GetUniqueCounterId(), and GetUniqueDetectorId().
const char * CbmTofGeoHandler::CurrentVolName | ( | ) | const |
Definition at line 397 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 379 of file CbmTofGeoHandler.cxx.
References CurrentVolID(), and fIsSimulation.
Referenced by GetUniqueCounterId(), and GetUniqueDetectorId().
const char * CbmTofGeoHandler::CurrentVolOffName | ( | Int_t | off | ) | const |
Definition at line 410 of file CbmTofGeoHandler.cxx.
References CurrentVolName(), and fIsSimulation.
Referenced by GetUniqueCounterId(), and GetUniqueDetectorId().
void CbmTofGeoHandler::FillDetectorInfoArray | ( | Int_t | uniqueId | ) |
Definition at line 449 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 479 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(), CbmTofSimpClusterizer::LoadGeometry(), CbmTofCosmicClusterizer::LoadGeometry(), CbmTofTestBeamClusterizer::LoadGeometry(), CbmTofEventClusterizer::LoadGeometry(), CbmTofMergeMcPoints::MergeRealisticTofPoints(), and CbmTof::ProcessHits().
Int_t CbmTofGeoHandler::GetCellId | ( | Int_t | uniqueId | ) |
Definition at line 493 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 469 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(), CbmTofSimpClusterizer::LoadGeometry(), CbmTofCosmicClusterizer::LoadGeometry(), CbmTofTestBeamClusterizer::LoadGeometry(), CbmTofEventClusterizer::LoadGeometry(), CbmTofMergeMcPoints::MergeRealisticTofPoints(), and CbmTof::ProcessHits().
|
inline |
Definition at line 80 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 454 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 474 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 45 of file CbmTofGeoHandler.h.
References fGeoVersion.
Referenced by CbmTofSimpClusterizer::BuildClusters(), CbmTofDigitize::DigitizeDirectClusterSize(), CbmTofDigitize::DigitizeFlatDisc(), CbmTofDigitize::DigitizeGaussCharge(), CbmTofTests::FillHistos(), CbmTofHitFinderQa::FillHistos(), CbmTofMergeMcPoints::Init(), CbmTofHitFinderQa::Init(), CbmTofGeometryQa::Init(), CbmTofSimpClusterizer::InitParameters(), CbmTofDigitize::LoadBeamtimeValues(), and CbmTofSimpClusterizer::LoadGeometry().
Int_t CbmTofGeoHandler::GetRegion | ( | Int_t | uniqueId | ) |
Definition at line 484 of file CbmTofGeoHandler.cxx.
References GetSMType().
Referenced by CbmTofCreateDigiPar::FillCellInfoFromGeoHandler(), and CbmTofCreateDigiPar::FillDigiPar().
Float_t CbmTofGeoHandler::GetSizeX | ( | TString | volName | ) |
Definition at line 497 of file CbmTofGeoHandler.cxx.
References fGeoPathHash, fVolumeShape, and NavigateTo().
Referenced by CbmTofCreateDigiPar::FillCellInfoFromGeoHandler().
Float_t CbmTofGeoHandler::GetSizeY | ( | TString | volName | ) |
Definition at line 503 of file CbmTofGeoHandler.cxx.
References fGeoPathHash, fVolumeShape, and NavigateTo().
Referenced by CbmTofCreateDigiPar::FillCellInfoFromGeoHandler().
Float_t CbmTofGeoHandler::GetSizeZ | ( | TString | volName | ) |
Definition at line 509 of file CbmTofGeoHandler.cxx.
References fGeoPathHash, fVolumeShape, and NavigateTo().
Int_t CbmTofGeoHandler::GetSModule | ( | Int_t | uniqueId | ) |
Definition at line 464 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(), CbmTofSimpClusterizer::LoadGeometry(), CbmTofCosmicClusterizer::LoadGeometry(), CbmTofTestBeamClusterizer::LoadGeometry(), CbmTofEventClusterizer::LoadGeometry(), CbmTofMergeMcPoints::MergeRealisticTofPoints(), and CbmTof::ProcessHits().
Int_t CbmTofGeoHandler::GetSMType | ( | Int_t | uniqueId | ) |
Definition at line 459 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(), CbmTofSimpClusterizer::LoadGeometry(), CbmTofCosmicClusterizer::LoadGeometry(), CbmTofTestBeamClusterizer::LoadGeometry(), CbmTofEventClusterizer::LoadGeometry(), CbmTofMergeMcPoints::MergeRealisticTofPoints(), and CbmTof::ProcessHits().
Int_t CbmTofGeoHandler::GetUniqueCounterId | ( | ) |
Definition at line 209 of file CbmTofGeoHandler.cxx.
References counter, CurrentNodeOffName(), CurrentVolID(), CurrentVolName(), CurrentVolOffID(), CurrentVolOffName(), fDetectorInfoArray, fGeoVersion, fLastUsedDetectorID, fTofId, fUseNodeName, k07a, k12b, k14a, kTof, and CbmTofDetectorId::SetDetectorInfo().
Referenced by CbmTof::ProcessHits().
Int_t CbmTofGeoHandler::GetUniqueDetectorId | ( | ) |
Definition at line 149 of file CbmTofGeoHandler.cxx.
References counter, CurrentNodeOffName(), CurrentVolID(), CurrentVolName(), CurrentVolOffID(), CurrentVolOffName(), fGeoVersion, fTofId, fUseNodeName, k07a, k12b, k14a, kTof, and CbmTofDetectorId::SetDetectorInfo().
Referenced by CbmTofCreateDigiPar::FillCellInfoFromGeoHandler(), GetUniqueDetectorId(), and CbmTof::ProcessHits().
Int_t CbmTofGeoHandler::GetUniqueDetectorId | ( | TString | volName | ) |
Definition at line 143 of file CbmTofGeoHandler.cxx.
References fGeoPathHash, GetUniqueDetectorId(), and NavigateTo().
Float_t CbmTofGeoHandler::GetX | ( | TString | volName | ) |
Definition at line 525 of file CbmTofGeoHandler.cxx.
References fGeoPathHash, fGlobal, and NavigateTo().
Referenced by CbmTofCreateDigiPar::FillCellInfoFromGeoHandler().
Float_t CbmTofGeoHandler::GetY | ( | TString | volName | ) |
Definition at line 520 of file CbmTofGeoHandler.cxx.
References fGeoPathHash, fGlobal, and NavigateTo().
Referenced by CbmTofCreateDigiPar::FillCellInfoFromGeoHandler().
Float_t CbmTofGeoHandler::GetZ | ( | TString | volName | ) |
Definition at line 515 of file CbmTofGeoHandler.cxx.
References fGeoPathHash, fGlobal, and NavigateTo().
Referenced by CbmTofCreateDigiPar::FillCellInfoFromGeoHandler().
Int_t CbmTofGeoHandler::Init | ( | Bool_t | isSimulation = kFALSE | ) |
Definition at line 39 of file CbmTofGeoHandler.cxx.
References CheckGeometryVersion(), fIsSimulation, and fMCVersion.
Referenced by CbmTofMergeMcPoints::Init(), CbmTofCreateDigiPar::Init(), CbmTofGeometryQa::Init(), CbmTofHitFinderQa::Init(), CbmTofTBClusterizer::Init(), CbmDeviceHitBuilderTof::InitContainers(), CbmTof::Initialize(), CbmTofTests::InitParameters(), CbmTofFindTracks::InitParameters(), CbmTofDigitize::InitParameters(), CbmTofSimpClusterizer::InitParameters(), CbmTofCosmicClusterizer::InitParameters(), CbmTofTestBeamClusterizer::InitParameters(), CbmTofEventClusterizer::InitParameters(), and CbmTofAnaTestbeam::InitParameters().
void CbmTofGeoHandler::NavigateTo | ( | TString | volName | ) |
Definition at line 530 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 347 of file CbmTofGeoHandler.cxx.
References fIsSimulation, and VolIdGeo().
Int_t CbmTofGeoHandler::VolIdGeo | ( | const char * | name | ) | const |
Definition at line 334 of file CbmTofGeoHandler.cxx.
Referenced by VolId().
|
private |
Definition at line 93 of file CbmTofGeoHandler.h.
Referenced by NavigateTo().
|
private |
Definition at line 91 of file CbmTofGeoHandler.h.
Referenced by FillDetectorInfoArray(), GetCell(), GetCounter(), GetDetSystemId(), GetGap(), GetSModule(), GetSMType(), and GetUniqueCounterId().
|
private |
Definition at line 92 of file CbmTofGeoHandler.h.
Referenced by GetSizeX(), GetSizeY(), GetSizeZ(), GetUniqueDetectorId(), GetX(), GetY(), GetZ(), and NavigateTo().
|
private |
Definition at line 84 of file CbmTofGeoHandler.h.
Referenced by CheckGeometryVersion(), GetGeoVersion(), GetUniqueCounterId(), and GetUniqueDetectorId().
|
private |
Definition at line 95 of file CbmTofGeoHandler.h.
Referenced by GetX(), GetY(), GetZ(), and NavigateTo().
|
private |
Global centre of volume.
Definition at line 96 of file CbmTofGeoHandler.h.
|
private |
Definition at line 86 of file CbmTofGeoHandler.h.
Referenced by CheckGeometryVersion(), CurrentVolID(), CurrentVolName(), CurrentVolOffID(), CurrentVolOffName(), Init(), NavigateTo(), and VolId().
|
private |
Definition at line 90 of file CbmTofGeoHandler.h.
Referenced by FillDetectorInfoArray(), GetCell(), GetCounter(), GetDetSystemId(), GetGap(), GetSModule(), GetSMType(), and GetUniqueCounterId().
|
private |
Definition at line 87 of file CbmTofGeoHandler.h.
Referenced by CheckGeometryVersion(), and Init().
|
private |
Definition at line 83 of file CbmTofGeoHandler.h.
Referenced by CheckGeometryVersion(), FillDetectorInfoArray(), GetCellId(), GetDetIdPointer(), GetUniqueCounterId(), and GetUniqueDetectorId().
|
private |
Definition at line 88 of file CbmTofGeoHandler.h.
Referenced by CheckGeometryVersion(), GetUniqueCounterId(), and GetUniqueDetectorId().
|
private |
Definition at line 94 of file CbmTofGeoHandler.h.
Referenced by GetSizeX(), GetSizeY(), GetSizeZ(), and NavigateTo().