17 #include <TVirtualMC.h>
21 : TVirtualMCApplication()
25 , fTrkPos(TLorentzVector(0, 0, 0, 0))
29 : TVirtualMCApplication()
33 , fTrkPos(TLorentzVector(0, 0, 0, 0))
42 TVirtualMC::GetMC()->SetRootGeometry();
49 TVirtualMC::GetMC()->Init();
50 TVirtualMC::GetMC()->BuildPhysics();
53 TVirtualMC::GetMC()->SetMagField(fxField);
61 printf(
" FairGeaneApplication::GeaneStepping() \n");
62 TVirtualMC::GetMC()->TrackPosition(fTrkPos);
63 printf(
" Track Position: x = %f y= %f z= %f \n ", fTrkPos.X(), fTrkPos.Y(), fTrkPos.Z());
64 printf(
" Current Volume name: %s \n", TVirtualMC::GetMC()->CurrentVolName());
66 Int_t
id = TVirtualMC::GetMC()->CurrentVolID(copyNo);
67 printf(
" Current Volume id = %i , CopyNo = %i \n",
id, copyNo);
void SetField(FairField *field)
void InitMC(const char *setup, const char *cuts)
ClassImp(FairEventBuilder)
virtual ~FairGeaneApplication()