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

Last change on this file since 1048 was 1048, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.2 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 InitSize(UInt_t num) { fPixels->Expand(num); }
25
26 void AddPixel(Int_t id, Float_t nph, Float_t err);
27
28 Bool_t IsPixelExisting(Int_t id) const;
29 Bool_t IsPixelUsed (Int_t id) const;
30 Bool_t IsPixelCore (Int_t id) const;
31
32 Float_t GetNumPhotonsMin() const;
33 Float_t GetNumPhotonsMax() const;
34
35 MCerPhotPix &operator[](int i) { return *(MCerPhotPix*)(fPixels->UncheckedAt(i)); }
36 MCerPhotPix &operator[](int i) const { return *(MCerPhotPix*)(fPixels->UncheckedAt(i)); }
37
38 void Reset();
39
40 void Draw(Option_t* option = "");
41 void Print(Option_t *opt=NULL) const;
42 void Clear(Option_t *opt=NULL) { Reset(); }
43
44 ClassDef(MCerPhotEvt, 1) // class for an event containing cerenkov photons
45};
46
47#endif
48
Note: See TracBrowser for help on using the repository browser.