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

Last change on this file since 5532 was 4838, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.9 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;
21class MArrivalTime;
22
23class MCameraData : public MParContainer, public MCamEvent
24{
25private:
26 TArrayD fData; //
27 TArrayC fValidity;
28
29public:
30 MCameraData(const char *name=NULL, const char *title=NULL);
31 ~MCameraData() { }
32
33 UInt_t GetNumPixels() const { return fData.GetSize(); }
34
35 void CalcCleaningLevel(const MCerPhotEvt &evt, const MPedPhotCam &fCam,
36 const MGeomCam &geom);
37 void CalcCleaningLevel(const MCerPhotEvt &evt, const MSigmabar &sgb,
38 const MGeomCam &geom);
39 void CalcCleaningLevel(const MCerPhotEvt &evt, Double_t noise,
40 const MGeomCam &geom);
41 void CalcCleaningLevel2(const MCerPhotEvt &evt, const MPedPhotCam &fCam,
42 const MGeomCam &geom);
43 void CalcCleaningLevelDemocratic(const MCerPhotEvt &evt, const MPedPhotCam &cam,
44 const MGeomCam &geom);
45 void CalcCleaningProbability(const MCerPhotEvt &evt, const MPedPhotCam &pcam,
46 const MGeomCam &geom, const MArrivalTime *tcam);
47 void CalcCleaningAbsolute(const MCerPhotEvt &evt, const MGeomCam &geom);
48
49 const TArrayD &GetData() const { return fData; }
50 const TArrayC &GetValidity() const { return fValidity; }
51
52 Double_t operator[](int i) { return fData[i]; }
53
54 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
55 void DrawPixelContent(Int_t num) const;
56
57 ClassDef(MCameraData, 1) // Generalized storage class for camera data
58};
59
60#endif
Note: See TracBrowser for help on using the repository browser.