source: trunk/MagicSoft/Mars/manalysis/MCameraData.h@ 4667

Last change on this file since 4667 was 4452, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.6 KB
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_MParContainer
11#include "MParContainer.h"
12#endif
13#ifndef MARS_MCamEvent
14#include "MCamEvent.h"
15#endif
16
17class MGeomCam;
18class MSigmabar;
19class MCerPhotEvt;
20class MPedPhotCam;
21
22class MCameraData : public MParContainer, public MCamEvent
23{
24private:
25 TArrayD fData; //
26 TArrayC fValidity;
27
28public:
29 MCameraData(const char *name=NULL, const char *title=NULL);
30 ~MCameraData() { }
31
32 UInt_t GetNumPixels() const { return fData.GetSize(); }
33
34 void CalcCleaningLevel(const MCerPhotEvt &evt, const MPedPhotCam &fCam,
35 const MGeomCam &geom);
36 void CalcCleaningLevel(const MCerPhotEvt &evt, const MSigmabar &sgb,
37 const MGeomCam &geom);
38 void CalcCleaningLevel(const MCerPhotEvt &evt, Double_t noise,
39 const MGeomCam &geom);
40
41 void CalcCleaningLevel2(const MCerPhotEvt &evt, const MPedPhotCam &fCam,
42 const MGeomCam &geom);
43
44 void CalcCleaningLevelDemocratic(const MCerPhotEvt &evt, const MPedPhotCam &cam,
45 const MGeomCam &geom);
46
47 const TArrayD &GetData() const { return fData; }
48 const TArrayC &GetValidity() const { return fValidity; }
49
50 Double_t operator[](int i) { return fData[i]; }
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
Note: See TracBrowser for help on using the repository browser.