source: branches/removing_cpp11_features/mstarcam/MStarCam.h@ 18281

Last change on this file since 18281 was 4667, checked in by rwagner, 20 years ago
*** empty log message ***
File size: 1.5 KB
Line 
1#ifndef MARS_MStarCam
2#define MARS_MStarCam
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8#ifndef MARS_MHCamera
9#include "MHCamera.h"
10#endif
11
12class TList;
13
14class MGeomCam;
15class MStarPos;
16
17class MStarCam : public MParContainer
18{
19private:
20
21 TList *fStars; //-> FIXME: Change TClonesArray away from a pointer?
22
23 // BaseLine DCs info
24 Float_t fInnerPedestalDC; //[ua]
25 Float_t fOuterPedestalDC; //[ua]
26
27 Float_t fInnerPedestalRMSDC; //[ua]
28 Float_t fOuterPedestalRMSDC; //[ua]
29
30 MHCamera fDisplay;
31
32 public:
33
34 MStarCam(const char *name=NULL, const char *title=NULL);
35 ~MStarCam();
36
37 MStarPos &operator[] (Int_t i);
38 const MStarPos &operator[] (Int_t i) const;
39
40 TList *GetList() const { return fStars; }
41 UInt_t GetNumStars() const { return fStars->GetSize(); }
42
43 //Getters
44
45 Float_t GetInnerPedestalDC() {return fInnerPedestalDC;}
46 Float_t GetOuterPedestalDC() {return fOuterPedestalDC;}
47 Float_t GetInnerPedestalRMSDC() { return fInnerPedestalRMSDC;}
48 Float_t GetOuterPedestalRMSDC() { return fOuterPedestalRMSDC;}
49
50 MHCamera& GetDisplay() { return fDisplay; }
51
52 //Setters
53 void SetInnerPedestalDC(Float_t ped) {fInnerPedestalDC = ped;}
54 void SetOuterPedestalDC(Float_t ped) {fOuterPedestalDC = ped;}
55 void SetInnerPedestalRMSDC(Float_t rms){fInnerPedestalRMSDC = rms;}
56 void SetOuterPedestalRMSDC(Float_t rms){fOuterPedestalRMSDC = rms;}
57
58 void Paint(Option_t *o=NULL);
59 void Print(Option_t *o=NULL) const;
60
61 ClassDef(MStarCam, 1) // Storage Container for star positions in the camera
62};
63
64#endif
Note: See TracBrowser for help on using the repository browser.