49 #include "G4HCofThisEvent.hh"
50 #include "G4VHitsCollection.hh"
58 :OpticalHitsCollID(-1)
69 G4int printModulo = 100;
81 if (
evtNb%printModulo == 0)
104 nOptHits = OpticalHitsColl->
entries();
108 G4cout <<
" Optical Hit # " <<
" " <<
"Energy (eV)" <<
" " <<
"x,y,z (cm)" <<
G4endl ;
112 for(
G4int iHit=0; iHit<nOptHits; iHit++){
113 G4double HitEnergy = (*OpticalHitsColl)[iHit]->GetEnergy() ;
G4int GetCollectionID(G4String colName)
G4HCofThisEvent * GetHCofThisEvent() const
void EndOfEventAction(const G4Event *)
void BeginOfEventAction(const G4Event *)
static constexpr double eV
G4VHitsCollection * GetHC(G4int i)
static G4SDManager * GetSDMpointer()
G4GLOB_DLL std::ostream G4cout
G4bool FillH1(G4int id, G4double value, G4double weight=1.0)