source: trunk/MagicSoft/Mars/mpointing/MHSrcPosCam.h@ 9029

Last change on this file since 9029 was 9000, 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 MParList;
21class MParameterD;
22class MPointingPos;
23
24class MHSrcPosCam : public MH
25{
26private:
27 TH2D fHist; // Histogram of observation time vs source position
28
29 MTime fTimeLastEffOn; //! Last time stamp of effective on time
30 MTime *fTimeEffOn; //! Current effective on time
31 MParameterD *fEffOnTime; //! Effective on time
32 MPointingPos *fSourcePos; //! Pointing position of the telescope
33
34 Double_t fConvMm2Deg; //! Conversion factor from mm to deg
35 TClonesArray fPositions; //! Buffer to store source positions
36 Int_t fNum; //! Position in array
37
38public:
39 MHSrcPosCam(Bool_t wobble=kTRUE, const char *name=NULL, const char *title=NULL);
40
41 // MH
42 Bool_t SetupFill(const MParList *pl);
43 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
44
45 // MHSrcPosCam
46 const TH2D &GetHist() const { return fHist; }
47 TH2D &GetHist() { return fHist; }
48
49 // TObject
50 void Paint(Option_t *option="");
51 void Draw(Option_t *option="");
52
53 ClassDef(MHSrcPosCam, 1) // Histogram for source position distribution
54};
55
56#endif
Note: See TracBrowser for help on using the repository browser.