source: trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.h@ 1574

Last change on this file since 1574 was 1574, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.5 KB
Line 
1#ifndef MARS_MCT1ReadPreProc
2#define MARS_MCT1ReadPreProc
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8class TList;
9class MMcEvt;
10class MMcTrig;
11class MGeomCam;
12class MSrcPosCam;
13class MCerPhotEvt;
14class MPedestalCam;
15class MBlindPixels;
16
17struct outputpars;
18struct eventrecord;
19
20class MCT1ReadPreProc : public MTask
21{
22private:
23 ifstream *fIn; // the inputfile
24 MGeomCam *fGeom; // camera geometry
25 MCerPhotEvt *fNphot; // the data container for all data.
26 MPedestalCam *fPedest; // ct1 pedestals
27 MMcEvt *fMcEvt; // monte carlo data container for MC files
28 MMcTrig *fMcTrig; // mc data container for trigger information
29 MSrcPosCam *fSrcPos; // source position in the camera
30 TList *fFileNames; // Array which stores the \0-terminated filenames
31 MBlindPixels *fBlinds; // Array holding blind pixels
32
33 Int_t fNumPixels;
34 Bool_t fIsMcFile;
35
36 UInt_t fNumEvents;
37 UInt_t fNumEvent;
38
39 Bool_t OpenNextFile();
40
41 void ReadPedestals();
42 void ReadHeader();
43 void ReadFooter();
44 void ProcessHeader(const struct outputpars &outpars);
45 void ProcessEvent(const struct eventrecord &event);
46
47public:
48 MCT1ReadPreProc(const char *filename=NULL,
49 const char *name=NULL,
50 const char *title=NULL);
51
52 ~MCT1ReadPreProc();
53
54 void AddFile(const char *fname);
55
56 Bool_t PreProcess(MParList *pList);
57 Bool_t Process();
58
59 ClassDef(MCT1ReadPreProc, 0) // Reads the CT1 data file
60};
61
62#endif
63
Note: See TracBrowser for help on using the repository browser.