34 #include "SteppingAction.hh"
36 #include "HistoManager.hh"
57 Run* run =
static_cast<Run*
>(
78 analysisManager->FillH1(
id,energy);
83 analysisManager->FillH1(
id,costeta);
88 const std::vector<const G4Track*>* secondary
90 for (
size_t lp=0; lp<(*secondary).size(); lp++) {
91 G4double charge = (*secondary)[lp]->GetDefinition()->GetPDGCharge();
92 if (charge != 0.) {
id = 3; }
else {
id = 5; }
93 G4double energy = (*secondary)[lp]->GetKineticEnergy();
94 analysisManager->FillH1(
id,energy);
97 G4ThreeVector direction = (*secondary)[lp]->GetMomentumDirection();
99 analysisManager->FillH1(
id,costeta);
102 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)