32 #include "G4HCofThisEvent.hh"
72 for (
G4int i=0; i<fNofCells+1; i++ ) {
91 if ( edep==0. && stepLength == 0. )
return false;
100 B4cCalorHit* hit = (*fHitsCollection)[layerNumber];
102 G4cerr <<
"Cannot access hit " << layerNumber <<
G4endl;
108 = (*fHitsCollection)[fHitsCollection->
entries()-1];
111 hit->
Add(edep, stepLength);
112 hitTotal->
Add(edep, stepLength);
123 G4cout <<
"\n-------->Hits Collection: in this event they are " << nofHits
124 <<
" hits in the tracker chambers: " <<
G4endl;
125 for (
G4int i=0; i<nofHits; i++ ) (*fHitsCollection)[i]->Print();