32 #include "B4RunAction.hh"
33 #include "B4Analysis.hh"
76 auto analysisManager = G4AnalysisManager::Instance();
85 analysisManager->FillNtupleDColumn(0,
fEnergyAbs);
86 analysisManager->FillNtupleDColumn(1,
fEnergyGap);
87 analysisManager->FillNtupleDColumn(2,
fTrackLAbs);
88 analysisManager->FillNtupleDColumn(3,
fTrackLGap);
89 analysisManager->AddNtupleRow();
93 auto eventID =
event->GetEventID();
95 if ( ( printModulo > 0 ) && (
eventID % printModulo == 0 ) ) {
99 <<
" Absorber: total energy: " << std::setw(7)
101 <<
" total track length: " << std::setw(7)
104 <<
" Gap: total energy: " << std::setw(7)
106 <<
" total track length: " << std::setw(7)
static G4RunManager * GetRunManager()
virtual void BeginOfEventAction(const G4Event *event)
Definition of the B4aEventAction class.
virtual void EndOfEventAction(const G4Event *event)
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4GLOB_DLL std::ostream G4cout
virtual ~B4aEventAction()