source: trunk/MagicSoft/Mars/manalysis/MApplyPadding.h@ 1746

Last change on this file since 1746 was 1682, checked in by rwagner, 22 years ago
*** empty log message ***
File size: 1.2 KB
Line 
1#ifndef MARS_MApplyPadding
2#define MARS_MApplyPadding
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8#include "TRandom3.h"
9#include "TH1.h"
10#include "TH2.h"
11
12class MGeomCam;
13class MCerPhotEvt;
14class MPedestalCam;
15class MMcEvt;
16class MPedestalCam;
17class MSigmabar;
18class MParList;
19
20class MApplyPadding : public MTask
21{
22private:
23 const MGeomCam *fCam;
24 MCerPhotEvt *fEvt;
25 MSigmabar *fSigmabar;
26 TRandom3 *fRnd;
27 Int_t fRunType;
28 Int_t fGroup;
29 char *fDatabaseFilename;
30 TH1D *fHSigmabarMax;
31 MMcEvt *fMcEvt;
32 MPedestalCam *fPed;
33 TH2D *fTest;
34 Bool_t fUseHistogram;
35 Double_t fFixedSigmabar;
36
37public:
38 MApplyPadding(const char *name=NULL, const char *title=NULL);
39 ~MApplyPadding();
40
41 Bool_t PreProcess(MParList *pList);
42 Bool_t Process();
43 Bool_t PostProcess();
44
45 void SetRunType(Int_t runtype) { fRunType = runtype; }
46 void SetGroup(Int_t group) { fGroup = group; }
47 void SetDatabaseFile(char *filename) { fDatabaseFilename = filename; }
48 void SetTargetLevel(Double_t sigmabar) { fFixedSigmabar = sigmabar; fUseHistogram=kFALSE; }
49 Bool_t SetDefiningHistogram(TH1D *histo);
50
51 ClassDef(MApplyPadding, 1) // task for applying padding
52};
53
54#endif
55
Note: See TracBrowser for help on using the repository browser.