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 F02: " << number <<
G4endl;
103 (*fCalCollection)[fHitID[number]]->AddAbs(edep,stepl);
115 static G4int hcID = -1;
G4String SensitiveDetectorName
G4int GetCollectionID(G4String colName)
G4double GetStepLength() const
G4VPhysicalVolume * GetVolume(G4int depth=0) const
F02CalorimeterSD(G4String, F02DetectorConstruction *)
void AddAbs(G4double de, G4double dl)
const G4VTouchable * GetTouchable() const
Definition of the F02DetectorConstruction class.
G4StepPoint * GetPreStepPoint() const
G4GLOB_DLL std::ostream G4cout
void insert(G4String str)
const G4VPhysicalVolume * GetAbsorber()
Definition of the F02CalorimeterSD class.
Definition of the F02CalorHit class.
G4double GetTotalEnergyDeposit() const
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
virtual void Initialize(G4HCofThisEvent *)
virtual ~F02CalorimeterSD()
static G4SDManager * GetSDMpointer()
G4THitsCollection< F02CalorHit > F02CalorHitsCollection
virtual void EndOfEvent(G4HCofThisEvent *)
G4CollectionNameVector collectionName
virtual G4bool ProcessHits(G4Step *, G4TouchableHistory *)