Line | |
---|
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_MCamEvent
|
---|
11 | #include "MCamEvent.h"
|
---|
12 | #endif
|
---|
13 |
|
---|
14 | class MGeomCam;
|
---|
15 | class MSigmabar;
|
---|
16 | class MCerPhotEvt;
|
---|
17 | class MPedestalCam;
|
---|
18 |
|
---|
19 | class MCameraData : public MCamEvent
|
---|
20 | {
|
---|
21 | private:
|
---|
22 | TArrayD fData; //
|
---|
23 | TArrayC fValidity;
|
---|
24 |
|
---|
25 | public:
|
---|
26 | MCameraData(const char *name=NULL, const char *title=NULL);
|
---|
27 | ~MCameraData() { }
|
---|
28 |
|
---|
29 | UInt_t GetNumPixels() const { return fData.GetSize(); }
|
---|
30 |
|
---|
31 | void Calc(const MCerPhotEvt &evt, const MPedestalCam &fCam,
|
---|
32 | const MGeomCam &geom);
|
---|
33 | void Calc(const MCerPhotEvt &evt, const MSigmabar &sgb,
|
---|
34 | const MGeomCam &geom);
|
---|
35 | void Calc(const MCerPhotEvt &evt, Double_t noise,
|
---|
36 | const MGeomCam &geom);
|
---|
37 |
|
---|
38 | void Calc(const MCerPhotEvt &evt, const MGeomCam &geom)
|
---|
39 | {
|
---|
40 | Calc(evt, 1, geom);
|
---|
41 | }
|
---|
42 |
|
---|
43 | const TArrayD &GetData() const { return fData; }
|
---|
44 | const TArrayC &GetValidity() const { return fValidity; }
|
---|
45 |
|
---|
46 | Double_t operator[](int i) { return fData[i]; }
|
---|
47 |
|
---|
48 | Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
|
---|
49 | void DrawPixelContent(Int_t num) const;
|
---|
50 |
|
---|
51 | ClassDef(MCameraData, 2) // class for an event containing cerenkov photons
|
---|
52 | };
|
---|
53 |
|
---|
54 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.