source: trunk/MagicSoft/Mars/mhist/MHSigmaTheta.h@ 1861

Last change on this file since 1861 was 1748, checked in by wittek, 22 years ago
*** empty log message ***
File size: 1.8 KB
Line 
1#ifndef MARS_MHSigmaTheta
2#define MARS_MHSigmaTheta
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7
8#ifndef ROOT_TH2
9#include "TH2.h"
10#endif
11
12#ifndef ROOT_TH3
13#include "TH3.h"
14#endif
15
16#ifndef ROOT_TProfile2D
17#include "TProfile2D.h"
18#endif
19
20class MGeomCam;
21class MCerPhotEvt;
22class MPedestalCam;
23class MMcEvt;
24class MPedestalCam;
25class MSigmabar;
26class MParList;
27
28
29class MHSigmaTheta : public MH
30{
31private:
32 const MGeomCam *fCam;
33 MPedestalCam *fPed;
34 MCerPhotEvt *fEvt;
35 MSigmabar *fSigmabar;
36 MMcEvt *fMcEvt;
37
38 TH2D fSigmaTheta; // 2D-distribution sigmabar versus Theta;
39 // sigmabar is the average pedestasl sigma
40 // in an event
41 TH3D fSigmaPixTheta;// 3D-distr.:Theta, pixel, pedestal sigma
42 TH3D fDiffPixTheta; // 3D-distr.:Theta, pixel, sigma^2-sigmabar^2
43
44
45public:
46 MHSigmaTheta(const char *name=NULL, const char *title=NULL);
47
48 virtual Bool_t SetupFill(const MParList *plist);
49 virtual Bool_t Fill(const MParContainer *par);
50 virtual Bool_t Finalize();
51
52 const TH2D *GetSigmaTheta() { return &fSigmaTheta; }
53 const TH2D *GetSigmaTheta() const { return &fSigmaTheta; }
54 TH2D *GetSigmaThetaByName(const TString name) { return &fSigmaTheta; }
55
56 const TH3D *GetSigmaPixTheta() { return &fSigmaPixTheta; }
57 const TH3D *GetSigmaPixTheta() const { return &fSigmaPixTheta; }
58 TH3D *GetSigmaPixThetaByName(const TString name) { return &fSigmaPixTheta; }
59
60 const TH3D *GetDiffPixTheta() { return &fDiffPixTheta; }
61 const TH3D *GetDiffPixTheta() const { return &fDiffPixTheta; }
62 TH3D *GetDiffPixThetaByName(const TString name) { return &fDiffPixTheta; }
63
64 void Draw(Option_t *option="");
65 TObject *DrawClone(Option_t *option="");
66
67 ClassDef(MHSigmaTheta, 0) //2D-histogram sigmabar vs. Theta
68};
69
70#endif
71
72
73
Note: See TracBrowser for help on using the repository browser.