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.;}