128 G4cout <<
"CCalEndOfEventAction: No Hit Collection in this event" 139 float hcalE[28], ecalE[49], fullE=0., edec=0, edhc=0;
141 for (i = 0; i < 28; i++) {hcalE[i]=0.;}
142 for (i = 0; i < 49; i++) {ecalE[i]=0.;}
162 G4cout <<
" There are " << nentries <<
" hits in " <<
SDnames[i]
177 if (unitID > 0 && unitID < 29) {
181 int i0 = unitID/4096;
182 int i1 = (unitID/64)%64;
184 if (i0 == 1 && i1 < 8 && i2 < 8) {
190 G4cout <<
" with Energy = " << En/
MeV <<
" MeV in Unit " << unitID
198 G4cout <<
" ===> Total Energy Deposit in this Calorimeter = " 199 << edep[i]*1000.0 <<
" MeV " <<
G4endl;
204 if (
SDnames[i] ==
"HadronCalorimeter") {
206 }
else if (
SDnames[i] ==
"CrystalMatrix") {
215 float x = pos.
x()/
mm;
216 float y = pos.
y()/
mm;
217 float z = pos.
z()/
mm;
223 analysis->
setNtuple(hcalE, ecalE, ener, x, y, z, fullE, edec, edhc);
G4VHitsCollection * GetHC(G4int i)
G4int GetCollectionID(G4String colName)
void setNtuple(float *hcalE, float *ecalE, float elab, float x, float y, float z, float edep, float edec, float edhc)
double getTimeSlice() const
void InsertEnergyHcal(float *)
CCalPrimaryGeneratorAction * primaryGenerator
void InsertEnergyEcal(float *)
G4ThreeVector GetParticlePosition()
G4GLOB_DLL std::ostream G4cout
double getEnergyDeposit() const
unsigned int getUnitID() const
void InsertEnergy(float v)
void EndOfEvent(G4int flag)
Alternative here is a XML file.
static CCalAnalysis * getInstance()
static G4SDManager * GetSDMpointer()
G4HCofThisEvent * GetHCofThisEvent() const
CCalSteppingAction * theSteppingAction
G4double GetParticleEnergy()
void InsertTimeProfile(int, double, double)
static const G4double pos