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

Last change on this file since 1895 was 1768, checked in by wittek, 22 years ago
*** empty log message ***
File size: 2.1 KB
Line 
1#ifndef MARS_MPadding
2#define MARS_MPadding
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 MPadding : 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 fRunType;
39 Int_t fGroup;
40
41 TH1D *fHSigmabarMax; // histogram (sigmabarmax vs. Theta)
42 char *fDatabaseFilename; // data file used for generating
43 // fHSigmabarMax histogram
44
45 TH2D *fHSigmaTheta; // 2D-histogram (sigmabar vs. Theta)
46
47 Double_t fFixedSigmabar; // fixed sigmabar value
48
49 TH2D *fHSigmaPedestal; // for testing : plot of padded vs
50 // orig. pedestal sigmas
51 TH2D *fHPhotons; // for testing : no.of photons after
52 // versus before padding
53 TH2D *fHSigmaOld; // histogram (sigma vs. Theta)
54 // before padding
55
56 TH2D *fHSigmaNew ; // histogram (sigma vs. Theta)
57 // after padding
58 TH1D *fHNSB; // histogram of added NSB
59
60
61public:
62 MPadding(const char *name=NULL, const char *title=NULL);
63 ~MPadding();
64
65 Bool_t PreProcess(MParList *pList);
66 Bool_t Process();
67 Bool_t PostProcess();
68
69 Bool_t Padding(Double_t quadDiff);
70
71 void SetRunType(Int_t runtype) { fRunType = runtype; }
72 void SetGroup(Int_t group) { fGroup = group; }
73
74 Bool_t SetDefiningHistogram(TH1D *hist);
75 void SetDatabaseFile(char *filename) { fDatabaseFilename = filename; }
76
77 Bool_t SetSigmaThetaHist(TH2D *histo);
78
79 void SetTargetLevel(Double_t sigmabar);
80
81 ClassDef(MPadding, 1) // task for the padding
82};
83
84#endif
85
86
87
Note: See TracBrowser for help on using the repository browser.