40 #include "ExN04CalorimeterSD.hh"
41 #include "ExN04CalorimeterHit.hh"
46 fCalCollection(NULL), fnumberOfCellsInZ(20), fnumberOfCellsInPhi(48)
75 if ( !ROhist )
return false;
79 if ( edep == 0. )
return false;
84 G4int copyIDinZ = ROhist-> GetReplicaNumber();
85 G4int copyIDinPhi = ROhist-> GetReplicaNumber(1);
87 if (
fCellID[copyIDinZ][copyIDinPhi] == -1 ) {
90 copyIDinZ, copyIDinPhi);
91 calHit-> SetEdep(edep);
97 fCellID[copyIDinZ][copyIDinPhi] = icell - 1;
99 G4cout <<
" New Calorimeter Hit on CellID "
100 << copyIDinZ <<
" " << copyIDinPhi <<
G4endl;
103 (*fCalCollection)[
fCellID[copyIDinZ][copyIDinPhi]]-> AddEdep(edep);
105 G4cout <<
" Energy added to CellID "
106 << copyIDinZ <<
" " << copyIDinPhi <<
G4endl;
116 static G4int HCID = -1;