17#include "Identifier/TofID.h"
18#include "G4Geo/TofG4Geo.h"
19#include "ReadBoostRoot.hh"
24 string GdmlManagementPath = getenv(
"GDMLMANAGEMENTROOT");
25 if (GdmlManagementPath ==
"") cout <<
"TofG4Geo::GdmlManagementPath not set" << endl;
29 string GdmlFile = GdmlManagementPath + string(
"/dat/Tof.gdml");
30 cout <<
"Construct old Tof from GdmlFile " << GdmlFile << endl;
45 if (!
m_TopVolume) cout <<
"TofG4Geo::InitFromGdml, m_TopVolume not found" << endl;
46 else cout <<
"Tof TopVolume name " <<
m_TopVolume->GetName() << endl;
void ReadGdml(const char *gdmlFile, const char *setupName)
Initialize the instance of G4Geo.
G4LogicalVolume * GetLogicalVolume(const std::string &vn)
Get a logical volume by name;.
G4LogicalVolume * m_TopVolume
void InitFromGdml(const char *gdmlFile, const char *setupName)
Initialize the instance of G4Geo.
void SetDefaultVis()
Set default visual attributes;.