source: trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.h@ 1032

Last change on this file since 1032 was 1032, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.1 KB
Line 
1#ifndef MARS_MCerPhotEvt
2#define MARS_MCerPhotEvt
3
4#ifndef ROOT_TClonesArray
5#include <TClonesArray.h>
6#endif
7#ifndef MARS_MParContainer
8#include "MParContainer.h"
9#endif
10
11class MCerPhotPix;
12
13class MCerPhotEvt : public MParContainer
14{
15private:
16 UInt_t fNumPixels;
17 TClonesArray *fPixels;
18
19public:
20 MCerPhotEvt(const char *name=NULL, const char *title=NULL);
21 ~MCerPhotEvt() { delete fPixels; }
22
23 UInt_t GetNumPixels() const { return fNumPixels; }
24 void AddPixel(Int_t id, Float_t nph, Float_t err);
25
26 Bool_t IsPixelExisting(Int_t id) const;
27 Bool_t IsPixelUsed (Int_t id) const;
28 Bool_t IsPixelCore (Int_t id) const;
29
30 Float_t GetNumPhotonsMin() const;
31 Float_t GetNumPhotonsMax() const;
32
33 MCerPhotPix &operator[](int i) { return *(MCerPhotPix*)(fPixels->At(i)); }
34 MCerPhotPix &operator[](int i) const { return *(MCerPhotPix*)(fPixels->At(i)); }
35
36 void Reset();
37
38 void Draw(Option_t* option = "");
39 void Print(Option_t *opt=NULL) const;
40 void Clear(Option_t *opt=NULL) { Reset(); }
41
42 ClassDef(MCerPhotEvt, 1) // class for an event containing cerenkov photons
43};
44
45#endif
46
Note: See TracBrowser for help on using the repository browser.