er  dev
ERMCApplication.cxx
1 #include "ERMCApplication.h"
2 
3 #include<iostream>
4 
5 #include <iostream>
6 using namespace std;
7 
8 ERMCApplication::ERMCApplication(const char* name, const char* title, TObjArray* ModList, const char* MatName):
9  FairMCApplication(name, title,ModList,MatName),
10  fDecayer(NULL)
11 {
12 
13 }
14 
18 
19 }
23 
24 }
25 
28  FairMCApplication::Stepping();
29  if (fDecayer){
30  if (!fDecayer->Stepping())
31  std::cerr << "Fatal problem in ER decayer!" << std::endl;
32  }
33 }
34 
36 void ERMCApplication::BeginEvent(){ // MC Application
37  FairMCApplication::BeginEvent();
38  if (fDecayer)
39  fDecayer->BeginEvent();
40 }
42 void ERMCApplication::FinishEvent(){ // MC Application
43  FairMCApplication::FinishEvent();
44  if(fDecayer)
45  fDecayer->FinishEvent();
46 }
47 
48 ClassImp(ERMCApplication)
virtual void FinishEvent()
virtual ~ERMCApplication()
virtual void Stepping()
virtual void BeginEvent()