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

#include <CbmTrdGeoHandler.h>

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

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.
 

Detailed Description

Definition at line 33 of file CbmTrdGeoHandler.h.

Constructor & Destructor Documentation

◆ CbmTrdGeoHandler() [1/2]

CbmTrdGeoHandler::CbmTrdGeoHandler ( )

Constructor.

Definition at line 31 of file CbmTrdGeoHandler.cxx.

◆ ~CbmTrdGeoHandler()

CbmTrdGeoHandler::~CbmTrdGeoHandler ( )

Destructor.

Definition at line 50 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 275 of file CbmTrdGeoHandler.cxx.

References GetModuleAddress().

◆ GetLayer()

Int_t CbmTrdGeoHandler::GetLayer ( const TString & path)

Definition at line 191 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 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().

◆ GetModuleAddress() [2/2]

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().

◆ GetModuleCopyNr()

Int_t CbmTrdGeoHandler::GetModuleCopyNr ( const TString & path)

Definition at line 200 of file CbmTrdGeoHandler.cxx.

References fGeoPathHash, fModuleCopy, and NavigateTo().

◆ GetModuleOrientation()

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().

◆ GetModuleType()

Int_t CbmTrdGeoHandler::GetModuleType ( const TString & path)

◆ GetRadiatorType()

Int_t CbmTrdGeoHandler::GetRadiatorType ( const TString & path)

Navigate to node and return the radiator type build in the geometry based on the naming convention.

Returns
radiator type ID or -1 if the radiator is not installed

Definition at line 179 of file CbmTrdGeoHandler.cxx.

References fGeoPathHash, fRadiatorType, and NavigateTo().

Referenced by CbmTrdDigitizer::AddModule().

◆ GetSizeX()

Double_t CbmTrdGeoHandler::GetSizeX ( const TString & path)

Definition at line 137 of file CbmTrdGeoHandler.cxx.

References fGeoPathHash, fVolumeShape, and NavigateTo().

Referenced by CbmTrdParManager::CreateModuleParameters().

◆ GetSizeY()

Double_t CbmTrdGeoHandler::GetSizeY ( const TString & path)

Definition at line 143 of file CbmTrdGeoHandler.cxx.

References fGeoPathHash, fVolumeShape, and NavigateTo().

Referenced by CbmTrdParManager::CreateModuleParameters().

◆ GetSizeZ()

Double_t CbmTrdGeoHandler::GetSizeZ ( const TString & path)

Definition at line 149 of file CbmTrdGeoHandler.cxx.

References fGeoPathHash, fVolumeShape, and NavigateTo().

Referenced by CbmTrdParManager::CreateModuleParameters().

◆ GetStation()

Int_t CbmTrdGeoHandler::GetStation ( const TString & path)

Definition at line 185 of file CbmTrdGeoHandler.cxx.

References fGeoPathHash, fStation, and NavigateTo().

◆ GetX()

Double_t CbmTrdGeoHandler::GetX ( const TString & path)

Definition at line 167 of file CbmTrdGeoHandler.cxx.

References fGeoPathHash, fGlobal, and NavigateTo().

Referenced by CbmTrdParManager::CreateModuleParameters().

◆ GetY()

Double_t CbmTrdGeoHandler::GetY ( const TString & path)

Definition at line 161 of file CbmTrdGeoHandler.cxx.

References fGeoPathHash, fGlobal, and NavigateTo().

Referenced by CbmTrdParManager::CreateModuleParameters().

◆ GetZ()

Double_t CbmTrdGeoHandler::GetZ ( const TString & path)

Definition at line 155 of file CbmTrdGeoHandler.cxx.

References fGeoPathHash, fGlobal, and NavigateTo().

Referenced by CbmTrdParManager::CreateModuleParameters().

◆ Init()

void CbmTrdGeoHandler::Init ( Bool_t isSimulation = kFALSE)

◆ NavigateTo()

◆ operator=()

CbmTrdGeoHandler CbmTrdGeoHandler::operator= ( const CbmTrdGeoHandler & )
private

Member Data Documentation

◆ fCurrentVolume

TGeoVolume* CbmTrdGeoHandler::fCurrentVolume
private

Definition at line 101 of file CbmTrdGeoHandler.h.

Referenced by NavigateTo().

◆ fGeoPathHash

◆ fGlobal

Double_t CbmTrdGeoHandler::fGlobal[3]
private

Definition at line 103 of file CbmTrdGeoHandler.h.

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

◆ fGlobalMatrix

TGeoHMatrix* CbmTrdGeoHandler::fGlobalMatrix
private

Global center of volume.

Definition at line 104 of file CbmTrdGeoHandler.h.

Referenced by NavigateTo().

◆ fIsSimulation

Bool_t CbmTrdGeoHandler::fIsSimulation
private

Definition at line 98 of file CbmTrdGeoHandler.h.

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

◆ fLayer

Int_t CbmTrdGeoHandler::fLayer
private

StationTypeID, 1..3.

Definition at line 113 of file CbmTrdGeoHandler.h.

Referenced by GetLayer(), and NavigateTo().

◆ fLayerId

Int_t CbmTrdGeoHandler::fLayerId
private

Definition at line 105 of file CbmTrdGeoHandler.h.

◆ fModuleCopy

Int_t CbmTrdGeoHandler::fModuleCopy
private

LayerID within station, 1..4.

Definition at line 114 of file CbmTrdGeoHandler.h.

Referenced by GetModuleCopyNr(), and NavigateTo().

◆ fModuleId

Int_t CbmTrdGeoHandler::fModuleId
private

Definition at line 106 of file CbmTrdGeoHandler.h.

◆ fModuleType

Int_t CbmTrdGeoHandler::fModuleType
private

Definition at line 107 of file CbmTrdGeoHandler.h.

Referenced by GetModuleType(), and NavigateTo().

◆ fRadiatorType

Int_t CbmTrdGeoHandler::fRadiatorType
private

Definition at line 108 of file CbmTrdGeoHandler.h.

Referenced by GetRadiatorType(), and NavigateTo().

◆ fRotation

Int_t CbmTrdGeoHandler::fRotation
private

radiator + chamber entrance window type

Definition at line 109 of file CbmTrdGeoHandler.h.

Referenced by GetModuleOrientation(), and NavigateTo().

◆ fStation

Int_t CbmTrdGeoHandler::fStation
private

rotation angle 0,1,2,3

Definition at line 112 of file CbmTrdGeoHandler.h.

Referenced by GetStation(), and NavigateTo().

◆ fVolumeShape

TGeoBBox* CbmTrdGeoHandler::fVolumeShape
private

Definition at line 102 of file CbmTrdGeoHandler.h.

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


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