10#include "FairDetector.h"
11#include "FairGeoInterface.h"
12#include "FairGeoLoader.h"
13#include "FairGeoNode.h"
14#include "FairModule.h"
16#include "FairRuntimeDb.h"
19#include "TGeoManager.h"
27CbmBmon::CbmBmon(
const char* name,
const char* title) : FairModule(name, title), fCombiTrans(), fVolumeName(
"") {}
47 LOG(info) <<
"Importing BMON geometry from ROOT file " << fgeoName.Data();
51 LOG(info) <<
"Constructing BMON geometry from ROOT file " << fgeoName.Data();
52 FairModule::ConstructGeometry();
61 TString fileName = GetGeometryFileName();
62 if (fileName.EndsWith(
".root")) {
65 std::cout <<
"\tfgeoName=" << fgeoName <<
"\n\tdata=" << fgeoName.Data() << std::endl;
68 std::cout <<
"\tfileName = " << fileName.Data() << std::endl;
71 LOG(info) <<
"Importing BMON geometry from ROOT file " << fgeoName.Data();
76 LOG(fatal) <<
"Geometry format of BMON file " << fileName.Data() <<
" not supported.";
ClassImp(CbmConverterManager)
virtual void ConstructGeometry()
virtual void ConstructRootGeometry(TGeoMatrix *shift=nullptr)
TGeoCombiTrans * fCombiTrans
Bool_t IsNewGeometryFile(TString &filename)
void ImportRootGeometry(TString &filename, FairModule *mod, TGeoMatrix *mat)