10 #ifndef GGSLOSTENERGYACTION_H_
11 #define GGSLOSTENERGYACTION_H_
18 #include "montecarlo/dataobjs/GGSTLostEnergyInfo.h"
25 #include "G4PrimaryParticle.hh"
132 std::string _outBase;
133 std::string _outTreeName;
139 float _worldXMin, _worldXMax, _worldYMin, _worldYMax, _worldZMin, _worldZMax;
void SetKineticAsLostEnergy()
Sets the kinetic energy as lost energy.
A simple class to carry informations about lost energy.
void SetOutputFileBase(const std::string &outFileBase)
Sets the output file base name.
void PostUserTrackingAction(const G4Track *track)
Check the track end.
void EndOfRunAction(const G4Run *run)
Closes the output file for the current run.
void EndOfEventAction(const G4Event *event)
Converts energies to GeV and fills the tree.
void SetOutputTreeName(const std::string &outTreeName)
Sets the output tree name.
void BeginOfEventAction(const G4Event *event)
Resets the GGSTLostEnergyInfo buffer.
virtual ~GGSLostEnergyAction()
Destructor.
void BeginOfRunAction(const G4Run *run)
Opens the output file for the current run and prepares the output tree.
Mother class for user actions in GGS.
A control messenger for GGSLostEnergyAction.
GGSLostEnergyAction()
Constructor.
void SetTotalAsLostEnergy()
Sets the total energy as lost energy.
Computes the lost energy due to particles escaping the world volume.