48 numberOfCellsInZ(20),numberOfCellsInPhi(48)
63 for(
G4int j=0;j<numberOfCellsInZ;j++)
64 for(
G4int k=0;k<numberOfCellsInPhi;k++)
82 if(edep==0.)
return false;
88 if(CellID[copyIDinZ][copyIDinPhi]==-1)
99 CellID[copyIDinZ][copyIDinPhi] = icell - 1;
101 {
G4cout <<
" New Calorimeter Hit on CellID "
102 << copyIDinZ <<
" " << copyIDinPhi <<
G4endl; }
106 (*CalCollection)[CellID[copyIDinZ][copyIDinPhi]]->AddEdep(edep);
108 {
G4cout <<
" Energy added to CellID "
109 << copyIDinZ <<
" " << copyIDinPhi <<
G4endl; }
119 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
const G4AffineTransform & GetTopTransform() const
G4CollectionNameVector collectionName
virtual void EndOfEvent(G4HCofThisEvent *HCE)
Definition of the RE05CalorimeterSD class.