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

Last change on this file since 2756 was 2488, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.3 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 MPedestalCam;
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 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.