CbmRoot
Loading...
Searching...
No Matches
cbm::trd::geo Namespace Reference

Classes

class  ChamberBuilder
 Generic Chamber builder. More...
 
struct  info_t
 Information to be storred in the geoManager path. Based on legacy class CbmTrdGeoHandler. More...
 
class  Setup
 Setup meta info for the TRD system to supplement the geometry. More...
 
class  SetupManager
 Generate setup meta info for the TRD system. More...
 

Enumerations

enum class  eException { invalid_type = 0 , invalid_id }
 

Functions

bool ReadModuleInfo (const char *modTxt, info_t &info)
 Identify information related to the module encrypted in the geoManager path. Based on legacy function "void CbmTrdGeoHandler::NavigateTo(const TString& path)".
 
bool ReadFebInfo (const char *febTxt, info_t &info)
 Identify information related to one FEB encrypted in the geoManager path.
 
int WriteModuleInfo (info_t *info)
 Put up information related to the module and store it in the geoManager path. Based on legacy version "void Create_TRD_Geometry.C macro".
 
int WriteFebInfo (info_t *info)
 Put up information related to the FEB and store it in the geoManager path.
 
const TGeoMedium * GetMaterial (const char *mname)
 material mapping (name, value)
 

Variables

static double sizeX
 
static double sizeY
 
static double activeAreaX
 total area
 
static double activeAreaY
 
static map< const string, const TGeoMedium * > fMaterial = {}
 active area
 

Enumeration Type Documentation

◆ eException

enum class cbm::trd::geo::eException
strong
Enumerator
invalid_type 
invalid_id 

Definition at line 40 of file CbmTrdGeoFactory.h.

Function Documentation

◆ GetMaterial()

◆ ReadFebInfo()

bool cbm::trd::geo::ReadFebInfo ( const char * febTxt,
info_t & info )

Identify information related to one FEB encrypted in the geoManager path.

\function ReadFebInfo

Parameters
[in]febTxt: FEB name in gGeoManager
[in]info: object to be filled with decrypted info

Definition at line 74 of file CbmTrdGeoFactory.cxx.

References cbm::trd::faspFeb, cbm::trd::geo::info_t::id, cbm::trd::FEB::nmax, cbm::trd::geo::info_t::rotation, cbm::trd::geo::info_t::superId, cbm::trd::geo::info_t::superType, and cbm::trd::geo::info_t::type.

Referenced by cbm::trd::geo::Setup::Module::init().

◆ ReadModuleInfo()

bool cbm::trd::geo::ReadModuleInfo ( const char * modTxt,
info_t & info )

Identify information related to the module encrypted in the geoManager path. Based on legacy function "void CbmTrdGeoHandler::NavigateTo(const TString& path)".

\function ReadModuleInfo

Parameters
[in]modTxt: module name in gGeoManager
[in]info: object to be filled with decrypted info

Definition at line 43 of file CbmTrdGeoFactory.cxx.

References cbm::trd::geo::info_t::address, CbmTrdAddress::GetAddress(), cbm::trd::geo::info_t::id, cbm::trd::geo::info_t::rotation, cbm::trd::geo::info_t::superId, and cbm::trd::geo::info_t::type.

Referenced by cbm::trd::geo::Setup::Module::init().

◆ WriteFebInfo()

int cbm::trd::geo::WriteFebInfo ( info_t * info)

Put up information related to the FEB and store it in the geoManager path.

\function WriteFebInfo

Encryption of FEB info into the node number format : RPPPII info.address : info.superId : identification of FEB in production DB [P]
info.id : identification of FEB placement on the module [I] info.type : Board version [T] info.rotation : rotation in 180deg steps [R] copy number : not used

Definition at line 127 of file CbmTrdGeoFactory.cxx.

References cbm::trd::geo::info_t::id, cbm::trd::geo::info_t::rotation, and cbm::trd::geo::info_t::superId.

Referenced by cbm::trd::geo::ChamberBuilder::Exec().

◆ WriteModuleInfo()

int cbm::trd::geo::WriteModuleInfo ( info_t * info)

Put up information related to the module and store it in the geoManager path. Based on legacy version "void Create_TRD_Geometry.C macro".

\function WriteModuleInfo

Encryption of module info into the node number format : CCRLMMMM info.address : not stored, derived from CbmTrdAddress::GetAddress(ly, mod, 0, 0, 0) info.superId : layer_id [L]
info.id : mod_id / layer [M] info.type : type according to family info.rotation : rotation in 90deg steps [R] copy number : [C]

Definition at line 111 of file CbmTrdGeoFactory.cxx.

Variable Documentation

◆ activeAreaX

◆ activeAreaY

◆ fMaterial

map<const string, const TGeoMedium*> cbm::trd::geo::fMaterial = {}
static

◆ sizeX

◆ sizeY