CbmRoot
|
#include <CbmTrdGeoHandler.h>
Public Member Functions | |
CbmTrdGeoHandler () | |
Constructor. | |
~CbmTrdGeoHandler () | |
Destructor. | |
void | Init (Bool_t isSimulation=kFALSE) |
Int_t | GetModuleAddress () |
Return module address calculated based on the current node in the TGeoManager. | |
Int_t | GetModuleAddress (const TString &path) |
Navigate to node and return module address. | |
Int_t | GetModuleOrientation (const TString &path) |
Return pad orientation of the current node in the TGeoManager. | |
std::map< Int_t, TGeoPhysicalNode * > | FillModuleMap () |
Fill map with information of the gas volumes for each detector. | |
Double_t | GetSizeX (const TString &path) |
Double_t | GetSizeY (const TString &path) |
Double_t | GetSizeZ (const TString &path) |
Double_t | GetX (const TString &path) |
Double_t | GetY (const TString &path) |
Double_t | GetZ (const TString &path) |
Int_t | GetModuleType (const TString &path) |
Int_t | GetRadiatorType (const TString &path) |
Navigate to node and return the radiator type build in the geometry based on the naming convention. | |
Int_t | GetStation (const TString &path) |
Int_t | GetLayer (const TString &path) |
Int_t | GetModuleCopyNr (const TString &path) |
Private Member Functions | |
void | NavigateTo (const TString &path) |
CbmTrdGeoHandler (const CbmTrdGeoHandler &) | |
ModuleCopyID with module type. | |
CbmTrdGeoHandler | operator= (const CbmTrdGeoHandler &) |
Private Attributes | |
Bool_t | fIsSimulation |
UInt_t | fGeoPathHash |
TGeoVolume * | fCurrentVolume |
TGeoBBox * | fVolumeShape |
Double_t | fGlobal [3] |
TGeoHMatrix * | fGlobalMatrix |
Global center of volume. | |
Int_t | fLayerId |
Int_t | fModuleId |
Int_t | fModuleType |
Int_t | fRadiatorType |
Int_t | fRotation |
radiator + chamber entrance window type | |
Int_t | fStation |
rotation angle 0,1,2,3 | |
Int_t | fLayer |
StationTypeID, 1..3. | |
Int_t | fModuleCopy |
LayerID within station, 1..4. | |
Definition at line 33 of file CbmTrdGeoHandler.h.
CbmTrdGeoHandler::CbmTrdGeoHandler | ( | ) |
Constructor.
Definition at line 31 of file CbmTrdGeoHandler.cxx.
CbmTrdGeoHandler::~CbmTrdGeoHandler | ( | ) |
Destructor.
Definition at line 50 of file CbmTrdGeoHandler.cxx.
|
private |
ModuleCopyID with module type.
std::map< Int_t, TGeoPhysicalNode * > CbmTrdGeoHandler::FillModuleMap | ( | ) |
Fill map with information of the gas volumes for each detector.
Definition at line 275 of file CbmTrdGeoHandler.cxx.
References GetModuleAddress().
Int_t CbmTrdGeoHandler::GetLayer | ( | const TString & | path | ) |
Definition at line 191 of file CbmTrdGeoHandler.cxx.
References fGeoPathHash, fLayer, and NavigateTo().
Int_t CbmTrdGeoHandler::GetModuleAddress | ( | ) |
Return module address calculated based on the current node in the TGeoManager.
Definition at line 54 of file CbmTrdGeoHandler.cxx.
References fIsSimulation, and CbmTrdAddress::GetAddress().
Referenced by CbmTrdDigitizer::AddModule(), CbmTrdHitProducer::AddModule(), CbmTrdParManager::CreateModuleParameters(), FillModuleMap(), GetModuleAddress(), CbmTrdParSetGeo::Init(), and CbmTrd::ProcessHits().
Int_t CbmTrdGeoHandler::GetModuleAddress | ( | const TString & | path | ) |
Navigate to node and return module address.
Definition at line 113 of file CbmTrdGeoHandler.cxx.
References fGeoPathHash, GetModuleAddress(), and NavigateTo().
Int_t CbmTrdGeoHandler::GetModuleCopyNr | ( | const TString & | path | ) |
Definition at line 200 of file CbmTrdGeoHandler.cxx.
References fGeoPathHash, fModuleCopy, and NavigateTo().
Int_t CbmTrdGeoHandler::GetModuleOrientation | ( | const TString & | path | ) |
Return pad orientation of the current node in the TGeoManager.
Navigate to node and return pad orientation.
Definition at line 131 of file CbmTrdGeoHandler.cxx.
References fGeoPathHash, fRotation, and NavigateTo().
Referenced by CbmTrdDigitizer::AddModule(), and CbmTrdParManager::CreateModuleParameters().
Int_t CbmTrdGeoHandler::GetModuleType | ( | const TString & | path | ) |
Definition at line 173 of file CbmTrdGeoHandler.cxx.
References fGeoPathHash, fModuleType, and NavigateTo().
Referenced by CbmTrdDigitizer::AddModule(), CbmTrdHitProducer::AddModule(), and CbmTrdParManager::CreateModuleParameters().
Int_t CbmTrdGeoHandler::GetRadiatorType | ( | const TString & | path | ) |
Navigate to node and return the radiator type build in the geometry based on the naming convention.
Definition at line 179 of file CbmTrdGeoHandler.cxx.
References fGeoPathHash, fRadiatorType, and NavigateTo().
Referenced by CbmTrdDigitizer::AddModule().
Double_t CbmTrdGeoHandler::GetSizeX | ( | const TString & | path | ) |
Definition at line 137 of file CbmTrdGeoHandler.cxx.
References fGeoPathHash, fVolumeShape, and NavigateTo().
Referenced by CbmTrdParManager::CreateModuleParameters().
Double_t CbmTrdGeoHandler::GetSizeY | ( | const TString & | path | ) |
Definition at line 143 of file CbmTrdGeoHandler.cxx.
References fGeoPathHash, fVolumeShape, and NavigateTo().
Referenced by CbmTrdParManager::CreateModuleParameters().
Double_t CbmTrdGeoHandler::GetSizeZ | ( | const TString & | path | ) |
Definition at line 149 of file CbmTrdGeoHandler.cxx.
References fGeoPathHash, fVolumeShape, and NavigateTo().
Referenced by CbmTrdParManager::CreateModuleParameters().
Int_t CbmTrdGeoHandler::GetStation | ( | const TString & | path | ) |
Definition at line 185 of file CbmTrdGeoHandler.cxx.
References fGeoPathHash, fStation, and NavigateTo().
Double_t CbmTrdGeoHandler::GetX | ( | const TString & | path | ) |
Definition at line 167 of file CbmTrdGeoHandler.cxx.
References fGeoPathHash, fGlobal, and NavigateTo().
Referenced by CbmTrdParManager::CreateModuleParameters().
Double_t CbmTrdGeoHandler::GetY | ( | const TString & | path | ) |
Definition at line 161 of file CbmTrdGeoHandler.cxx.
References fGeoPathHash, fGlobal, and NavigateTo().
Referenced by CbmTrdParManager::CreateModuleParameters().
Double_t CbmTrdGeoHandler::GetZ | ( | const TString & | path | ) |
Definition at line 155 of file CbmTrdGeoHandler.cxx.
References fGeoPathHash, fGlobal, and NavigateTo().
Referenced by CbmTrdParManager::CreateModuleParameters().
void CbmTrdGeoHandler::Init | ( | Bool_t | isSimulation = kFALSE | ) |
Definition at line 52 of file CbmTrdGeoHandler.cxx.
References fIsSimulation.
Referenced by CbmTrdHitDensityQa::Init(), CbmTrdHitRateFastQa::Init(), CbmTrdHitRateQa::Init(), CbmTrdOccupancyQa::Init(), CbmTrdQa::Init(), CbmTrdRecoQa::Init(), and CbmTrd::Initialize().
|
private |
Definition at line 206 of file CbmTrdGeoHandler.cxx.
References fCurrentVolume, fGeoPathHash, fGlobal, fGlobalMatrix, fIsSimulation, fLayer, fModuleCopy, fModuleType, fRadiatorType, fRotation, fStation, and fVolumeShape.
Referenced by GetLayer(), GetModuleAddress(), GetModuleCopyNr(), GetModuleOrientation(), GetModuleType(), GetRadiatorType(), GetSizeX(), GetSizeY(), GetSizeZ(), GetStation(), GetX(), GetY(), and GetZ().
|
private |
|
private |
Definition at line 101 of file CbmTrdGeoHandler.h.
Referenced by NavigateTo().
|
private |
Definition at line 100 of file CbmTrdGeoHandler.h.
Referenced by GetLayer(), GetModuleAddress(), GetModuleCopyNr(), GetModuleOrientation(), GetModuleType(), GetRadiatorType(), GetSizeX(), GetSizeY(), GetSizeZ(), GetStation(), GetX(), GetY(), GetZ(), and NavigateTo().
|
private |
Definition at line 103 of file CbmTrdGeoHandler.h.
Referenced by GetX(), GetY(), GetZ(), and NavigateTo().
|
private |
Global center of volume.
Definition at line 104 of file CbmTrdGeoHandler.h.
Referenced by NavigateTo().
|
private |
Definition at line 98 of file CbmTrdGeoHandler.h.
Referenced by GetModuleAddress(), Init(), and NavigateTo().
|
private |
StationTypeID, 1..3.
Definition at line 113 of file CbmTrdGeoHandler.h.
Referenced by GetLayer(), and NavigateTo().
|
private |
Definition at line 105 of file CbmTrdGeoHandler.h.
|
private |
LayerID within station, 1..4.
Definition at line 114 of file CbmTrdGeoHandler.h.
Referenced by GetModuleCopyNr(), and NavigateTo().
|
private |
Definition at line 106 of file CbmTrdGeoHandler.h.
|
private |
Definition at line 107 of file CbmTrdGeoHandler.h.
Referenced by GetModuleType(), and NavigateTo().
|
private |
Definition at line 108 of file CbmTrdGeoHandler.h.
Referenced by GetRadiatorType(), and NavigateTo().
|
private |
radiator + chamber entrance window type
Definition at line 109 of file CbmTrdGeoHandler.h.
Referenced by GetModuleOrientation(), and NavigateTo().
|
private |
rotation angle 0,1,2,3
Definition at line 112 of file CbmTrdGeoHandler.h.
Referenced by GetStation(), and NavigateTo().
|
private |
Definition at line 102 of file CbmTrdGeoHandler.h.
Referenced by GetSizeX(), GetSizeY(), GetSizeZ(), and NavigateTo().