44 CCalSteppingAction::CCalSteppingAction(){
47 timeHistoMaxBin=analysis->
maxbin();
50 for (i=0; i<200; i++) {timeDeposit[i] = 0.;}
51 for (i=0; i<70; i++) {LateralProfile[i] = 0.;}
69 TSliceID = TSliceID<timeHistoMaxBin ? TSliceID : timeHistoMaxBin-1;
76 double perp = std::sqrt(HitPoint.
y()*HitPoint.
y()+HitPoint.
z()*HitPoint.
z());
77 int radialPosition =
std::min(69,
int(perp/
cm));
83 void CCalSteppingAction::endOfEvent(){
90 for (i=0; i<70; i++){LateralProfile[i] = 0.;}
91 for (i=0; i<200; i++){timeDeposit[i] = 0.;}
static constexpr double nanosecond
G4StepPoint * GetPreStepPoint() const
G4GLOB_DLL std::ostream G4cout
const G4ThreeVector & GetPosition() const
static constexpr double cm
void InsertLateralProfile(float *)
G4double GetTotalEnergyDeposit() const
Alternative here is a XML file.
G4StepPoint * GetPostStepPoint() const
static CCalAnalysis * getInstance()
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
static constexpr double GeV
G4double GetGlobalTime() const
virtual void UserSteppingAction(const G4Step *aStep)