10 #ifndef GGSHADRINTACTION_H_
11 #define GGSHADRINTACTION_H_
25 #include "G4PrimaryParticle.hh"
29 #include "TClonesArray.h"
105 _outBase = outFileBase;
115 _outTreeName = outTreeName;
127 _energyFraction = fraction;
135 _outputProducts = output;
140 float _energyFraction;
141 TClonesArray *_inelasticInteractions;
142 TClonesArray *_quasiElasticInteractions;
143 std::map<const G4Track*, int> _tracks;
144 bool _outputProducts;
146 std::string _outBase;
147 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.