32 #include "ExN04CalorimeterSD.hh"
33 #include "ExN04CalorimeterHit.hh"
46 numberOfCellsInZ(20),numberOfCellsInPhi(48)
69 if(!ROhist)
return false;
72 if(edep==0.)
return false;
80 if(
CellID[copyIDinZ][copyIDinPhi]==-1)
91 CellID[copyIDinZ][copyIDinPhi] = icell - 1;
93 {
G4cout <<
" New Calorimeter Hit on CellID "
94 << copyIDinZ <<
" " << copyIDinPhi <<
G4endl; }
98 (*CalCollection)[
CellID[copyIDinZ][copyIDinPhi]]->AddEdep(edep);
100 {
G4cout <<
" Energy added to CellID "
101 << copyIDinZ <<
" " << copyIDinPhi <<
G4endl; }
109 static G4int HCID = -1;
virtual G4int GetCollectionID(G4int i)
ExN04CalorimeterHitsCollection * CalCollection
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist)
G4LogicalVolume * GetLogicalVolume() const
static constexpr double MeV
G4int GetReplicaNumber(G4int depth=0) const
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
G4String SensitiveDetectorName
virtual void EndOfEvent(G4HCofThisEvent *HCE)
const int numberOfCellsInPhi
G4THitsCollection< ExN04CalorimeterHit > ExN04CalorimeterHitsCollection
ExN04CalorimeterSD(G4String name)
void SetEdep(G4double de)
const G4NavigationHistory * GetHistory() const
void insert(G4String str)
G4VPhysicalVolume * GetVolume(G4int depth=0) const
const G4AffineTransform & GetTopTransform() const
G4double GetTotalEnergyDeposit() const
G4CollectionNameVector collectionName
G4GLOB_DLL std::ostream G4cout
virtual void Initialize(G4HCofThisEvent *HCE)
const int numberOfCellsInZ
void SetPos(G4ThreeVector xyz)
void SetRot(G4RotationMatrix rmat)