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;
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; }
G4String SensitiveDetectorName
Definition of the RE01CalorimeterHit class.
G4THitsCollection< RE01CalorimeterHit > RE01CalorimeterHitsCollection
RE01CalorimeterSD(G4String name)
virtual const G4NavigationHistory * GetHistory() const
const G4VTouchable * GetTouchable() const
virtual void Initialize(G4HCofThisEvent *HCE)
void SetTrackInformation(const G4Track *aTrack)
virtual G4int GetCollectionID(G4int i)
G4StepPoint * GetPreStepPoint() const
G4GLOB_DLL std::ostream G4cout
void SetPos(G4ThreeVector xyz)
void insert(G4String str)
void SetRot(G4RotationMatrix rmat)
void SetEdep(G4double de)
G4double GetTotalEnergyDeposit() const
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
G4LogicalVolume * GetLogicalVolume() const
virtual G4VPhysicalVolume * GetVolume(G4int depth=0) const
virtual G4int GetReplicaNumber(G4int depth=0) const
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist)
const G4AffineTransform & GetTopTransform() const
G4CollectionNameVector collectionName
G4Track * GetTrack() const
virtual ~RE01CalorimeterSD()
Definition of the RE01CalorimeterSD class.