32 #include <TVirtualMC.h>
33 #include <TGeoMatrix.h>
34 #include <TObjArray.h>
36 #include <Riostream.h>
51 static const TString kModuleNamePrefix =
"GM";
52 return kModuleNamePrefix;
61 moduleName += moduleId;
73 fModuleName(GetModuleName(moduleId)),
116 Float_t xg, Float_t yg, Float_t zg,
117 Float_t& xl, Float_t& yl, Float_t& zl)
const
125 if (!detElement)
return;
133 Double_t xg, Double_t yg, Double_t zg,
134 Double_t& xl, Double_t& yl, Double_t& zl)
const
142 if (!detElement)
return;
150 Float_t xl, Float_t yl, Float_t zl,
151 Float_t& xg, Float_t& yg, Float_t& zg)
const
158 if (!detElement)
return;
166 Double_t xl, Double_t yl, Double_t zl,
167 Double_t& xg, Double_t& yg, Double_t& zg)
const
174 if (!detElement)
return;
182 const TGeoHMatrix& transform)
195 std::string::size_type first = volPath.rfind(
'/')+1;
196 std::string::size_type last = volPath.rfind(
'_');
198 return volPath.substr(first, last-first );
207 std::string::size_type first = volPath.rfind(
'/');
208 if ( first != std::string::npos )
209 volPath = volPath.substr(0, first);
211 std::string::size_type next = volPath.rfind(
'/')+1;
212 std::string::size_type last = volPath.rfind(
'_');
214 return volPath.substr(next, last-next );
231 <<
"Detection element " << detElemId
232 <<
" not found in module " <<
fModuleId << endl;
void Local2Global(Float_t xl, Float_t yl, Float_t zl, Float_t &xg, Float_t &yg, Float_t &zg) const
void Global2Local(Float_t xg, Float_t yg, Float_t zg, Float_t &xl, Float_t &yl, Float_t &zl) const
TObject * GetValue(Int_t keyFirst, Int_t keySecond) const
Class for storing detection element transformations.
Helper class making Root persistent TExMap.