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

Last change on this file since 1017 was 1014, 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 void Draw(Option_t* option = "");
24
25 UInt_t GetNumPixels() const { return fNumPixels; }
26
27 void AddPixel(Int_t id, Float_t nph, Float_t err);
28
29 void Clear(Option_t *opt=NULL);
30 void Print(Option_t *opt=NULL) const;
31
32 Bool_t IsPixelExisting(Int_t id) const;
33 Bool_t IsPixelUsed (Int_t id) const;
34 Bool_t IsPixelCore (Int_t id) const;
35
36 Float_t GetNumPhotonsMin() const;
37 Float_t GetNumPhotonsMax() const;
38
39 MCerPhotPix &operator[](int i) { return *(MCerPhotPix*)(fPixels->At(i)); }
40 MCerPhotPix &operator[](int i) const { return *(MCerPhotPix*)(fPixels->At(i)); }
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.