34 #include "TrackingAction.hh"
37 #include "EventAction.hh"
38 #include "HistoManager.hh"
66 Run* run =
static_cast<Run*
>(
83 Run* run =
static_cast<Run*
>(
98 G4double unit = analysis->GetH1Unit(
id);
99 G4double tmin = analysis->GetH1Xmin(
id)*unit;
100 G4double tmax = analysis->GetH1Xmax(
id)*unit;
101 G4double binWidth = analysis->GetH1Width(
id)*unit;
105 for (
G4double time = t1; time<
t2; time+= binWidth)
106 analysis->FillH1(
id,time);
118 G4int ih1 = 0, ih2 = 0;
122 if (charge > 3.) {ih1 = 10; ih2 = 20;}
130 else if (type ==
"nucleus") {ih1 = 10; ih2 = 20;}
131 else if (type ==
"baryon") {ih1 = 11; ih2 = 21;}
132 else if (type ==
"meson") {ih1 = 12; ih2 = 22;}
133 else if (type ==
"lepton") {ih1 = 13; ih2 = 23;};
134 if (ih1 > 0) analysis->FillH1(ih1,ekin);
135 if (ih2 > 0) analysis->FillH1(ih2,time);
static G4RunManager * GetRunManager()
G4double GetKineticEnergy() const
static G4bool IsIon(const G4ParticleDefinition *)
T max(const T t1, const T t2)
brief Return the largest of the two arguments
G4double GetPDGLifeTime() const
void ParticleFlux(G4String, G4double)
const G4String & GetParticleName() const
const G4String & GetParticleType() const
G4double GetPDGCharge() const
const G4ParticleDefinition * GetParticleDefinition() const
static G4Proton * Proton()
G4ParticleDefinition * GetDefinition() const
void ParticleCount(G4String, G4double)
static G4Deuteron * Deuteron()
void PostUserTrackingAction(const G4Track *)
G4StepStatus GetStepStatus() const
EventAction * fEventAction
void AddEflow(G4double Eflow)
G4double GetGlobalTime() const
static G4Positron * Positron()
G4CsvAnalysisManager G4AnalysisManager
G4StepPoint * GetPostStepPoint() const
const G4Step * GetStep() const
static G4Electron * Electron()
G4Run * GetNonConstCurrentRun() const
G4bool GetPDGStable() const
static G4Neutron * Neutron()
void PreUserTrackingAction(const G4Track *)
T min(const T t1, const T t2)
brief Return the smallest of the two arguments