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

Last change on this file since 2123 was 2062, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.9 KB
Line 
1#ifndef MARS_MPadding
2#define MARS_MPadding
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8class TH1D;
9class TH2D;
10class MGeomCam;
11class MCerPhotEvt;
12class MPedestalCam;
13class MMcEvt;
14class MPedestalCam;
15class MSigmabar;
16class MParList;
17
18class MPadding : public MTask
19{
20private:
21 MGeomCam *fCam;
22 MCerPhotEvt *fEvt;
23 MSigmabar *fSigmabar;
24 MMcEvt *fMcEvt;
25 MPedestalCam *fPed;
26
27 Int_t fRunType;
28 Int_t fGroup;
29
30 TString fDatabaseFilename; // data file used for generating fHSigmabarMax histogram
31 Double_t fFixedSigmabar; // fixed sigmabar value
32
33 Bool_t fHSigMaxAllocated; // flag whether MPadding allocated it
34 TH1D *fHSigmabarMax; // histogram (sigmabarmax vs. Theta)
35 TH2D *fHSigmaTheta; // 2D-histogram (sigmabar vs. Theta)
36 TH2D *fHSigmaPedestal; //-> for testing: plot of padded vs orig. pedestal sigmas
37 TH2D *fHPhotons; //-> for testing: no.of photons after versus before padding
38 TH2D *fHSigmaOld; //-> histogram (sigma vs. Theta) before padding
39 TH2D *fHSigmaNew; //-> histogram (sigma vs. Theta) after padding
40 TH1D *fHNSB; //-> histogram of added NSB
41
42 Double_t CalcOtherSig(const Double_t mySig, const Double_t theta) const;
43 Bool_t Padding(const Double_t quadDiff, const Double_t theta);
44
45public:
46 MPadding(const char *name=NULL, const char *title=NULL);
47 ~MPadding();
48
49 Bool_t PreProcess(MParList *pList);
50 Bool_t Process();
51 Bool_t PostProcess();
52
53 void SetRunType(Int_t runtype) { fRunType = runtype; }
54 void SetGroup(Int_t group) { fGroup = group; }
55
56 Bool_t SetDefiningHistogram(TH1D *hist);
57 void SetDatabaseFile(char *filename) { fDatabaseFilename = filename; }
58
59 Bool_t SetSigmaThetaHist(TH2D *histo);
60
61 void SetTargetLevel(Double_t sigmabar);
62
63 ClassDef(MPadding, 0) // task for the padding
64};
65
66#endif
67
68
69
Note: See TracBrowser for help on using the repository browser.