source: trunk/Mars/mpointing/MHSrcPosCam.h@ 12750

Last change on this file since 12750 was 9338, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 1.4 KB
Line 
1#ifndef MARS_MHSrcPosCam
2#define MARS_MHSrcPosCam
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7
8#ifndef MARS_MTime
9#include "MTime.h"
10#endif
11
12#ifndef ROOT_TH2
13#include <TH2.h>
14#endif
15
16#ifndef ROOT_TClonesArray
17#include <TClonesArray.h>
18#endif
19
20class MGeomCam;
21class MParList;
22class MParameterD;
23class MPointingPos;
24
25class MHSrcPosCam : public MH
26{
27private:
28 TH2D fHist; // Histogram of observation time vs source position
29
30 MTime fTimeLastEffOn; //! Last time stamp of effective on time
31 MTime *fTimeEffOn; //! Current effective on time
32 MParameterD *fEffOnTime; //! Effective on time
33 MPointingPos *fSourcePos; //! Pointing position of the telescope
34 MGeomCam *fGeom; //! Conversion from mm to deg
35
36 TClonesArray fPositions; //! Buffer to store source positions
37 Int_t fNum; //! Position in array
38
39public:
40 MHSrcPosCam(Bool_t wobble=kTRUE, const char *name=NULL, const char *title=NULL);
41
42 // MH
43 Bool_t SetupFill(const MParList *pl);
44 Int_t Fill(const MParContainer *par, const Stat_t w=1);
45
46 // MHSrcPosCam
47 const TH2D &GetHist() const { return fHist; }
48 TH2D &GetHist() { return fHist; }
49
50 // TObject
51 void Paint(Option_t *option="");
52 void Draw(Option_t *option="");
53
54 ClassDef(MHSrcPosCam, 1) // Histogram for source position distribution
55};
56
57#endif
Note: See TracBrowser for help on using the repository browser.