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

Last change on this file since 674 was 653, 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#ifndef MCAMNEIGHBOR_H
14#include "MCamNeighbor.h"
15#endif
16
17class MCerPhotPix;
18
19class MCerPhotEvt : public MParContainer
20{
21private:
22
23 Int_t fType;
24 Int_t fNbPixels;
25 TClonesArray *fPixels;
26
27 MCamNeighbor fNN; //! the class with the information about neighbors
28
29public:
30 MCerPhotEvt(const char *name=NULL, const char *title=NULL) ;
31
32 void Draw(Option_t* option = "" ) ;
33
34 Int_t GetNbPixels() ;
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 GetMinNumPhotons();
51 Float_t GetMaxNumPhotons();
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.