er  dev
ERMCApplication.h
1 // -------------------------------------------------------------------------
2 // ----- ERMCApplication header file -----
3 // ----- Created 04/16 by V. Schetinin -----
4 // -------------------------------------------------------------------------
5 
6 #ifndef ERMCAPPLICATION_H
7 #define ERMCAPPLICATION_H
8 
9 #include "FairMCApplication.h"
10 #include "ERDecayer.h"
11 
12 class ERMCApplication : public FairMCApplication{
13 
14 
15 public:
16  ERMCApplication(const char* name, const char* title, TObjArray* ModList, const char* MatName);
22  virtual ~ERMCApplication();
25  static ERMCApplication* Instance();
26 
28  virtual void Stepping(); // MC Application
29 
31  virtual void BeginEvent(); // MC Application
32 
34  virtual void FinishEvent(); // MC Application
35 
36  void SetDecayer(ERDecayer* decayer){fDecayer = decayer;}
37  ERDecayer* GetDecayer() {return fDecayer;}
38  private:
39  ERDecayer* fDecayer;
40 
41  ClassDef(ERMCApplication,1) //Interface to MonteCarlo application
42 };
43 
44 // inline functions
45 
47 { return (ERMCApplication*)(TVirtualMCApplication::Instance());}
48 
49 #endif
virtual void FinishEvent()
virtual ~ERMCApplication()
virtual void Stepping()
static ERMCApplication * Instance()
virtual void BeginEvent()