57 HitID =
new G4int[500];
73 for (
G4int j=0;j<1; j++) {HitID[j] = -1;};
86 if ((edep==0.)&&(stepl==0.))
return false;
93 G4int Em10Number = 0 ;
95 if (HitID[Em10Number]==-1)
99 HitID[Em10Number] = CalCollection->
insert(calHit) - 1;
101 G4cout <<
" New Calorimeter Hit on Em10: " << Em10Number <<
G4endl;
106 (*CalCollection)[HitID[Em10Number]]->AddAbs(edep,stepl);
108 G4cout <<
" Energy added to Em10: " << Em10Number <<
G4endl;
118 static G4int HCID = -1;
G4String SensitiveDetectorName
G4ParticleDefinition * GetDefinition() const
Definition of the Em10CalorHit class.
G4int GetCollectionID(G4String colName)
G4bool ProcessHits(G4Step *, G4TouchableHistory *)
G4double GetStepLength() const
G4VPhysicalVolume * GetVolume(G4int depth=0) const
void EndOfEvent(G4HCofThisEvent *)
const G4VTouchable * GetTouchable() const
Definition of the Em10CalorimeterSD class.
void AddAbs(G4double de, G4double dl)
G4StepPoint * GetPreStepPoint() const
G4GLOB_DLL std::ostream G4cout
void insert(G4String str)
Em10CalorimeterSD(G4String, Em10DetectorConstruction *)
void Initialize(G4HCofThisEvent *)
G4double GetTotalEnergyDeposit() const
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
const G4VPhysicalVolume * GetAbsorber()
static G4SDManager * GetSDMpointer()
Definition of the Em10DetectorConstruction class.
G4CollectionNameVector collectionName
G4THitsCollection< Em10CalorHit > Em10CalorHitsCollection
G4Track * GetTrack() const
G4double GetPDGCharge() const