4 #include "TVirtualMC.h" 6 #include "FairGeoLoader.h" 7 #include "FairGeoInterface.h" 8 #include "FairGeoRootBuilder.h" 9 #include "FairRuntimeDb.h" 10 #include "TObjArray.h" 12 #include "FairRunSim.h" 13 #include "FairGeoVolume.h" 14 #include "FairGeoNode.h" 17 #include "ERMCEventHeader.h" 18 #include "ERGeoPassivePar.h" 23 Double_t ERTarget::fThickness = 2.;
28 fTargetPoints =
new TClonesArray(
"ERmuSiPoint");
33 fTargetPoints =
new TClonesArray(
"ERmuSiPoint");
96 TString fileName = GetGeometryFileName();
97 if(fileName.EndsWith(
".root")) {
98 std::cout <<
"Constructing Target geometry from ROOT file " << fileName.Data() << std::endl;
99 ConstructRootGeometry();
101 LOG(FATAL) <<
"Target geometry file name is not set" << std::endl;
107 FairDetector::Initialize();
113 TString volName = name;
114 if(volName.Contains(
"target_vol")) {
virtual void Initialize()
virtual void EndOfEvent()
virtual void Print(Option_t *option="") const
virtual TClonesArray * GetCollection(Int_t iColl) const
ERTarget()
The point collection //fix.
virtual void BeginEvent()
virtual void CopyClones(TClonesArray *cl1, TClonesArray *cl2, Int_t offset)
virtual void ConstructGeometry()
virtual Bool_t CheckIfSensitive(std::string name)
virtual Bool_t ProcessHits(FairVolume *vol=0)
The base class for detector simulation in er sim.