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

Last change on this file since 2811 was 2781, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.4 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_MCamEvent
11#include "MCamEvent.h"
12#endif
13
14class MGeomCam;
15class MSigmabar;
16class MCerPhotEvt;
17class MPedPhotCam;
18
19class MCameraData : public MCamEvent
20{
21private:
22 TArrayD fData; //
23 TArrayC fValidity;
24
25public:
26 MCameraData(const char *name=NULL, const char *title=NULL);
27 ~MCameraData() { }
28
29 UInt_t GetNumPixels() const { return fData.GetSize(); }
30
31 void CalcCleaningLevel(const MCerPhotEvt &evt, const MPedPhotCam &fCam,
32 const MGeomCam &geom);
33 void CalcCleaningLevel(const MCerPhotEvt &evt, const MSigmabar &sgb,
34 const MGeomCam &geom);
35 void CalcCleaningLevel(const MCerPhotEvt &evt, Double_t noise,
36 const MGeomCam &geom);
37/*
38 void Calc(const MCerPhotEvt &evt, const MGeomCam &geom)
39 {
40 CalcCleaningLevel(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.