13#include <TGenericClassInfo.h>
14#include <TGeoManager.h>
27 LOG(debug) <<
"Constructor of CbmTrdParSetGeo";
29 LOG(debug) <<
"Constructor of CbmTrdParSetGeo --- finished";
39 TGeoNode* topNode = gGeoManager->GetTopNode();
40 TObjArray* nodes = topNode->GetNodes();
42 LOG(fatal) <<
"CbmTrdParSetGeo::Init: nodes is null!";
48 for (
const auto& path : vGasPaths) {
49 gGeoManager->cd(path.Data());
62 LOG(error) <<
"CbmTrdParSetGeo::LoadAlignVolumes: No modules initialized. Nothing to do.";
75 std::map<Int_t, CbmTrdParMod*>::const_iterator imod =
fModuleMap.begin();
79 printf(
"Module %4d [%p]:\n", imod->first, (
void*) mod);
80 printf(
" %s[%s]\n", mod->GetName(), mod->GetPath());
83 printf(
" X[%.2f] Y[%.2f] Z[%.2f] DX[%.2f] DY[%.2f] DZ[%.2f]\n", xyz[0], xyz[1], xyz[2], mod->GetDX(), mod->GetDY(),
ClassImp(CbmConverterManager)
A multi-purpose class to access the geometrical information stored in a TGeoManager (source)
Helper class to extract information from the GeoManager.
Int_t GetModuleAddress()
Return module address calculated based on the current node in the TGeoManager.
Definition of geometry for one TRD module.
virtual void SetModuleId(int m)
bool LoadAlignVolumes()
Trigger loading alignment information for all nodes registered.
virtual void Print(Option_t *opt="") const
CbmTrdParSetGeo(const char *name="CbmTrdParSetGeo", const char *title="Trd Geometry Parameters", const char *context="TestDefaultContext")
virtual ~CbmTrdParSetGeo(void)
std::map< Int_t, CbmTrdParMod * > fModuleMap
CbmTrdParSet(const char *name="CbmTrdParSet", const char *title="TRD parameters", const char *context="Default")
virtual Int_t GetNrOfModules() const
virtual void addParam(CbmTrdParMod *mod)
static std::vector< TString > CollectNodes(const TString &detector, const std::regex &component, const TString &path, TGeoNode *pNode)
Collects paths of the components.