Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
geant4-projects
cosmic-rays
Commits
a64ff97c
Commit
a64ff97c
authored
Jul 22, 2019
by
MARCOS ANTONIO DE OLIVEIRA DEROS
Browse files
print particles
parent
01598f66
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/B1RunAction.hh
View file @
a64ff97c
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment