print particles

parent 01598f66
......@@ -31,10 +31,13 @@
#define B1RunAction_h 1
#include "G4UserRunAction.hh"
#include "G4ParticleDefinition.hh"
#include "G4Accumulable.hh"
#include "globals.hh"
#include <map>
class G4Run;
class B1TrackingAction;
/// Run action class
///
......@@ -52,6 +55,7 @@ class B1RunAction : public G4UserRunAction
virtual void BeginOfRunAction(const G4Run*);
virtual void EndOfRunAction(const G4Run*);
void PrintParticles(std::map<const G4ParticleDefinition*, int>& container);
void AddEdep (G4double edep);
private:
......@@ -60,6 +64,8 @@ class B1RunAction : public G4UserRunAction
void WriteHistogram();
G4Accumulable<G4double> fEdep;
G4Accumulable<G4double> fEdep2;
B1TrackingAction* fptrackingAction;
};
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment