Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
np
nptool
Commits
34f347bb
Commit
34f347bb
authored
Oct 03, 2018
by
Elidiano Tronchin
Browse files
&& Added header of EventGeneratorCosmic.hh
parent
50bdf78a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
NPSimulation/Core/PrimaryGeneratorAction.cc
NPSimulation/Core/PrimaryGeneratorAction.cc
+9
-0
No files found.
NPSimulation/Core/PrimaryGeneratorAction.cc
View file @
34f347bb
...
...
@@ -41,6 +41,7 @@
// Event Generator Class
#include "EventGeneratorIsotropic.hh"
#include "EventGeneratorCosmic.hh"
#include "EventGeneratorMultipleParticle.hh"
#include "EventGeneratorBeam.hh"
...
...
@@ -109,6 +110,14 @@ void PrimaryGeneratorAction::ReadEventGeneratorFile(string Path){
if
(
m_detector
->
GetTarget
()
!=
NULL
)
myEventGenerator
->
SetTarget
(
m_detector
->
GetTarget
());
m_EventGenerator
.
push_back
(
myEventGenerator
);
}
blocks
.
clear
();
blocks
=
parser
.
GetAllBlocksWithToken
(
"Cosmic"
);
if
(
blocks
.
size
()
>
0
)
{
NPS
::
VEventGenerator
*
myEventGenerator
=
new
EventGeneratorCosmic
();
myEventGenerator
->
ReadConfiguration
(
parser
);
myEventGenerator
->
InitializeRootOutput
();
m_EventGenerator
.
push_back
(
myEventGenerator
);
}
m_Target
=
m_detector
->
GetTarget
();
if
(
m_Target
!=
NULL
){
...
...
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