source: branches/removing_cpp11_features/mpointing/MHSrcPosCam.h

Last change on this file was 14891, checked in by tbretz, 12 years ago
Allow to set the wobble offset directly.
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
39 Float_t fWobbleOffset;
40
41public:
42 MHSrcPosCam(Float_t wobble=0.4, const char *name=NULL, const char *title=NULL);
43
44 // MH
45 Bool_t SetupFill(const MParList *pl);
46 Int_t Fill(const MParContainer *par, const Stat_t w=1);
47
48 // MHSrcPosCam
49 const TH2D &GetHist() const { return fHist; }
50 TH2D &GetHist() { return fHist; }
51
52 // TObject
53 void Paint(Option_t *option="");
54 void Draw(Option_t *option="");
55
56 ClassDef(MHSrcPosCam, 1) // Histogram for source position distribution
57};
58
59#endif
Note: See TracBrowser for help on using the repository browser.