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

Last change on this file since 708 was 698, checked in by tbretz, 24 years ago
*** empty log message ***
File size: 1.2 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#ifndef MCAMNEIGHBOR_H
14#include "MCamNeighbor.h"
15#endif
16
17class MCerPhotPix;
18
19class MCerPhotEvt : public MParContainer
20{
21private:
22
23 UInt_t fNumPixels;
24 TClonesArray *fPixels;
25
26 MCamNeighbor fNN; //! the class with the information about neighbors
27
28public:
29 MCerPhotEvt(const char *name=NULL, const char *title=NULL) ;
30 ~MCerPhotEvt() { delete fPixels; }
31
32 void Draw(Option_t* option = "" ) ;
33
34 UInt_t GetNumPixels() const { return fNumPixels; }
35
36 void AddPixel(Int_t id, Float_t nph, Float_t err );
37
38 void Clear(Option_t *opt=NULL) ;
39
40 void Print(Option_t *opt=NULL) ;
41
42 // void CleanLevel1() ;
43 // void CleanLevel2() ;
44 // void CleanLevel3() ;
45
46 Bool_t IsPixelExisting( Int_t id );
47 Bool_t IsPixelUsed ( Int_t id );
48 Bool_t IsPixelCore ( Int_t id );
49
50 Float_t GetNumPhotonsMin();
51 Float_t GetNumPhotonsMax();
52
53 MCerPhotPix &operator[](int i) { return *(MCerPhotPix*)(fPixels->At(i)); }
54
55 ClassDef(MCerPhotEvt, 1) // class for Nphotons Events
56};
57
58#endif
59
Note: See TracBrowser for help on using the repository browser.