45 CCalSteppingAction::CCalSteppingAction(){
48 CCalAnalysis* analysis = CCalAnalysis::getInstance();
49 timeHistoMaxBin=analysis->maxbin();
55 for (i=0; i<200; i++) {timeDeposit[i] = 0.;}
56 for (i=0; i<70; i++) {LateralProfile[i] = 0.;}
74 TSliceID = TSliceID<timeHistoMaxBin ? TSliceID : timeHistoMaxBin-1;
81 double perp = std::sqrt(HitPoint.
y()*HitPoint.
y()+HitPoint.
z()*HitPoint.
z());
82 int radialPosition =
std::min(69,
int(perp/
cm));
88 void CCalSteppingAction::endOfEvent(){
91 CCalAnalysis* analysis = CCalAnalysis::getInstance();
92 analysis->InsertLateralProfile(LateralProfile);
93 analysis->InsertTime(timeDeposit);
97 for (i=0; i<70; i++){LateralProfile[i] = 0.;}
98 for (i=0; i<200; i++){timeDeposit[i] = 0.;}
G4StepPoint * GetPreStepPoint() const
G4GLOB_DLL std::ostream G4cout
const G4ThreeVector & GetPosition() const
G4double GetTotalEnergyDeposit() const
G4StepPoint * GetPostStepPoint() const
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
G4double GetGlobalTime() const
virtual void UserSteppingAction(const G4Step *aStep)