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

Last change on this file since 590 was 588, checked in by harald, 24 years ago
added the first implementation of a class MNphotEvent to describe to describe one event on the level of NumberofCerenkovPhotons
File size: 1.4 KB
Line 
1#ifndef MNPHOTEVENT_H
2#define MNPHOTEVENT_H
3
4#include <iostream>
5#include <TROOT.h>
6class TClonesArray ;
7class TObjArray ;
8
9class MNphotPix : public TObject
10{
11 private:
12
13 Int_t fPixId ; // the pixel Id
14 Float_t fPhot ; // The number of Cerenkov photons
15 Float_t fErrPhot ; // the error of fPhot
16
17 public:
18
19 MNphotPix(Int_t pix = -9999, Float_t phot=0. , Float_t errphot=0.) ;
20
21 void Print() ;
22
23 Int_t GetPixId()
24 {
25 return fPixId ;
26 }
27
28 Float_t GetPhotons()
29 {
30 return fPhot ;
31 }
32
33 Float_t GetErrorPhot()
34 {
35 return fErrPhot ;
36 }
37
38 void SetPixelContent(Int_t pix , Float_t phot , Float_t errphot ) ;
39
40 ClassDef(MNphotPix, 1) // Cerenkov Photons class for the pixel
41} ;
42
43
44// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
45// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
46// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
47
48class MNphotEvent : public TObject
49{
50 private:
51
52 Int_t fType ; //
53 Int_t fNbPixels ; //
54 TClonesArray *fPixels ; //
55
56 public:
57
58 MNphotEvent( Int_t type=0 ) ;
59
60 void Draw(Option_t* option) ;
61
62 Int_t GetNbPixels() ;
63
64 void AddPixel(Int_t id, Float_t nph, Float_t err );
65
66 void Clear() ;
67
68 void Print() ;
69
70 ClassDef(MNphotEvent, 1) // class for CeNphotons Events
71};
72
73#endif
74
75
Note: See TracBrowser for help on using the repository browser.