|
ATLAS Offline Software
|
Go to the documentation of this file.
20 #ifndef G4PROFILINGTOOLS_TestActionEHist_H
21 #define G4PROFILINGTOOLS_TestActionEHist_H
28 #include "G4UserTrackingAction.hh"
29 #include "G4UserRunAction.hh"
30 #include "G4UserSteppingAction.hh"
36 class G4VPhysicalVolume;
37 class G4TouchableHistory;
47 public G4UserTrackingAction,
public G4UserRunAction,
public G4UserSteppingAction
61 std::string
name=
"default.root";
82 const std::string& vol_tag,
83 const std::string& part_tag,
87 const int nbins = 3000,
88 const int binsize = 1);
91 const std::string& vol_tag,
92 const std::string& dirTitle,
101 #endif // #define G4PROFILINGTOOLS_TestActionEHist_H
void BuildHists(const std::string &vol_tag, const std::string &part_tag, int &hLeft, double xfill=-1, double yfill=-1, const int nbins=3000, const int binsize=1)
Size of bins in histogram, in MeV.
virtual void EndOfRunAction(const G4Run *) override
virtual void BeginOfRunAction(const G4Run *) override
bool BuildDirs(const std::string &vol_tag, const std::string &dirTitle, int &dLeft)
Remaining directories to create.
std::vector< std::string > m_trajectory
Used to store volume names which the current track has entered.
virtual void PostUserTrackingAction(const G4Track *) override
int dMUON
Used for depth limits applied in jobOptions.
virtual void UserSteppingAction(const G4Step *) override
bool m_firstStep
Flag indicating whether step is first in current volume.
int maxdirs
Used to set maximum number of histograms/directories from jobOptions.
virtual void PreUserTrackingAction(const G4Track *) override
TFile * m_world
File in which to store neutron & electron info.
std::string dDetail
Path used to set detailed depth cuts.
Config m_config
holds the python configuration
std::string m_p_tag
Used to specify current particle in tracking.
TestActionEHist(const Config &config)
std::string name
Name of root output file.