source: branches/Mars_McMismatchStudy/manalysis/MEnergyTable.h@ 18477

Last change on this file since 18477 was 18102, checked in by ghughes, 10 years ago
Added Scaled Width and Length Parameters to output
File size: 2.2 KB
Line 
1#ifndef MARS_MEnergyTable
2#define MARS_MEnergyTable
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8#ifndef ROOT_TArrayD
9#include <TArrayD.h>
10#endif
11
12#include <vector>
13#include "TH2F.h"
14
15#define D2R 3.1415/180.
16
17#ifndef MARS_MParameterCalc
18#include "MParameterCalc.h"
19#endif
20
21using namespace std;
22
23class MHillasSrc;
24class MEnergyEst;
25class MHillas;
26class MNewImagePar;
27class MMcEvt;
28class MHMatrix;
29class MPointingPos;
30class MParameterD;
31
32class MEnergyTable : public MParameterCalc
33{
34private:
35
36 MParameterD *fParameterW;
37 MParameterD *fParameterL;
38 MParameterD *fParameter;
39 MHillasSrc *fHillasSrc;
40 MHillas *fHillas;
41 MPointingPos *fPointing;
42 MMcEvt *fMC;
43
44 TString fNameHillasSrc;
45 TString fNameHillas;
46 TString fNamePoint;
47 TString fNameMC;
48 TString fNameParameter;
49 TString fNameParameterW;
50 TString fNameParameterL;
51
52 Double_t fMm2Deg;
53
54 Int_t PreProcess(MParList *plist);
55 Int_t Process();
56
57 TFile *fTableFile;
58
59 char sHistDir[500];
60 char sHistName[500];
61 char sHistNameL[500];
62 char sHistNameLS[500];
63 char sHistNameW[500];
64 char sHistNameWS[500];
65 int iZen[3];
66 int iThr[3];
67
68 vector<TH2F *> htempE;
69 vector<TH2F *> htempL;
70 vector<TH2F *> htempLS;
71 vector<TH2F *> htempW;
72 vector<TH2F *> htempWS;
73
74 vector< vector<TH2F *> > hEnergy;
75 vector< vector<TH2F *> > hLength;
76 vector< vector<TH2F *> > hLengthSigma;
77 vector< vector<TH2F *> > hWidth;
78 vector< vector<TH2F *> > hWidthSigma;
79
80 Float_t fZenith;
81 float fThreshold;
82 Int_t iZenith;
83 Int_t iThreshold;
84 Int_t iX;
85 Int_t iY;
86 float fEnergy1;
87 float fEnergy2;
88 float fEnergyRecon;
89
90 float fLength;
91 float fWidth;
92 float fLengthSigma;
93 float fWidthSigma;
94
95 float fLength1;
96 float fLength2;
97 float fWidth1;
98 float fWidth2;
99 float fLengthSigma1;
100 float fLengthSigma2;
101 float fWidthSigma1;
102 float fWidthSigma2;
103
104 float RSW,RSL;
105
106public:
107
108 MEnergyTable(const char *name=NULL, const char *title=NULL);
109 ~MEnergyTable();
110
111 Int_t SetTableFile( const TString sTableFile );
112
113 ClassDef(MEnergyTable, 0) // Task to estimate the energy
114
115};
116
117#endif
118
119
120
121
122
123
124
125
Note: See TracBrowser for help on using the repository browser.