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

Last change on this file since 592 was 592, checked in by harald, 24 years ago
Introduced a Task to read in the data from CT1 files to study the behaviour of different analysis methods. Also the macro "macros/readCT1.C" was added that reads in the CT1 data files and puts the content in the MNphotEvent container. Then you can access that representation of this event.
File size: 1.4 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( Int_t type=0 ) ;
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 ClassDef(MNphotEvent, 1) // class for CeNphotons Events
75};
76
77#endif
78
79
Note: See TracBrowser for help on using the repository browser.