source: trunk/MagicSoft/Mars/manalysis/MPadONOFF.h@ 2161

Last change on this file since 2161 was 2152, checked in by wittek, 22 years ago
*** empty log message ***
File size: 2.6 KB
Line 
1#ifndef MARS_MPadONOFF
2#define MARS_MPadONOFF
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8#ifndef MARS_MH
9#include "MH.h"
10#endif
11
12class TH1D;
13class TH2D;
14class TH3D;
15
16class MGeomCam;
17class MCerPhotEvt;
18class MPedestalCam;
19class MMcEvt;
20class MSigmabar;
21class MParList;
22class MBlindPixels;
23class MRead;
24class MFilterList;
25
26
27class MPadONOFF : public MTask
28{
29private:
30 MGeomCam *fCam;
31 MCerPhotEvt *fEvt;
32 MSigmabar *fSigmabar;
33 MMcEvt *fMcEvt;
34 MPedestalCam *fPed;
35 MBlindPixels *fBlinds;
36
37 TString fType; // type of data to be padded
38 TFile *fInfile; // input file containing padding histograms
39
40 Int_t fPadFlag;
41 Int_t fRunType;
42 Int_t fGroup;
43
44 Int_t fErrors[9];
45
46 // plots used for the padding
47 TH2D *fHBlindPixIdTheta; // 2D-histogram (blind pixel Id vs. Theta)
48 TH2D *fHBlindPixNTheta; // 2D-histogram (no.of blind pixels vs. Theta)
49 TH2D *fHSigmaTheta; // 2D-histogram (sigmabar vs. Theta)
50 TH3D *fHSigmaPixTheta; // 3D-histogram (Theta, pixel, sigma)
51 TH3D *fHDiffPixTheta; // 3D-histogram (Theta, pixel, sigma^2-sigmabar^2)
52 TH3D *fHgON; // matrix (Theta, sigbarold, sigbarnew) for ON data
53 TH3D *fHgOFF; // matrix (Theta, sigbarold, sigbarnew) for OFF data
54
55 // plots for checking the padding
56 TH2D *fHSigmaPedestal; // 2D-histogram : pedestal sigma after
57 // versus before padding
58 TH2D *fHPhotons; // 2D-histogram : no.of photons after
59 // versus before padding
60 TH1D *fHNSB; // 1D-histogram : additional NSB
61
62
63public:
64 MPadONOFF(const char *name=NULL, const char *title=NULL);
65 ~MPadONOFF();
66
67 Bool_t MergeHistograms(TH2D *sigthon, TH2D *sigthoff,
68 TH3D *sigpixthon, TH3D *sigpixthoff,
69 TH3D *diffpixthon, TH3D *diffpixthoff,
70 TH2D *blindidthon, TH2D *blindidthoff,
71 TH2D *blindnthon, TH2D *blindnthoff);
72
73 Bool_t ReadTargetDist(const char *filein);
74 Bool_t WriteTargetDist(const char *fileout);
75
76 void SetDataType(const char *type); // type of data to be padded
77
78 Bool_t PreProcess(MParList *pList);
79 Bool_t Process();
80 Bool_t PostProcess();
81
82 void SetPadFlag(Int_t padflag);
83
84 ClassDef(MPadONOFF, 0) // task for the ON-OFF padding
85};
86
87#endif
88
89
90
91
Note: See TracBrowser for help on using the repository browser.