9 #include "ERTelescopeGeoComponentPassive.h" 12 ERTelescopeGeoComponentPassive::ERTelescopeGeoComponentPassive(
13 const TString& fileName,
const TString& topVolumeName,
14 const TVector3& position,
const TVector3& rotation)
15 :
ERGeoComponent(
"None", fileName, position, rotation), fFileName(fileName),
16 fTopVolumeName(topVolumeName) {
17 fGeoFile =
new TFile(fileName,
"READ");
18 if (!fGeoFile->IsOpen())
19 LOG(FATAL) <<
"Can not open file: " << fileName << FairLogger::endl;
22 void ERTelescopeGeoComponentPassive::ConstructGeometryVolume() {
23 fVolume =
static_cast<TGeoVolume*
>(fGeoFile->Get(fTopVolumeName));
25 LOG(FATAL) <<
"Volume " << fTopVolumeName <<
" not found in file " << fFileName