46 fNumberOfCellsInZ(20),fNumberOfCellsInPhi(48)
49 for(
G4int j=0;j<fNumberOfCellsInZ;j++)
50 for(
G4int k=0;k<fNumberOfCellsInPhi;k++)
68 for(
G4int j=0;j<fNumberOfCellsInZ;j++)
69 for(
G4int k=0;k<fNumberOfCellsInPhi;k++)
74 static G4int HCID = -1;
83 if(!ROhist)
return false;
85 if(edep==0.)
return false;
93 if(fCellID[copyIDinZ][copyIDinPhi]==-1)
105 fCellID[copyIDinZ][copyIDinPhi] = icell - 1;
107 {
G4cout <<
" New Calorimeter Hit on CellID "
108 << copyIDinZ <<
" " << copyIDinPhi <<
G4endl; }
112 (*fCalCollection)[fCellID[copyIDinZ][copyIDinPhi]]->AddEdep(edep);
113 (*fCalCollection)[fCellID[copyIDinZ][copyIDinPhi]]
114 ->SetTrackInformation(aStep->
GetTrack());
116 {
G4cout <<
" Energy added to CellID "
117 << copyIDinZ <<
" " << copyIDinPhi <<
G4endl; }
G4String SensitiveDetectorName
Definition of the RE01CalorimeterHit class.
G4VPhysicalVolume * GetVolume(G4int depth=0) const
G4THitsCollection< RE01CalorimeterHit > RE01CalorimeterHitsCollection
RE01CalorimeterSD(G4String name)
virtual void Initialize(G4HCofThisEvent *HCE)
void SetTrackInformation(const G4Track *aTrack)
virtual G4int GetCollectionID(G4int i)
G4GLOB_DLL std::ostream G4cout
void SetPos(G4ThreeVector xyz)
void insert(G4String str)
G4int GetReplicaNumber(G4int depth=0) const
void SetRot(G4RotationMatrix rmat)
void SetEdep(G4double de)
G4double GetTotalEnergyDeposit() const
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
G4LogicalVolume * GetLogicalVolume() const
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist)
const G4AffineTransform & GetTopTransform() const
G4CollectionNameVector collectionName
const G4NavigationHistory * GetHistory() const
G4Track * GetTrack() const
virtual ~RE01CalorimeterSD()
Definition of the RE01CalorimeterSD class.