source: trunk/MagicSoft/Mars/manalysis/MNphotEvent.h@ 596

Last change on this file since 596 was 596, checked in by harald, 24 years ago
Now the first version of the Camera eventdisplay is running. Run the macro "readCT1.C" to have a look.
File size: 1.6 KB
Line 
1#ifndef MNPHOTEVENT_H
2#define MNPHOTEVENT_H
3
4#ifndef MPARCONTAINER_H
5#include "MParContainer.h"
6#endif
7
8#include <iostream>
9#include <TROOT.h>
10class TClonesArray ;
11class TObjArray ;
12
13class MNphotPix : public TObject
14{
15 private:
16
17 Int_t fPixId ; // the pixel Id
18 Float_t fPhot ; // The number of Cerenkov photons
19 Float_t fErrPhot ; // the error of fPhot
20
21 public:
22
23 MNphotPix(Int_t pix = -9999, Float_t phot=0. , Float_t errphot=0.) ;
24
25 void Print() ;
26
27 Int_t GetPixId()
28 {
29 return fPixId ;
30 }
31
32 Float_t GetPhotons()
33 {
34 return fPhot ;
35 }
36
37 Float_t GetErrorPhot()
38 {
39 return fErrPhot ;
40 }
41
42 void SetPixelContent(Int_t pix , Float_t phot , Float_t errphot ) ;
43
44 ClassDef(MNphotPix, 1) // Cerenkov Photons class for the pixel
45} ;
46
47
48// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
49// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
50// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
51
52class MNphotEvent : public MParContainer
53{
54 private:
55
56 Int_t fType ; //
57 Int_t fNbPixels ; //
58 TClonesArray *fPixels ; //
59
60 public:
61
62 MNphotEvent(const char *name=NULL, const char *title=NULL) ;
63
64 void Draw(Option_t* option = "" ) ;
65
66 Int_t GetNbPixels() ;
67
68 void AddPixel(Int_t id, Float_t nph, Float_t err );
69
70 void Clear() ;
71
72 void Print() ;
73
74 Int_t GetPixelId(Int_t i ) ;
75 Float_t GetPhotons(Int_t i ) ;
76 Float_t GetErrorPhot(Int_t i ) ;
77
78 Float_t GetMinimumPhoton() ;
79 Float_t GetMaximumPhoton() ;
80
81 ClassDef(MNphotEvent, 1) // class for Nphotons Events
82};
83
84#endif
85
86
Note: See TracBrowser for help on using the repository browser.