source: trunk/MagicSoft/Mars/manalysis/MPadSchweizer.h@ 1895

Last change on this file since 1895 was 1809, checked in by wittek, 22 years ago
*** empty log message ***
File size: 2.2 KB
Line 
1#ifndef MARS_MPadSchweizer
2#define MARS_MPadSchweizer
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8#ifndef MARS_MH
9#include "MH.h"
10#endif
11
12#include "TRandom3.h"
13#include "TH1.h"
14#include "TH2.h"
15#include "TH3.h"
16#include "TProfile.h"
17
18
19class MGeomCam;
20class MCerPhotEvt;
21class MPedestalCam;
22class MMcEvt;
23class MPedestalCam;
24class MSigmabar;
25class MParList;
26
27class MPadSchweizer : public MTask
28{
29private:
30 MGeomCam *fCam;
31 MCerPhotEvt *fEvt;
32 MSigmabar *fSigmabar;
33 MMcEvt *fMcEvt;
34 MPedestalCam *fPed;
35
36 TRandom3 *fRnd;
37
38 Int_t fPadFlag;
39 Int_t fRunType;
40 Int_t fGroup;
41
42 Int_t fErrors[7];
43
44 // plots used for the padding
45 TH2D *fHSigmaTheta; // 2D-histogram (sigmabar vs. Theta)
46 TH3D *fHSigmaPixTheta; // 3D-histogram (Theta, pixel, sigma)
47 TH3D *fHDiffPixTheta; // 3D-histogram (Theta, pixel, sigma^2-sigmabar^2)
48
49 // plots for checking the padding
50 TH2D *fHSigmaPedestal; // 2D-histogram : pedestal sigma after
51 // versus before padding
52 TH2D *fHPhotons; // 2D-histogram : no.of photons after
53 // versus before padding
54 TH2D *fHSigbarTheta; // 2D-histogram : sigmabar vs. Theta
55 // (after padding)
56 TH1D *fHNSB; // 1D-histogram : additional NSB
57
58 TH3D *fHSigPixTh; // 3D : Theta, pixel, pedestal sigma
59 // (after padding)
60 TH3D *fHDiffPixTh; // 3D : Theta, pixel, sigma^2-sigmabar^2
61 // (after padding)
62
63
64public:
65 MPadSchweizer(const char *name, const char *title,
66 TH2D *fHist2, TH3D *fHist3, TH3D *fHist3Diff);
67 ~MPadSchweizer();
68
69 Bool_t PreProcess(MParList *pList);
70 Bool_t Process();
71 Bool_t PostProcess();
72
73 void SetPadFlag(Int_t padflag);
74 void SetRunType(Int_t runtype) { fRunType = runtype; }
75 void SetGroup(Int_t group) { fGroup = group; }
76
77 ClassDef(MPadSchweizer, 1) // task for the padding (Schweizer)
78};
79
80#endif
81
82
83
84
85
86
87
88
89
Note: See TracBrowser for help on using the repository browser.