34 #include "TrackingAction.hh"
37 #include "HistoManager.hh"
47 fNbStep1(0),fNbStep2(0),fTrackLen1(0.),fTrackLen2(0.),fTime1(0.),fTime2(0.)
54 fNbStep1 = fNbStep2 = 0;
55 fTrackLen1 = fTrackLen2 = 0.;
66 fNbStep1++; fTrackLen1 = trackl; fTime1 = time;
68 fNbStep2++; fTrackLen2 = trackl - fTrackLen1; fTime2 = time - fTime1;
79 if (trackID > 1)
return;
84 run->
SumTrackLength(fNbStep1,fNbStep2,fTrackLen1,fTrackLen2,fTime1,fTime2);
89 analysisManager->FillH1(1,fNbStep1);
90 analysisManager->FillH1(2,fTrackLen1);
91 analysisManager->FillH1(3,fTime1);
92 analysisManager->FillH1(4,fNbStep2);
93 analysisManager->FillH1(5,fTrackLen2);
94 analysisManager->FillH1(6,fTime2);
void SumTrackLength(G4int, G4int, G4double, G4double, G4double, G4double)
void PreUserTrackingAction(const G4Track *)
ExG4HbookAnalysisManager G4AnalysisManager
void PostUserTrackingAction(const G4Track *)
static G4RunManager * GetRunManager()
void UpdateTrackInfo(G4double, G4double, G4double)
G4Run * GetNonConstCurrentRun() const