16 #include <TClonesArray.h>
18 #include <TGeoManager.h>
19 #include <TGeoMatrix.h>
20 #include <TGeoVolume.h>
21 #include <TVirtualMC.h>
22 #include <TVirtualMCStack.h>
33 , fPointsArray(new TClonesArray(
"FairTutorialDet1Point"))
45 , fPointsArray(new TClonesArray(
"FairTutorialDet1Point"))
57 , fPointsArray(new TClonesArray(
"FairTutorialDet1Point"))
63 fPointsArray->Delete();
72 TVirtualMC::GetMC()->TrackPosition(fPos);
73 TVirtualMC::GetMC()->TrackMomentum(fMom);
78 24., 24., 50. + 5. + 0.1, TVirtualMC::GetMC()->TrackTime(), fMom.X(), fMom.Y(), fMom.Z(), 0.99 * fMom.E());
80 fTrackID = TVirtualMC::GetMC()->GetStack()->GetCurrentTrackNumber();
82 fTime = TVirtualMC::GetMC()->TrackTime() * 1.0e09;
83 fLength = TVirtualMC::GetMC()->TrackLength();
88 TVector3(fPos.X(), fPos.Y(), fPos.Z()),
89 TVector3(fMom.Px(), fMom.Py(), fMom.Pz()),
125 TGeoVolume* cave = gGeoManager->GetTopVolume();
130 TGeoBBox* bbox =
new TGeoBBox(
"bbox_2", dx, dy, dz);
131 TGeoVolume* vol =
new TGeoVolume(
"fast_sim_vol_n2", bbox,
fFastSimMedium);
136 TGeoRotation* rot =
new TGeoRotation();
137 TGeoCombiTrans* matr =
new TGeoCombiTrans(x, y, z, rot);
139 cave->AddNode(vol, 1, matr);
152 TClonesArray& clref = *fPointsArray;
153 Int_t size = clref.GetEntriesFast();
void AddSensitiveVolume(TGeoVolume *v)
virtual void FastSimProcessParticle()
virtual FairModule * CloneModule() const
FairTutorialDet1Point * AddHit(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t time, Double_t length, Double_t eLoss)
static FairRootManager * Instance()
ClassImp(FairEventBuilder)
TGeoMedium * fFastSimMedium
virtual void Initialize()
virtual void Initialize()
virtual void ConstructGeometry()
virtual TClonesArray * GetCollection(Int_t iColl) const
void Register(const char *name, const char *Foldername, TNamed *obj, Bool_t toFile)
virtual void EndOfEvent()
void AddPoint(DetectorId iDet)
virtual ~FairFastSimExample2()
virtual void FastSimMoveParticleTo(Double_t xx, Double_t yy, Double_t zz, Double_t tt, Double_t px, Double_t py, Double_t pz, Double_t en)
virtual Bool_t IsSensitive(const std::string &name)