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