source: trunk/MagicSoft/include-Classes/MRawFormat/MRawEvtData.h@ 1567

Last change on this file since 1567 was 498, checked in by magicsol, 24 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 1.5 KB
Line 
1#ifndef MRAWEVTDATA_H
2#define MRAWEVTDATA_H
3
4#ifndef MPARCONTAINER_H
5#include "../MBase/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.