#include <DMXEventAction.hh>
Definition at line 58 of file DMXEventAction.hh.
◆ DMXEventAction()
DMXEventAction::DMXEventAction |
( |
| ) |
|
Definition at line 76 of file DMXEventAction.cc.
const DMXPrimaryGeneratorAction * genAction
const DMXRunAction * runAct
DMXEventActionMessenger * eventMessenger
◆ ~DMXEventAction()
DMXEventAction::~DMXEventAction |
( |
| ) |
|
|
virtual |
◆ BeginOfEventAction()
void DMXEventAction::BeginOfEventAction |
( |
const G4Event * |
evt | ) |
|
|
virtual |
Reimplemented from G4UserEventAction.
Definition at line 120 of file DMXEventAction.cc.
const long * GetEventSeeds() const
G4int GetCollectionID(G4String colName)
const DMXPrimaryGeneratorAction * genAction
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
const DMXRunAction * runAct
const G4UserRunAction * GetUserRunAction() const
G4GLOB_DLL std::ostream G4cout
G4double GetEnergyPrimary() const
static G4RunManager * GetRunManager()
static G4SDManager * GetSDMpointer()
const G4VUserPrimaryGeneratorAction * GetUserPrimaryGeneratorAction() const
◆ drawTracks()
void DMXEventAction::drawTracks |
( |
const G4Event * |
evt | ) |
|
|
private |
Definition at line 484 of file DMXEventAction.cc.
489 G4int n_trajectories = 0;
491 if(trajContainer) n_trajectories = trajContainer->
entries();
492 for (
G4int i=0; i<n_trajectories; i++) {
virtual void DrawTrajectory() const
static G4VVisManager * GetConcreteInstance()
static G4UImanager * GetUIpointer()
G4TrajectoryContainer * GetTrajectoryContainer() const
G4String GetParticleName() const
G4double GetCharge() const
G4int ApplyCommand(const char *aCommand)
◆ EndOfEventAction()
void DMXEventAction::EndOfEventAction |
( |
const G4Event * |
evt | ) |
|
|
virtual |
Reimplemented from G4UserEventAction.
Definition at line 168 of file DMXEventAction.cc.
219 G4cout <<
" Number of hits in LXe: " << S_hits <<
G4endl;
254 G4cout <<
" Total energy in LXe: " 275 G4cout <<
" Average light collection time: " 277 G4cout <<
" Number of PMT hits (photoelectron equivalent): " G4double totEnergyNeutrons
void writeScintHitsToFile()
G4VHitsCollection * GetHC(G4int i)
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4GLOB_DLL std::ostream G4cout
G4String firstParticleName
void drawTracks(const G4Event *)
G4bool FillH1(G4int id, G4double value, G4double weight=1.0)
G4HCofThisEvent * GetHCofThisEvent() const
virtual void DrawAllHits()
void writePmtHitsToFile(const DMXPmtHitsCollection *)
◆ GetDrawColsFlag()
G4String DMXEventAction::GetDrawColsFlag |
( |
| ) |
const |
|
inline |
◆ GetDrawTrksFlag()
G4String DMXEventAction::GetDrawTrksFlag |
( |
| ) |
const |
|
inline |
◆ SetDrawColsFlag()
void DMXEventAction::SetDrawColsFlag |
( |
G4String |
val | ) |
|
|
inline |
◆ SetDrawHitsFlag()
void DMXEventAction::SetDrawHitsFlag |
( |
G4int |
val | ) |
|
|
inline |
◆ SetDrawTrksFlag()
void DMXEventAction::SetDrawTrksFlag |
( |
G4String |
val | ) |
|
|
inline |
◆ SetPrintModulo()
void DMXEventAction::SetPrintModulo |
( |
G4int |
val | ) |
|
|
inline |
◆ SetSaveHitsFlag()
void DMXEventAction::SetSaveHitsFlag |
( |
G4int |
val | ) |
|
|
inline |
◆ SetSavePmtFlag()
void DMXEventAction::SetSavePmtFlag |
( |
G4int |
val | ) |
|
|
inline |
◆ writePmtHitsToFile()
Definition at line 418 of file DMXEventAction.cc.
432 std::stringstream
sss;
434 filename = sss.str();
446 (*pmtfile) <<
"Hit# X, mm Y, mm Z, mm" <<
G4endl;
447 (*pmtfile) << std::setiosflags(std::ios::fixed)
448 << std::setprecision(3)
453 x = ((*hits)[i]->GetPos()).
x()/
mm;
454 y = ((*hits)[i]->GetPos()).
y()/
mm;
455 z = ((*hits)[i]->GetPos()).
z()/
mm;
456 (*pmtfile) << i <<
"\t" 476 G4cout <<
" " << P_hits <<
" PMT hits in " << filename <<
G4endl;
const DMXRunAction * runAct
G4String GetsavepmtFile() const
G4GLOB_DLL std::ostream G4cout
G4bool FillNtupleDColumn(G4int id, G4double value)
static const char sss[MAX_N_PAR+2]
G4bool FillH2(G4int id, G4double xvalue, G4double yvalue, G4double weight=1.0)
◆ writeScintHitsToFile()
void DMXEventAction::writeScintHitsToFile |
( |
| ) |
|
|
private |
Definition at line 307 of file DMXEventAction.cc.
323 std::stringstream
sss;
325 filename = sss.str();
331 (*hitsfile) <<
"Evt Eprim Etot LXe LXeTime PMT PMTTime Seed1 Seed2 First Flags" 333 (*hitsfile) <<
"# MeV MeV hits ns hits ns hit" 343 (*hitsfile) << std::setiosflags(std::ios::fixed)
344 << std::setprecision(4)
351 << std::setiosflags(std::ios::scientific)
352 << std::setprecision(2)
355 << std::setiosflags(std::ios::fixed)
356 << std::setprecision(4)
359 << *(
seeds+1) <<
"\t" 369 G4cout <<
" Event summary in file " << filename <<
G4endl;
373 G4int firstparticleIndex = 0;
379 firstparticleIndex = 5;
391 long seed2 = *(
seeds+1);
const DMXRunAction * runAct
G4GLOB_DLL std::ostream G4cout
G4bool FillNtupleDColumn(G4int id, G4double value)
G4String firstParticleName
static const double nanosecond
static const char sss[MAX_N_PAR+2]
G4bool FillH1(G4int id, G4double value, G4double weight=1.0)
G4String GetsavehitsFile() const
◆ aveTimePmtHits
◆ drawColsFlag
◆ drawHitsFlag
G4int DMXEventAction::drawHitsFlag |
|
private |
◆ drawTrksFlag
◆ electron_ev
G4bool DMXEventAction::electron_ev |
|
private |
◆ energy_pri
◆ event_id
G4int DMXEventAction::event_id |
|
private |
◆ eventMessenger
◆ firstLXeHitTime
G4double DMXEventAction::firstLXeHitTime |
|
private |
◆ firstParticleE
◆ firstParticleName
G4String DMXEventAction::firstParticleName |
|
private |
◆ gamma_ev
G4bool DMXEventAction::gamma_ev |
|
private |
◆ genAction
◆ hitEnergy
◆ hitsfile
std::ofstream* DMXEventAction::hitsfile |
|
private |
◆ neutron_ev
G4bool DMXEventAction::neutron_ev |
|
private |
◆ other_ev
G4bool DMXEventAction::other_ev |
|
private |
◆ P_hits
G4int DMXEventAction::P_hits |
|
private |
◆ particleEnergy
◆ particleName
◆ pmtCollID
G4int DMXEventAction::pmtCollID |
|
private |
◆ pmtfile
std::ofstream* DMXEventAction::pmtfile |
|
private |
◆ positron_ev
G4bool DMXEventAction::positron_ev |
|
private |
◆ printModulo
G4int DMXEventAction::printModulo |
|
private |
◆ proton_ev
G4bool DMXEventAction::proton_ev |
|
private |
◆ runAct
◆ S_hits
G4int DMXEventAction::S_hits |
|
private |
◆ saveHitsFlag
G4int DMXEventAction::saveHitsFlag |
|
private |
◆ savePmtFlag
G4int DMXEventAction::savePmtFlag |
|
private |
◆ scintillatorCollID
G4int DMXEventAction::scintillatorCollID |
|
private |
◆ seeds
const long* DMXEventAction::seeds |
|
private |
◆ start_gamma
G4bool DMXEventAction::start_gamma |
|
private |
◆ start_neutron
G4bool DMXEventAction::start_neutron |
|
private |
◆ totEnergy
◆ totEnergyGammas
G4double DMXEventAction::totEnergyGammas |
|
private |
◆ totEnergyNeutrons
G4double DMXEventAction::totEnergyNeutrons |
|
private |
The documentation for this class was generated from the following files: