34 #include "TrackingAction.hh"
36 #include "HistoManager.hh"
38 #include "EventAction.hh"
52 fEvent(EA),fTrackMessenger(0),
58 fTimeWindow1 = fTimeWindow2 = 0.;
65 delete fTrackMessenger;
73 fTimeWindow2 = fTimeWindow1 + dt;
106 else if (fCharge > 2.) ih = 5;
107 if (ih) G4AnalysisManager::Instance()->FillH1(ih, Ekin);
136 if (fCharge < 3. )
return;
152 const std::vector<const G4Track*>* secondaries
154 size_t nbtrk = (*secondaries).size();
159 G4double EkinTot = 0., EkinVis = 0.;
161 for (
size_t itr=0; itr<nbtrk; itr++) {
162 const G4Track* trk = (*secondaries)[itr];
168 if (visible) EkinVis += Ekin;
174 analysis->FillH1(6,EkinTot);
175 analysis->FillH1(7,Pbal);
183 analysis->FillH1(8,time);
193 if ((fTime_birth <= fTimeWindow1)&&(fTime_end > fTimeWindow1)) life1 =
true;
194 if ((fTime_birth <= fTimeWindow2)&&(fTime_end > fTimeWindow2)) life2 =
true;
195 if ((fTime_end > fTimeWindow1)&&(fTime_end < fTimeWindow2))
decay =
true;
G4double condition(const G4ErrorSymMatrix &m)
void SetTrackStatus(const G4TrackStatus aTrackStatus)
G4ParticleDefinition * GetDefinition() const
void AddEvisible(G4double val)
void PrimaryTiming(G4double)
void CountInTimeWindow(G4String, G4bool, G4bool, G4bool)
Definition of the TrackingMessenger class.
void EventTiming(G4double)
const G4Step * GetStep() const
const G4String & GetParticleName() const
void SetTimeWindow(G4double, G4double)
static G4AntiNeutrinoE * AntiNeutrinoE()
G4double GetKineticEnergy() const
void PreUserTrackingAction(const G4Track *)
ParticleList decay(Cluster *const c)
Carries out a cluster decay.
void SetTimeWindow(G4double, G4double)
virtual void rndmSaveThisEvent()
const std::vector< const G4Track * > * GetSecondaryInCurrentStep() const
G4double GetGlobalTime() const
void PostUserTrackingAction(const G4Track *)
static G4RunManager * GetRunManager()
G4ThreeVector GetMomentum() const
static G4NeutrinoE * NeutrinoE()
static G4Positron * Positron()
G4double GetPDGMass() const
static G4Electron * Electron()
void AddDecayChain(G4String val)
G4double GetPDGCharge() const
G4CsvAnalysisManager G4AnalysisManager
G4Run * GetNonConstCurrentRun() const
void ParticleCount(G4String, G4double)