source: trunk/Mars/manalysis/MMakePadHistograms.h@ 10113

Last change on this file since 10113 was 5431, checked in by wittek, 20 years ago
*** empty log message ***
File size: 2.1 KB
Line 
1#ifndef MARS_MMakePadHistograms
2#define MARS_MMakePadHistograms
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8#ifndef MARS_MH
9#include "MH.h"
10#endif
11
12class TH2D;
13class TH3D;
14
15class MMakePadHistograms : public MH
16{
17private:
18
19 TString fType; // type of data to be padded (ON, OFF, MC)
20 Int_t fMaxEvents; // maximum no.of events to be read
21 TString fNamePedPhotCam; // name of the 'MPedPhotCam' container
22 TString fNameInputFile; // name of input file (calibrated data)
23 TString fNameOutputFile; // name of output file (Pad histograms)
24 Float_t fPedestalLevel; // pedestal level for MBadPixelsCalc
25 Bool_t fUseInterpolation; // option for MBadPixelsTreat
26 Bool_t fProcessPedestal; // option for MBadPixelsTreat
27 Bool_t fProcessTime; // option for MBadPixelsTreat
28
29
30 //----------------------------------
31 // plots needed for the padding
32
33 TH2D *fHSigmaTheta; // 2D-histogram (Theta, sigmabar(inner))
34 TH2D *fHSigmaThetaOuter; // 2D-histogram (Theta, sigmabar(outer))
35 TH3D *fHDiffPixTheta; // 3D-histogram (Theta, pixel, (sigma^2-sigmabar^2)/Area)
36 TH3D *fHSigmaPixTheta; // 3D-histogram (Theta, pixel, sigma)
37
38 TH2D *fHBadIdTheta; // 2D-histogram (Theta, Id of bad pixel)
39 TH2D *fHBadNTheta; // 2D-histogram (Theta, no.of bad pixels)
40
41
42public:
43 MMakePadHistograms(const char *name=NULL, const char *title=NULL);
44
45 void SetDataType(const char *); // type of data (ON, OFF, MC)
46 void SetMaxEvents(Int_t); // mx. no.of events to be read
47 void SetNameInputFile(const char *); // Calibrated data
48 void SetNameOutputFile(const char *); // Pad histograms
49 void SetNamePedPhotCam(const char *); // "MPedPhotCamFromData"
50
51 // parameters for MBadPixelsCalc
52 void SetPedestalLevel(Float_t);
53
54 // parameters for MBadPixelsTreat
55 void SetUseInterpolation(Bool_t);
56 void SetProcessPedestal(Bool_t);
57 void SetProcessTime(Bool_t);
58
59 Bool_t MakeHistograms();
60
61 ClassDef(MMakePadHistograms, 0) // class for making the padding histograms
62};
63
64#endif
65
66
67
68
69
70
71
72
73
Note: See TracBrowser for help on using the repository browser.