CbmRoot
|
#include <CbmFsdGeoHandler.h>
Public Member Functions | |
CbmFsdGeoHandler (const CbmFsdGeoHandler &)=delete | |
CbmFsdGeoHandler & | operator= (const CbmFsdGeoHandler &)=delete |
CbmFsdModuleSpecs * | GetModuleSpecsById (Int_t id) |
CbmFsdUnitSpecs * | GetUnitSpecsById (Int_t id) |
void | InitMaps () |
int32_t | GetAddress (TString geoPath) const |
Get the unique address from geometry path string. | |
int32_t | GetCurrentAddress (TVirtualMC *vmc) const |
Get the unique address from TVirtualMC. | |
int32_t | GetCurrentAddress (TGeoManager *geoMan) const |
Get the unique address from TGeoManager. | |
Static Public Member Functions | |
static CbmFsdGeoHandler & | GetInstance () |
Private Member Functions | |
CbmFsdGeoHandler () | |
~CbmFsdGeoHandler ()=default | |
Int_t | GetCopyNumberByKey (TString geoPath, TString key) const |
Helper function to extract copy number from geoPath using key word. | |
Private Attributes | |
std::map< Int_t, CbmFsdModuleSpecs * > | fModuleIdToSpecsMap |
std::map< Int_t, CbmFsdUnitSpecs * > | fUnitIdToSpecsMap |
const TString | fBranchStr = "fsd_" |
const TString | fUnitStr = "unit" |
const TString | fModuleStr = "module" |
const TString | fActiveMatStr = "scint" |
Definition at line 20 of file CbmFsdGeoHandler.h.
|
private |
|
privatedefault |
Default destructor
|
delete |
int32_t CbmFsdGeoHandler::GetAddress | ( | TString | geoPath | ) | const |
Get the unique address from geometry path string.
Definition at line 119 of file CbmFsdGeoHandler.cxx.
References fModuleStr, fUnitStr, CbmFsdAddress::GetAddress(), and GetCopyNumberByKey().
|
private |
Helper function to extract copy number from geoPath using key word.
Definition at line 165 of file CbmFsdGeoHandler.cxx.
References fBranchStr.
Referenced by GetAddress().
int32_t CbmFsdGeoHandler::GetCurrentAddress | ( | TGeoManager * | geoMan | ) | const |
Get the unique address from TGeoManager.
Definition at line 149 of file CbmFsdGeoHandler.cxx.
References fModuleStr, fUnitStr, and CbmFsdAddress::GetAddress().
int32_t CbmFsdGeoHandler::GetCurrentAddress | ( | TVirtualMC * | vmc | ) | const |
Get the unique address from TVirtualMC.
Definition at line 127 of file CbmFsdGeoHandler.cxx.
References fModuleStr, fUnitStr, and CbmFsdAddress::GetAddress().
Referenced by CbmFsdMC::ProcessHits().
|
inlinestatic |
Return Instance of CbmFsdGeoHandler.
Definition at line 41 of file CbmFsdGeoHandler.h.
Referenced by CbmFsdHitProducer::Init(), CbmFsdHitProducer::ProcessData(), and CbmFsdMC::ProcessHits().
CbmFsdModuleSpecs * CbmFsdGeoHandler::GetModuleSpecsById | ( | Int_t | id | ) |
Definition at line 103 of file CbmFsdGeoHandler.cxx.
References fModuleIdToSpecsMap.
Referenced by CbmFsdHitProducer::ProcessData().
CbmFsdUnitSpecs * CbmFsdGeoHandler::GetUnitSpecsById | ( | Int_t | id | ) |
Definition at line 111 of file CbmFsdGeoHandler.cxx.
References fUnitIdToSpecsMap.
void CbmFsdGeoHandler::InitMaps | ( | ) |
Definition at line 30 of file CbmFsdGeoHandler.cxx.
References CbmFsdModuleSpecs::dX, CbmFsdModuleSpecs::dY, CbmFsdModuleSpecs::dZ, fActiveMatStr, fBranchStr, CbmFsdModuleSpecs::fModuleId, fModuleIdToSpecsMap, fModuleStr, CbmFsdUnitSpecs::fNumModules, CbmFsdModuleSpecs::fUnitId, CbmFsdUnitSpecs::fUnitId, fUnitIdToSpecsMap, CbmFsdUnitSpecs::fUnitName, fUnitStr, CbmFsdModuleSpecs::fX, CbmFsdModuleSpecs::fY, CbmFsdModuleSpecs::fZ, and shape.
Referenced by CbmFsdGeoHandler(), and CbmFsdHitProducer::Init().
|
delete |
|
private |
Definition at line 85 of file CbmFsdGeoHandler.h.
Referenced by InitMaps().
|
private |
Definition at line 82 of file CbmFsdGeoHandler.h.
Referenced by GetCopyNumberByKey(), and InitMaps().
|
private |
Definition at line 78 of file CbmFsdGeoHandler.h.
Referenced by GetModuleSpecsById(), and InitMaps().
|
private |
Definition at line 84 of file CbmFsdGeoHandler.h.
Referenced by GetAddress(), GetCurrentAddress(), GetCurrentAddress(), and InitMaps().
|
private |
Definition at line 79 of file CbmFsdGeoHandler.h.
Referenced by GetUnitSpecsById(), and InitMaps().
|
private |
Definition at line 83 of file CbmFsdGeoHandler.h.
Referenced by GetAddress(), GetCurrentAddress(), GetCurrentAddress(), and InitMaps().