29 #include "SteppingAction.hh"
31 #include "HistoManager.hh"
58 Run* run =
static_cast<Run*
>(
77 analysisManager->FillH1(
id,energy);
82 analysisManager->FillH1(
id,costeta);
86 const std::vector<const G4Track*>* secondary
88 for (
size_t lp=0; lp<(*secondary).size(); lp++) {
89 G4double charge = (*secondary)[lp]->GetDefinition()->GetPDGCharge();
90 if (charge != 0.) {
id = 3; }
else {
id = 5; }
91 G4double energy = (*secondary)[lp]->GetKineticEnergy();
92 analysisManager->FillH1(
id,energy);
95 G4ThreeVector direction = (*secondary)[lp]->GetMomentumDirection();
97 analysisManager->FillH1(
id,costeta);
100 if (charge != 0.) { run->
SumeTransf(energy); }
static G4RunManager * GetRunManager()
const std::vector< const G4Track * > * GetSecondaryInCurrentStep() const
G4StepStatus GetStepStatus() const
G4double GetStepLength() const
G4Track * GetTrack() const
const G4String & GetProcessName() const
const G4ThreeVector & GetMomentumDirection() const
G4CsvAnalysisManager G4AnalysisManager
G4StepPoint * GetPostStepPoint() const
void UserSteppingAction(const G4Step *)
G4double GetKineticEnergy() const
G4Run * GetNonConstCurrentRun() const
void CountProcesses(G4String procName)
virtual void AbortEvent()
const G4VProcess * GetProcessDefinedStep() const
G4TrackStatus GetTrackStatus() const
void SumTrack(G4double track)
void SumeTransf(G4double energy)