54 fHitID(new
G4int[500])
72 for (
G4int j=0;j<1; j++) {fHitID[j] = -1;};
84 if ((edep == 0.) && (stepl == 0.) )
return false;
92 if (fHitID[number]==-1)
96 fHitID[number] = fCalCollection->
insert(calHit) - 1;
98 G4cout <<
" New Calorimeter Hit on F03: " << number <<
G4endl;
103 (*fCalCollection)[fHitID[number]]->AddAbs(edep,stepl);
114 static G4int hcID = -1;
G4String SensitiveDetectorName
void AddAbs(G4double de, G4double dl)
G4int GetCollectionID(G4String colName)
G4double GetStepLength() const
G4THitsCollection< F03CalorHit > F03CalorHitsCollection
G4VPhysicalVolume * GetVolume(G4int depth=0) const
const G4VTouchable * GetTouchable() const
virtual G4bool ProcessHits(G4Step *, G4TouchableHistory *)
virtual void EndOfEvent(G4HCofThisEvent *)
Definition of the F03DetectorConstruction class.
G4StepPoint * GetPreStepPoint() const
G4GLOB_DLL std::ostream G4cout
void insert(G4String str)
const G4VPhysicalVolume * GetAbsorber()
Definition of the F03CalorHit class.
Definition of the F03CalorimeterSD class.
G4double GetTotalEnergyDeposit() const
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
virtual void Initialize(G4HCofThisEvent *)
virtual ~F03CalorimeterSD()
static G4SDManager * GetSDMpointer()
G4CollectionNameVector collectionName
F03CalorimeterSD(G4String, F03DetectorConstruction *)