Changeset 762
- Timestamp:
- 04/23/01 14:44:25 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawFileRead.cc
r749 r762 49 49 50 50 51 /*/ ----------- please don't delete ------------51 /*/ ----------- please don't delete and don't care about (Thomas) ------------ 52 52 #define kBUFSZ 1024 53 53 … … 79 79 */ 80 80 81 // -------------------------------------------------------------------------- 82 // 83 // Default constructor. It tries to open the given file. 84 // 81 85 MRawFileRead::MRawFileRead(const char *fname, const char *name, const char *title) 82 86 { … … 93 97 } 94 98 99 // -------------------------------------------------------------------------- 100 // 101 // Destructor. Delete input stream. 102 // 95 103 MRawFileRead::~MRawFileRead() 96 104 { … … 98 106 } 99 107 108 // -------------------------------------------------------------------------- 109 // 110 // The PreProcess of this task checks for the following containers in the 111 // list: 112 // MRawRunHeader <output> if not found it is created 113 // MRawEvtHeader <output> if not found it is created 114 // MRawEvtData <output> if not found it is created 115 // MRawCrateArray <output> if not found it is created 116 // MRawEvtTime <output> if not found it is created (MTime) 117 // 118 // If all containers are found or created the run header is read from the 119 // binary file and printed. If the Magic-Number (file identification) 120 // doesn't match we stop the eventloop. 121 // 122 // Now the EvtHeader and EvtData containers are initialized. 123 // 100 124 Bool_t MRawFileRead::PreProcess(MParList *pList) 101 125 { … … 124 148 return kFALSE; 125 149 126 fRawEvtTime = (MTime*)pList->FindCreateObj("M RawEvtTime");150 fRawEvtTime = (MTime*)pList->FindCreateObj("MTime", "MRawEvtTime"); 127 151 if (!fRawEvtTime) 128 152 return kTRUE; … … 146 170 } 147 171 172 // -------------------------------------------------------------------------- 173 // 174 // The Process reads one event from the binary file: 175 // - The event header is read 176 // - the run header is read 177 // - all crate information is read 178 // - the raw data information of one event is read 179 // 148 180 Bool_t MRawFileRead::Process() 149 181 {
Note:
See TracChangeset
for help on using the changeset viewer.