1 | #ifndef MARS_MCameraData
|
---|
2 | #define MARS_MCameraData
|
---|
3 |
|
---|
4 | #ifndef ROOT_TArrayD
|
---|
5 | #include <TArrayD.h>
|
---|
6 | #endif
|
---|
7 | #ifndef ROOT_TArrayC
|
---|
8 | #include <TArrayC.h>
|
---|
9 | #endif
|
---|
10 | #ifndef MARS_MParContainer
|
---|
11 | #include "MParContainer.h"
|
---|
12 | #endif
|
---|
13 | #ifndef MARS_MCamEvent
|
---|
14 | #include "MCamEvent.h"
|
---|
15 | #endif
|
---|
16 |
|
---|
17 | class MGeomCam;
|
---|
18 | class MSignalCam;
|
---|
19 | class MPedPhotCam;
|
---|
20 |
|
---|
21 | class MCameraData : public MParContainer, public MCamEvent
|
---|
22 | {
|
---|
23 | private:
|
---|
24 | TArrayD fData; //
|
---|
25 | TArrayC fValidity;
|
---|
26 |
|
---|
27 | public:
|
---|
28 | MCameraData(const char *name=NULL, const char *title=NULL);
|
---|
29 | ~MCameraData() { }
|
---|
30 |
|
---|
31 | UInt_t GetNumPixels() const { return fData.GetSize(); }
|
---|
32 |
|
---|
33 | void CalcCleaningLevel(const MSignalCam &evt, const MPedPhotCam &fCam,
|
---|
34 | const MGeomCam &geom);
|
---|
35 | void CalcCleaningLevel(const MSignalCam &evt, Double_t noise,
|
---|
36 | const MGeomCam &geom);
|
---|
37 | void CalcCleaningLevel2(const MSignalCam &evt, const MPedPhotCam &fCam,
|
---|
38 | const MGeomCam &geom);
|
---|
39 | void CalcCleaningLevelDemocratic(const MSignalCam &evt, const MPedPhotCam &cam,
|
---|
40 | const MGeomCam &geom);
|
---|
41 | void CalcCleaningProbability(const MSignalCam &evt, const MPedPhotCam &pcam,
|
---|
42 | const MGeomCam &geom);
|
---|
43 | void CalcCleaningAbsolute(const MSignalCam &evt, const MGeomCam &geom);
|
---|
44 |
|
---|
45 | const TArrayD &GetData() const { return fData; }
|
---|
46 | const TArrayC &GetValidity() const { return fValidity; }
|
---|
47 |
|
---|
48 | Double_t operator[](int i) { return fData[i]; }
|
---|
49 |
|
---|
50 | void Print(Option_t *o="") const;
|
---|
51 |
|
---|
52 | Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
|
---|
53 | void DrawPixelContent(Int_t num) const;
|
---|
54 |
|
---|
55 | ClassDef(MCameraData, 1) // Generalized storage class for camera data
|
---|
56 | };
|
---|
57 |
|
---|
58 | #endif
|
---|