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