source: trunk/MagicSoft/Mars/mhist/MHCamEventRot.h@ 5156

Last change on this file since 5156 was 5156, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.5 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 MGeomCam *fGeom; //! container storing the camera geometry
24 MTime *fTime; //! container to take the event time from
25 MPointingPos *fPointPos; //! container to take pointing position from
26 MObservatory *fObservatory; //! conteiner to take observatory location from
27
28 TH2D fHist; // Alpha vs. x and y
29
30 Int_t fType; // Type to used for calling GetPixelContent
31
32 Double_t fRa;
33 Double_t fDec;
34
35 TString fNameTime;
36
37 Float_t fThreshold; // Count pixel above/below this threshold
38 Char_t fUseThreshold; // Use a threshold? Which direction has it?
39
40 TObject *GetCatalog();
41
42public:
43 enum { kIsLowerBound=1, kIsUpperBound=-1, kNoBound=0 };
44
45 MHCamEventRot(const char *name=NULL, const char *title=NULL);
46
47 Bool_t SetupFill(const MParList *pList);
48 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
49
50 TH1 *GetHistByName(const TString name) { return &fHist; }
51
52 void SetNameTime(const char *name) { fNameTime=name; }
53
54 void Draw(Option_t *option="");
55
56 void SetThreshold(Float_t f, Char_t direction=kIsLowerBound) { fThreshold = f; fUseThreshold=direction; }
57
58 ClassDef(MHCamEventRot, 1) //2D-histogram in MCamEvent data (derotated)
59};
60
61#endif
Note: See TracBrowser for help on using the repository browser.