source: trunk/MagicSoft/include-Classes/MRawEvt.h@ 422

Last change on this file since 422 was 422, checked in by harald, 24 years ago
One additional member function more to get the pixel id for an entry.
File size: 1.3 KB
Line 
1#ifndef __MRawEvt__
2#define __MRawEvt__
3
4#include <iostream.h>
5#include "TObject.h"
6#include "TClonesArray.h"
7
8#include "Mdefine.h"
9
10class MRawEvt : public TObject {
11
12 private:
13 UInt_t EvtNo ; // Number of Event
14
15 ULong_t fTimeStamp ; // Time of the Event
16
17 UChar_t EvtStatus ; // Status of this event (DAQ, Pedestal, ..)
18
19 UShort_t Trig1st ; // Number of 1st level tiggers between 2 events
20
21 UShort_t MultPixel ; // Multiplicity of the Pixels in this event
22
23 TClonesArray *Pixels ; // list of the events
24
25 public:
26
27 MRawEvt() ;
28
29 ~MRawEvt();
30
31 void Clear() ;
32
33 void Print() ;
34
35 void FillRandom( UInt_t, ULong_t, UShort_t ) ;
36
37 void FillHeader( UInt_t, ULong_t, UChar_t = 0 ) ;
38
39 void FillPixel( UShort_t, Float_t * ) ;
40
41 void FillMontCarl ( UInt_t, ULong_t, Float_t * ) ;
42
43 UShort_t GetMultPixel();
44
45 UShort_t GetPixelId( Int_t )
46 {return 1 ) ;
47
48 TClonesArray *&GetPixelList() {
49 //
50 // returns a Pointer to the pixel list
51 //
52 return Pixels ;
53 }
54
55 ULong_t GetTimeStamp() {
56 return fTimeStamp ;
57 }
58
59
60/* void AddPixel( UShort_t ) ; */
61
62/* void AddPixel ( UShort_t, UChar_t, UChar_t * ) ; */
63
64
65 ClassDef ( MRawEvt, 1 )
66
67}; // end of class definition of MRawEvt
68
69#endif
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
Note: See TracBrowser for help on using the repository browser.