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

Last change on this file since 2306 was 2206, checked in by tbretz, 21 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
45 Int_t PreProcess(MParList *pList);
46 Int_t Process();
47 Int_t PostProcess();
48
49public:
50 MPadding(const char *name=NULL, const char *title=NULL);
51 ~MPadding();
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.