49 #include "G4HCofThisEvent.hh"
50 #include "G4VHitsCollection.hh"
58 :OpticalHitsCollID(-1)
69 G4int printModulo = 100;
76 if(OpticalHitsCollID==-1) {
81 if (evtNb%printModulo == 0)
97 if(OpticalHitsCollID != -1) OpticalHitsColl =
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() ;
G4VHitsCollection * GetHC(G4int i)
G4int GetCollectionID(G4String colName)
void BeginOfEventAction(const G4Event *)
G4GLOB_DLL std::ostream G4cout
static constexpr double eV
void EndOfEventAction(const G4Event *)
G4bool FillH1(G4int id, G4double value, G4double weight=1.0)
static G4SDManager * GetSDMpointer()
G4HCofThisEvent * GetHCofThisEvent() const