Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cosmic-rays
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
geant4-projects
cosmic-rays
Commits
a64ff97c
Commit
a64ff97c
authored
Jul 22, 2019
by
MARCOS ANTONIO DE OLIVEIRA DEROS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
print particles
parent
01598f66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
B1RunAction.hh
include/B1RunAction.hh
+6
-0
No files found.
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