CbmRoot
CbmTrdGeoHandler Class Reference

#include <CbmTrdGeoHandler.h>

Inheritance diagram for CbmTrdGeoHandler:
[legend]
Collaboration diagram for CbmTrdGeoHandler:
[legend]

Public Member Functions

 CbmTrdGeoHandler ()
 Constructor. More...
 
 ~CbmTrdGeoHandler ()
 Destructor. More...
 
void Init (Bool_t isSimulation=kFALSE)
 
Int_t GetModuleAddress ()
 Return module address calculated based on the current node in the TGeoManager. More...
 
Int_t GetModuleAddress (const TString &path)
 Navigate to node and return module address. More...
 
Int_t GetModuleOrientation (const TString &path)
 Navigate to node and return pad orientation. More...
 
std::map< Int_t, TGeoPhysicalNode * > FillModuleMap ()
 Fill map with information of the gas volumes for each detector. More...
 
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 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. More...
 
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. More...
 
Int_t fLayerId
 
Int_t fModuleId
 
Int_t fModuleType
 
Int_t fRotation
 
Int_t fStation
 rotation angle 0,1,2,3 More...
 
Int_t fLayer
 StationTypeID, 1..3. More...
 
Int_t fModuleCopy
 LayerID within station, 1..4. More...
 

Detailed Description

Definition at line 29 of file CbmTrdGeoHandler.h.

Constructor & Destructor Documentation

◆ CbmTrdGeoHandler() [1/2]

CbmTrdGeoHandler::CbmTrdGeoHandler ( )

Constructor.

Definition at line 27 of file CbmTrdGeoHandler.cxx.

◆ ~CbmTrdGeoHandler()

CbmTrdGeoHandler::~CbmTrdGeoHandler ( )

Destructor.

Definition at line 43 of file CbmTrdGeoHandler.cxx.

◆ CbmTrdGeoHandler() [2/2]

CbmTrdGeoHandler::CbmTrdGeoHandler ( const CbmTrdGeoHandler )
private

ModuleCopyID with module type.

Member Function Documentation

◆ FillModuleMap()

std::map< Int_t, TGeoPhysicalNode * > CbmTrdGeoHandler::FillModuleMap ( )

Fill map with information of the gas volumes for each detector.

Definition at line 214 of file CbmTrdGeoHandler.cxx.

References GetModuleAddress().

Referenced by CbmTrdHitProducer::Init().

◆ GetLayer()

Int_t CbmTrdGeoHandler::GetLayer ( const TString &  path)

Definition at line 152 of file CbmTrdGeoHandler.cxx.

References fGeoPathHash, fLayer, and NavigateTo().

◆ GetModuleAddress() [1/2]

Int_t CbmTrdGeoHandler::GetModuleAddress ( )

Return module address calculated based on the current node in the TGeoManager.

Definition at line 49 of file CbmTrdGeoHandler.cxx.

References fIsSimulation, and CbmTrdAddress::GetAddress().

Referenced by CbmTrdDigitizer::AddModule(), CbmTrdParManager::CreateModuleParameters(), FillModuleMap(), GetModuleAddress(), CbmTrdParSetGeo::Init(), and CbmTrd::ProcessHits().

◆ GetModuleAddress() [2/2]

Int_t CbmTrdGeoHandler::GetModuleAddress ( const TString &  path)

Navigate to node and return module address.

Definition at line 90 of file CbmTrdGeoHandler.cxx.

References fGeoPathHash, GetModuleAddress(), and NavigateTo().

◆ GetModuleCopyNr()

Int_t CbmTrdGeoHandler::GetModuleCopyNr ( const TString &  path)

Definition at line 160 of file CbmTrdGeoHandler.cxx.

References fGeoPathHash, fModuleCopy, and NavigateTo().

◆ GetModuleOrientation()

Int_t CbmTrdGeoHandler::GetModuleOrientation ( const TString &  path)

Navigate to node and return pad orientation.

Definition at line 107 of file CbmTrdGeoHandler.cxx.

References fGeoPathHash, fRotation, and NavigateTo().

Referenced by CbmTrdDigitizer::AddModule(), and CbmTrdParManager::CreateModuleParameters().

◆ GetModuleType()

Int_t CbmTrdGeoHandler::GetModuleType ( const TString &  path)

◆ GetSizeX()

Double_t CbmTrdGeoHandler::GetSizeX ( const TString &  path)

Definition at line 112 of file CbmTrdGeoHandler.cxx.

References fGeoPathHash, fVolumeShape, and NavigateTo().

Referenced by CbmTrdParManager::CreateModuleParameters().

◆ GetSizeY()

Double_t CbmTrdGeoHandler::GetSizeY ( const TString &  path)

Definition at line 117 of file CbmTrdGeoHandler.cxx.

References fGeoPathHash, fVolumeShape, and NavigateTo().

Referenced by CbmTrdParManager::CreateModuleParameters().

◆ GetSizeZ()

Double_t CbmTrdGeoHandler::GetSizeZ ( const TString &  path)

Definition at line 122 of file CbmTrdGeoHandler.cxx.

References fGeoPathHash, fVolumeShape, and NavigateTo().

Referenced by CbmTrdParManager::CreateModuleParameters().

◆ GetStation()

Int_t CbmTrdGeoHandler::GetStation ( const TString &  path)

Definition at line 147 of file CbmTrdGeoHandler.cxx.

References fGeoPathHash, fStation, and NavigateTo().

◆ GetX()

Double_t CbmTrdGeoHandler::GetX ( const TString &  path)

Definition at line 137 of file CbmTrdGeoHandler.cxx.

References fGeoPathHash, fGlobal, and NavigateTo().

Referenced by CbmTrdParManager::CreateModuleParameters().

◆ GetY()

Double_t CbmTrdGeoHandler::GetY ( const TString &  path)

Definition at line 132 of file CbmTrdGeoHandler.cxx.

References fGeoPathHash, fGlobal, and NavigateTo().

Referenced by CbmTrdParManager::CreateModuleParameters().

◆ GetZ()

Double_t CbmTrdGeoHandler::GetZ ( const TString &  path)

Definition at line 127 of file CbmTrdGeoHandler.cxx.

References fGeoPathHash, fGlobal, and NavigateTo().

Referenced by CbmTrdParManager::CreateModuleParameters().

◆ Init()

◆ NavigateTo()

◆ operator=()

CbmTrdGeoHandler CbmTrdGeoHandler::operator= ( const CbmTrdGeoHandler )
private

Member Data Documentation

◆ fCurrentVolume

TGeoVolume* CbmTrdGeoHandler::fCurrentVolume
private

Definition at line 93 of file CbmTrdGeoHandler.h.

Referenced by NavigateTo().

◆ fGeoPathHash

UInt_t CbmTrdGeoHandler::fGeoPathHash
private

◆ fGlobal

Double_t CbmTrdGeoHandler::fGlobal[3]
private

Definition at line 95 of file CbmTrdGeoHandler.h.

Referenced by GetX(), GetY(), GetZ(), and NavigateTo().

◆ fGlobalMatrix

TGeoHMatrix* CbmTrdGeoHandler::fGlobalMatrix
private

Global center of volume.

Definition at line 96 of file CbmTrdGeoHandler.h.

Referenced by NavigateTo().

◆ fIsSimulation

Bool_t CbmTrdGeoHandler::fIsSimulation
private

Definition at line 90 of file CbmTrdGeoHandler.h.

Referenced by GetModuleAddress(), Init(), and NavigateTo().

◆ fLayer

Int_t CbmTrdGeoHandler::fLayer
private

StationTypeID, 1..3.

Definition at line 104 of file CbmTrdGeoHandler.h.

Referenced by GetLayer(), and NavigateTo().

◆ fLayerId

Int_t CbmTrdGeoHandler::fLayerId
private

Definition at line 97 of file CbmTrdGeoHandler.h.

◆ fModuleCopy

Int_t CbmTrdGeoHandler::fModuleCopy
private

LayerID within station, 1..4.

Definition at line 105 of file CbmTrdGeoHandler.h.

Referenced by GetModuleCopyNr(), and NavigateTo().

◆ fModuleId

Int_t CbmTrdGeoHandler::fModuleId
private

Definition at line 98 of file CbmTrdGeoHandler.h.

◆ fModuleType

Int_t CbmTrdGeoHandler::fModuleType
private

Definition at line 99 of file CbmTrdGeoHandler.h.

Referenced by GetModuleType(), and NavigateTo().

◆ fRotation

Int_t CbmTrdGeoHandler::fRotation
private

Definition at line 100 of file CbmTrdGeoHandler.h.

Referenced by GetModuleOrientation(), and NavigateTo().

◆ fStation

Int_t CbmTrdGeoHandler::fStation
private

rotation angle 0,1,2,3

Definition at line 103 of file CbmTrdGeoHandler.h.

Referenced by GetStation(), and NavigateTo().

◆ fVolumeShape

TGeoBBox* CbmTrdGeoHandler::fVolumeShape
private

Definition at line 94 of file CbmTrdGeoHandler.h.

Referenced by GetSizeX(), GetSizeY(), GetSizeZ(), and NavigateTo().


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