46 fNumberOfCellsInZ(20),fNumberOfCellsInPhi(48)
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.
const G4NavigationHistory * GetHistory() const
G4THitsCollection< RE01CalorimeterHit > RE01CalorimeterHitsCollection
RE01CalorimeterSD(G4String name)
virtual void Initialize(G4HCofThisEvent *HCE)
void SetTrackInformation(const G4Track *aTrack)
const int fNumberOfCellsInPhi
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)
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
const int fNumberOfCellsInZ
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist)
const G4AffineTransform & GetTopTransform() const
G4VPhysicalVolume * GetVolume(G4int depth=0) const
G4CollectionNameVector collectionName
RE01CalorimeterHitsCollection * fCalCollection
G4LogicalVolume * GetLogicalVolume() const
virtual ~RE01CalorimeterSD()
Definition of the RE01CalorimeterSD class.