source: tags/Mars-V0.3/manalysis/MCerPhotEvt.h

Last change on this file was 715, checked in by tbretz, 24 years ago
*** empty log message ***
File size: 1.1 KB
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
14class MCerPhotPix;
15
16class MCerPhotEvt : public MParContainer
17{
18private:
19 UInt_t fNumPixels;
20 TClonesArray *fPixels;
21
22public:
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
34 void Print(Option_t *opt=NULL) ;
35
36 // void CleanLevel1() ;
37 // void CleanLevel2() ;
38 // void CleanLevel3() ;
39
40 Bool_t IsPixelExisting( Int_t id );
41 Bool_t IsPixelUsed ( Int_t id );
42 Bool_t IsPixelCore ( Int_t id );
43
44 Float_t GetNumPhotonsMin();
45 Float_t GetNumPhotonsMax();
46
47 MCerPhotPix &operator[](int i) { return *(MCerPhotPix*)(fPixels->At(i)); }
48
49 ClassDef(MCerPhotEvt, 1) // class for Nphotons Events
50};
51
52#endif
53
Note: See TracBrowser for help on using the repository browser.