34 #include "SteppingAction.hh"
42 #include "HistoManager.hh"
61 Run* run =
static_cast<Run*
>(
65 if (process == 0) {
return; }
67 static G4int iCalled=0;
78 size_t lp=(*secondary).size();
81 G4double Egamma = (*secondary)[lp-1]->GetTotalEnergy();
98 G4cout <<
"UserSteppingAction processName="
100 <<
" Step Length=" << std::setw(6)
104 <<
" IsGamma=" << IsGamma
107 <<
" #secondaries lp=" << lp
112 analysisManager->FillH1(1,Egamma);
115 analysisManager->FillH1(2,Egamma,Egamma/
keV);
G4double GetTotalEnergy() const
static G4RunManager * GetRunManager()
G4StepPoint * GetPreStepPoint() const
static constexpr double keV
G4double GetStepLength() const
const G4TrackVector * GetSecondary() const
const G4String & GetProcessName() const
G4CsvAnalysisManager G4AnalysisManager
G4StepPoint * GetPostStepPoint() const
void UserSteppingAction(const G4Step *)
G4Run * GetNonConstCurrentRun() const
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4double f_e_gam_sync_max
G4SteppingManager * fpSteppingManager
std::vector< G4Track * > G4TrackVector
G4GLOB_DLL std::ostream G4cout
G4ThreeVector GetMomentum() const
const G4VProcess * GetProcessDefinedStep() const
G4int GetProcessSubType() const