48 fNumberOfCellsInZ(20),fNumberOfCellsInPhi(48)
65 for(
G4int j=0;j<fNumberOfCellsInZ;j++)
66 for(
G4int k=0;k<fNumberOfCellsInPhi;k++)
84 if(edep==0.)
return false;
90 if(fCellID[copyIDinZ][copyIDinPhi]==-1)
101 fCellID[copyIDinZ][copyIDinPhi] = icell - 1;
103 {
G4cout <<
" New Calorimeter Hit on fCellID "
104 << copyIDinZ <<
" " << copyIDinPhi <<
G4endl; }
108 (*fCalCollection)[fCellID[copyIDinZ][copyIDinPhi]]->AddEdep(edep);
110 {
G4cout <<
" Energy added to fCellID "
111 << copyIDinZ <<
" " << copyIDinPhi <<
G4endl; }
121 static G4int HCID = -1;
G4String SensitiveDetectorName
void SetRot(G4RotationMatrix rmat)
Definition of the RE05CalorimeterHit class.
virtual void Initialize(G4HCofThisEvent *HCE)
virtual const G4NavigationHistory * GetHistory() const
G4THitsCollection< RE05CalorimeterHit > RE05CalorimeterHitsCollection
const G4VTouchable * GetTouchable() const
void SetEdep(G4double de)
virtual G4int GetCollectionID(G4int i)
G4StepPoint * GetPreStepPoint() const
G4GLOB_DLL std::ostream G4cout
void insert(G4String str)
void SetPos(G4ThreeVector xyz)
virtual ~RE05CalorimeterSD()
G4double GetTotalEnergyDeposit() const
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
G4LogicalVolume * GetLogicalVolume() const
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist)
virtual G4VPhysicalVolume * GetVolume(G4int depth=0) const
RE05CalorimeterSD(G4String name)
virtual G4int GetReplicaNumber(G4int depth=0) const
static constexpr double MeV
const G4AffineTransform & GetTopTransform() const
G4CollectionNameVector collectionName
virtual void EndOfEvent(G4HCofThisEvent *HCE)
Definition of the RE05CalorimeterSD class.