10 |
#define PAMVMC_APPLICATION_H |
#define PAMVMC_APPLICATION_H |
11 |
|
|
12 |
#include <TVirtualMCApplication.h> |
#include <TVirtualMCApplication.h> |
13 |
#include "TMCVerbose.h" |
#include <TMCVerbose.h> |
14 |
|
#include <TRandom.h> |
15 |
|
|
16 |
#include "PamVMCDetectorSD.h" |
#include "PamVMCDetectorSD.h" |
17 |
|
|
18 |
|
#include "PamVMCPrimaryGenerator.h" |
19 |
#include "PamVMCDetector.h" |
#include "PamVMCDetector.h" |
20 |
#include "PamVMCDetPamela.h" |
#include "PamVMCDetPamela.h" |
21 |
|
#include "PamVMCFieldMgr.h" |
22 |
|
|
23 |
#include "PamRootManager.h" |
#include "PamRootManager.h" |
24 |
#include "PamVMCDetectorHit.h" |
#include "PamVMCDetectorHit.h" |
25 |
#include <TMap.h> |
#include <TMap.h> |
26 |
|
|
|
//#include "PamVMCDetector.h" |
|
27 |
|
|
28 |
#ifdef PAMFIELD |
#ifdef PAMFIELD |
29 |
#include "TrkParams.h" |
#include "TrkParams.h" |
41 |
class PamVMCApplication : public TVirtualMCApplication |
class PamVMCApplication : public TVirtualMCApplication |
42 |
{ |
{ |
43 |
public: |
public: |
44 |
PamVMCApplication(const char* name, const char *title); |
PamVMCApplication(const char* name, const char *title, const char* filename="pamtest", Int_t seed=0); |
45 |
PamVMCApplication(); |
|
46 |
virtual ~PamVMCApplication(); |
virtual ~PamVMCApplication(); |
47 |
|
|
48 |
// static access method |
// static access method |
64 |
virtual void FinishPrimary(); |
virtual void FinishPrimary(); |
65 |
virtual void FinishEvent(); |
virtual void FinishEvent(); |
66 |
virtual void FinishRun(); |
virtual void FinishRun(); |
67 |
|
#if ROOT_VERSION_CODE < 333572 |
68 |
virtual void Field(const Double_t* x, Double_t* b) const; |
virtual void Field(const Double_t* x, Double_t* b) const; |
69 |
|
#endif |
70 |
// set methods |
// set methods |
71 |
void SetVerboseLevel(Int_t verboseLevel); |
void SetVerboseLevel(Int_t verboseLevel); |
72 |
|
|
77 |
|
|
78 |
private: |
private: |
79 |
|
|
80 |
|
Bool_t IsInsideCavity(); |
81 |
|
|
82 |
// data members |
// data members |
83 |
Int_t fEventNo; |
Int_t fEventNo; |
84 |
TMCVerbose fVerbose; |
TMCVerbose fVerbose; |
85 |
PamVMCStack* fStack; |
PamVMCStack* fStack; |
86 |
PamVMCDetPamela *fdetector; |
PamVMCDetPamela* fdetector; |
87 |
PamVMCPrimaryGenerator* fPrimaryGenerator; |
PamVMCPrimaryGenerator* fPrimaryGenerator; |
88 |
PamRootManager fRootManager; |
PamRootManager fRootManager; |
89 |
|
TRandom3* frandom; |
90 |
fin fdstatus; |
fin fdstatus; |
91 |
|
|
92 |
|
|
93 |
|
|