Commit 34f347bb authored by Elidiano Tronchin's avatar Elidiano Tronchin
Browse files

&& Added header of EventGeneratorCosmic.hh

parent 50bdf78a
......@@ -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){
......
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