source: branches/AddingGoogleTestEnvironment/mimage/MHNewImagePar.h@ 19779

Last change on this file since 19779 was 9343, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 1.9 KB
Line 
1#ifndef MARS_MHNewImagePar
2#define MARS_MHNewImagePar
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7#ifndef ROOT_TH1
8#include <TH1.h>
9#endif
10
11class MGeomCam;
12class MHillas;
13
14class MHNewImagePar : public MH
15{
16private:
17 MGeomCam *fGeom; //! Conversion from mm to deg
18
19 TH1F fHistLeakage1; //
20 TH1F fHistLeakage2; //
21
22 TH1F fHistUsedPix; // Number of used pixels
23 TH1F fHistCorePix; // Number of core pixels
24
25 TH1F fHistUsedArea; // Area of used pixels
26 TH1F fHistCoreArea; // Area of core pixels
27
28 TH1F fHistConc; // [ratio] concentration ratio: sum of the two highest pixels / fSize
29 TH1F fHistConc1; // [ratio] concentration ratio: sum of the highest pixel / fSize
30 TH1F fHistConcCOG; // [ratio] concentration of the three pixels next to COG
31 TH1F fHistConcCore; // [ratio] concentration of signals inside or touching the ellipse
32
33public:
34 MHNewImagePar(const char *name=NULL, const char *title=NULL);
35
36 Bool_t SetupFill(const MParList *plist);
37 Int_t Fill(const MParContainer *par, const Stat_t w=1);
38
39 TH1 *GetHistByName(const TString name) const;
40 TObject *FindObject(const TObject *obj) const { return 0; }
41 TObject *FindObject(const char *name) const
42 {
43 return (TObject*)GetHistByName(name);
44 }
45
46 TH1F &GetHistLeakage1() { return fHistLeakage1; }
47 TH1F &GetHistLeakage2() { return fHistLeakage2; }
48
49 TH1F &GetHistUsedPix() { return fHistUsedPix; }
50 TH1F &GetHistCorePix() { return fHistCorePix; }
51
52 TH1F &GetHistUsedArea() { return fHistUsedArea; }
53 TH1F &GetHistCoreArea() { return fHistCoreArea; }
54
55 TH1F &GetHistConc() { return fHistConc; }
56 TH1F &GetHistConc1() { return fHistConc1; }
57 TH1F &GetHistConcCOG() { return fHistConcCOG; }
58 TH1F &GetHistConcCore() { return fHistConcCore; }
59
60 void Draw(Option_t *opt="");
61 void Paint(Option_t *opt="");
62
63 ClassDef(MHNewImagePar, 3) // Histograms of new image parameters
64};
65
66#endif
67
68
Note: See TracBrowser for help on using the repository browser.