CbmRoot
Loading...
Searching...
No Matches
CbmFsdGeoHandler Class Reference

#include <CbmFsdGeoHandler.h>

Public Member Functions

 CbmFsdGeoHandler (const CbmFsdGeoHandler &)=delete
 
CbmFsdGeoHandleroperator= (const CbmFsdGeoHandler &)=delete
 
CbmFsdModuleSpecsGetModuleSpecsById (Int_t id)
 
CbmFsdUnitSpecsGetUnitSpecsById (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 CbmFsdGeoHandlerGetInstance ()
 

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"
 

Detailed Description

Definition at line 20 of file CbmFsdGeoHandler.h.

Constructor & Destructor Documentation

◆ CbmFsdGeoHandler() [1/2]

CbmFsdGeoHandler::CbmFsdGeoHandler ( )
private

Default constructor

Definition at line 28 of file CbmFsdGeoHandler.cxx.

References InitMaps().

◆ ~CbmFsdGeoHandler()

CbmFsdGeoHandler::~CbmFsdGeoHandler ( )
privatedefault

Default destructor

◆ CbmFsdGeoHandler() [2/2]

CbmFsdGeoHandler::CbmFsdGeoHandler ( const CbmFsdGeoHandler & )
delete

Member Function Documentation

◆ GetAddress()

int32_t CbmFsdGeoHandler::GetAddress ( TString geoPath) const

Get the unique address from geometry path string.

Returns
integer corresponding to CbmFsdAddress scheme

Definition at line 119 of file CbmFsdGeoHandler.cxx.

References fModuleStr, fUnitStr, CbmFsdAddress::GetAddress(), and GetCopyNumberByKey().

◆ GetCopyNumberByKey()

Int_t CbmFsdGeoHandler::GetCopyNumberByKey ( TString geoPath,
TString key ) const
private

Helper function to extract copy number from geoPath using key word.

Returns
integer corresponding to copy number of the key word

Definition at line 165 of file CbmFsdGeoHandler.cxx.

References fBranchStr.

Referenced by GetAddress().

◆ GetCurrentAddress() [1/2]

int32_t CbmFsdGeoHandler::GetCurrentAddress ( TGeoManager * geoMan) const

Get the unique address from TGeoManager.

Returns
integer corresponding to CbmFsdAddress scheme

Definition at line 149 of file CbmFsdGeoHandler.cxx.

References fModuleStr, fUnitStr, and CbmFsdAddress::GetAddress().

◆ GetCurrentAddress() [2/2]

int32_t CbmFsdGeoHandler::GetCurrentAddress ( TVirtualMC * vmc) const

Get the unique address from TVirtualMC.

Returns
integer corresponding to CbmFsdAddress scheme

Definition at line 127 of file CbmFsdGeoHandler.cxx.

References fModuleStr, fUnitStr, and CbmFsdAddress::GetAddress().

Referenced by CbmFsdMC::ProcessHits().

◆ GetInstance()

static CbmFsdGeoHandler & CbmFsdGeoHandler::GetInstance ( )
inlinestatic

◆ GetModuleSpecsById()

CbmFsdModuleSpecs * CbmFsdGeoHandler::GetModuleSpecsById ( Int_t id)

Definition at line 103 of file CbmFsdGeoHandler.cxx.

References fModuleIdToSpecsMap.

Referenced by CbmFsdHitProducer::ProcessData().

◆ GetUnitSpecsById()

CbmFsdUnitSpecs * CbmFsdGeoHandler::GetUnitSpecsById ( Int_t id)

Definition at line 111 of file CbmFsdGeoHandler.cxx.

References fUnitIdToSpecsMap.

◆ InitMaps()

◆ operator=()

CbmFsdGeoHandler & CbmFsdGeoHandler::operator= ( const CbmFsdGeoHandler & )
delete

Member Data Documentation

◆ fActiveMatStr

const TString CbmFsdGeoHandler::fActiveMatStr = "scint"
private

Definition at line 85 of file CbmFsdGeoHandler.h.

Referenced by InitMaps().

◆ fBranchStr

const TString CbmFsdGeoHandler::fBranchStr = "fsd_"
private

Definition at line 82 of file CbmFsdGeoHandler.h.

Referenced by GetCopyNumberByKey(), and InitMaps().

◆ fModuleIdToSpecsMap

std::map<Int_t, CbmFsdModuleSpecs*> CbmFsdGeoHandler::fModuleIdToSpecsMap
private

Definition at line 78 of file CbmFsdGeoHandler.h.

Referenced by GetModuleSpecsById(), and InitMaps().

◆ fModuleStr

const TString CbmFsdGeoHandler::fModuleStr = "module"
private

Definition at line 84 of file CbmFsdGeoHandler.h.

Referenced by GetAddress(), GetCurrentAddress(), GetCurrentAddress(), and InitMaps().

◆ fUnitIdToSpecsMap

std::map<Int_t, CbmFsdUnitSpecs*> CbmFsdGeoHandler::fUnitIdToSpecsMap
private

Definition at line 79 of file CbmFsdGeoHandler.h.

Referenced by GetUnitSpecsById(), and InitMaps().

◆ fUnitStr

const TString CbmFsdGeoHandler::fUnitStr = "unit"
private

Definition at line 83 of file CbmFsdGeoHandler.h.

Referenced by GetAddress(), GetCurrentAddress(), GetCurrentAddress(), and InitMaps().


The documentation for this class was generated from the following files: