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

Last change on this file since 476 was 434, checked in by harald, 24 years ago
Changed the format for root to store the raw data from the pixels. This is the version that was discussed on the software meeting in Goettingen.
File size: 1.8 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 DAQEvtNumber ; // Number of Event
14
15 UInt_t AbsTime[2] ; // Time of the Event
16
17 UInt_t FstLvlTrigNumber ; // Number of 1st level tiggers between 2 events
18
19 UInt_t SecLvlTrigNumber ; // Number of 2nd level tiggers between 2 events
20
21 UInt_t TriggerPattern[2] ; // Trigger configuration
22
23 Byte_t TriggerType ; // Normal trigger 0, pedestal 1, calibration 2
24
25 Byte_t AllLowGainOn ; // Flag indicating if any of the pixels have a
26 // non-negligible low gain signal (1) or not (0)
27
28 TClonesArray *Crates ; // list of crates
29
30 TClonesArray *PixelsHigh ; // list of the events for the
31 // high gain channel
32
33 TClonesArray *PixelsLow ; // list of the events for the low gain
34 // channel if it has signifcant signal
35
36 public:
37
38 MRawEvt() ;
39
40 ~MRawEvt();
41
42 void Clear() ;
43
44 void Print() ;
45
46 void FillHeader( UInt_t, Float_t, Float_t = 0 ) ;
47
48 void FillPixel(Short_t, UShort_t *, Float_t * ) ;
49
50 void FillPixelLow(Short_t, UShort_t *, Float_t * ) ;
51
52 UShort_t GetMultPixel();
53
54 TClonesArray *&GetPixelList() {
55 //
56 // returns a Pointer to the pixel list
57 //
58 return PixelsHigh ;
59 }
60
61 ULong_t GetTimeStamp() {
62 return (ULong_t) AbsTime[0]*4294967296+AbsTime[1];
63 }
64
65
66/* void AddPixel( Short_t ) ; */
67
68/* void AddPixel ( Short_t, Byte_t, Byte_t * ) ; */
69
70
71 ClassDef ( MRawEvt, 1 )
72
73}; // end of class definition of MRawEvt
74
75#endif
Note: See TracBrowser for help on using the repository browser.