source: branches/Mars_MC/mhist/MHCamEventRot.h@ 17782

Last change on this file since 17782 was 9153, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 1.6 KB
Line 
1#ifndef MARS_MHCamEventRot
2#define MARS_MHCamEventRot
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7
8#ifndef ROOT_TH2
9#include <TH2.h>
10#endif
11
12class TH2D;
13
14class MGeomCam;
15class MParList;
16class MTime;
17class MPointingPos;
18class MObservatory;
19
20class MHCamEventRot : public MH
21{
22private:
23 static const TString gsDefName;
24 static const TString gsDefTitle;
25
26 MGeomCam *fGeom; //! container storing the camera geometry
27 MTime *fTime; //! container to take the event time from
28 MPointingPos *fPointPos; //! container to take pointing position from
29 MObservatory *fObservatory; //! conteiner to take observatory location from
30
31 TH2D fHist; // Alpha vs. x and y
32
33 Int_t fType; // Type to used for calling GetPixelContent
34
35 Double_t fRa;
36 Double_t fDec;
37
38 TString fNameTime;
39
40 Float_t fThreshold; // Count pixel above/below this threshold
41 Char_t fUseThreshold; // Use a threshold? Which direction has it?
42
43 TObject *GetCatalog();
44
45public:
46 enum { kIsLowerBound=1, kIsUpperBound=-1, kNoBound=0 };
47
48 MHCamEventRot(const char *name=NULL, const char *title=NULL);
49
50 Bool_t SetupFill(const MParList *pList);
51 Int_t Fill(const MParContainer *par, const Stat_t w=1);
52
53 TH1 *GetHistByName(const TString name) const { return const_cast<TH2D*>(&fHist); }
54
55 void SetNameTime(const char *name) { fNameTime=name; }
56
57 void Draw(Option_t *option="");
58
59 void SetThreshold(Float_t f, Char_t direction=kIsLowerBound) { fThreshold = f; fUseThreshold=direction; }
60
61 ClassDef(MHCamEventRot, 1) //2D-histogram in MCamEvent data (derotated)
62};
63
64#endif
Note: See TracBrowser for help on using the repository browser.