10 #ifndef GGSHADRINTACTION_H_
11 #define GGSHADRINTACTION_H_
24 #include "G4PrimaryParticle.hh"
28 #include "TClonesArray.h"
129 float _energyFraction;
130 TClonesArray *_inelasticInteractions;
131 TClonesArray *_quasiElasticInteractions;
132 std::map<const G4Track *, int> _tracks;
133 bool _outputProducts;
135 std::string _outBase;
136 std::string _outTreeName;
void SetOutputFileBase(const std::string &outFileBase)
Sets the output file base name.
void BeginOfEventAction(const G4Event *event)
Clears the interaction arrays.
GGSHadrIntAction()
Constructor.
void SetOutputTreeName(const std::string &outTreeName)
Sets the output tree name.
void BeginOfRunAction(const G4Run *run)
Opens the output file for the current run and prepares the output tree.
void SetOutputOfProducts(bool output)
Toggles the output of hadronic interaction products.
void PostUserTrackingAction(const G4Track *track)
Check the track end for a hadronic interaction.
void SetEnergyFraction(double fraction)
Sets the maximum secondary energy fraction for hadronic interactions.
Action which finds the hadronic interaction points for each primary particle.
void EndOfRunAction(const G4Run *run)
Closes the output file for the current run.
A control messenger for GGSHadrIntAction.
void PreUserTrackingAction(const G4Track *track)
Initialization of primary track.
Mother class for user actions in GGS.
void EndOfEventAction(const G4Event *event)
Fills the output tree.
virtual ~GGSHadrIntAction()
Destructor.