source: branches/start/MagicSoft/Mars/mraw/MRawEvtData.h@ 9492

Last change on this file since 9492 was 454, checked in by harald, 24 years ago
Import the first sources of the MAGIC Analysis and Reconstruction Software. T. Bretz and H. Kornmayer 20.December 2000
File size: 1.5 KB
Line 
1#ifndef MRAWEVTDATA_H
2#define MRAWEVTDATA_H
3
4#ifndef MPARCONTAINER_H
5#include "MParContainer.h"
6#endif
7
8class ifstream;
9class MRawRunHeader;
10
11class TArrayC;
12class MArrayS;
13class MArrayB;
14
15class MRawEvtData : public MParContainer
16{
17 friend class MRawEvtPixelIter;
18private:
19 MRawRunHeader *fRunHeader; //! provides information about numbers
20
21 // FIXME: COMMENT ABOUT ORDERING
22
23 MArrayS *fHiGainPixId; // list of pixel IDs of hi gain channel
24 MArrayB *fHiGainFadcSamples; // list of hi gain samples of all pixels (ordering: see fHiGainPixId)
25
26 MArrayS *fLoGainPixId; // list of pixel IDs of lo gain channel
27 MArrayB *fLoGainFadcSamples; // list of lo gain samples of all pixels (ordering: see fLoGainPixId)
28
29 void InitArrays();
30 void DeleteArrays();
31
32public:
33 MRawEvtData(const char *name=NULL, const char *title=NULL);
34 ~MRawEvtData();
35
36 void Init(MRawRunHeader *rh)
37 {
38 //
39 // you have to set this before you can read information
40 // from a magic binary file
41 //
42 fRunHeader = rh;
43 }
44
45 void Clear(Option_t * = NULL);
46 void Print(Option_t * = NULL);
47 void Draw (Option_t * = NULL);
48
49 void DeletePixels();
50 void AddPixel(UShort_t nOfPixel, TArrayC *data, Bool_t lflag=kFALSE);
51
52 Byte_t GetNumHiGainSamples() const;
53 Byte_t GetNumLoGainSamples() const;
54 Byte_t GetNumPixels() const;
55
56 void ReadEvt(ifstream &fin);
57
58 ClassDef(MRawEvtData, 1) //Container to store the raw Event Data
59};
60
61#endif
Note: See TracBrowser for help on using the repository browser.