source: trunk/MagicSoft/Mars/manalysis/MPedestalCam.h@ 3034

Last change on this file since 3034 was 3034, checked in by gaug, 21 years ago
*** empty log message ***
File size: 1.8 KB
Line 
1#ifndef MARS_MPedestalCam
2#define MARS_MPedestalCam
3
4#ifndef ROOT_TObjArray
5#include <TObjArray.h>
6#endif
7
8#ifndef MARS_MH
9#include "MH.h"
10#endif
11#ifndef MARS_MParContainer
12#include "MParContainer.h"
13#endif
14#ifndef MARS_MCamEvent
15#include "MCamEvent.h"
16#endif
17
18class TClonesArray;
19
20class MGeomCam;
21class MPedestalPix;
22class MHPedestalPixel;
23
24class MPedestalCam : public MH, public MCamEvent
25{
26
27 private:
28
29 static const UInt_t gkBlindPixelId;
30
31 TClonesArray *fArray; // FIXME: Change TClonesArray away from a pointer?
32
33 TObjArray *fHArray; //-> List of Lo/Hi gain Histograms
34
35 ULong_t fTotalEntries;
36 Float_t fExtractSlices;
37
38public:
39 MPedestalCam(const char *name=NULL, const char *title=NULL);
40 ~MPedestalCam();
41
42 void Clear(Option_t *o="");
43
44 void InitSize(const UInt_t i);
45
46 MPedestalPix &operator[](Int_t i);
47 MPedestalPix &operator[](Int_t i) const;
48
49 MHPedestalPixel &operator()(UInt_t i);
50 MHPedestalPixel &operator()(UInt_t i) const;
51
52 Bool_t SetupFill(const MParList *pList);
53 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
54 Bool_t Finalize();
55
56 TObject *Clone(const char *) const;
57
58 // Setters
59 void SetTotalEntries(ULong_t n) { fTotalEntries = n; }
60
61 // Getters
62 Int_t GetSize() const;
63 Int_t GetHistSize() const;
64 ULong_t GetTotalEntries() const { return fTotalEntries; }
65 Float_t GetPedestalMin(const MGeomCam *cam) const;
66 Float_t GetPedestalMax(const MGeomCam *cam) const;
67
68 void Print(Option_t *o="") const;
69
70 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
71 void DrawPixelContent(Int_t idx) const;
72
73 ClassDef(MPedestalCam, 1) // Storage Container for all pedestal information of the camera
74};
75
76#endif
77
Note: See TracBrowser for help on using the repository browser.