Changeset 860 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 07/09/01 16:13:19 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/mraw
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawFileRead.cc
r859 r860 97 97 // open the input stream 98 98 // 99 fFileName = fname; 99 100 fIn = new ifstream(fname); 100 101 if (!(*fIn))102 *fLog << "Error: Trying to open file '" << fname << "'" << endl;103 101 } 104 102 … … 131 129 { 132 130 // 133 // remember the pointer to the parameter list fur further usage 134 // 131 // first of all check if opening the file in the constructor was 132 // successfull 133 // 134 if (!(*fIn)) 135 { 136 *fLog << "Error: Cannot open file '" << fFileName << "'" << endl; 137 return kFALSE; 138 } 135 139 136 140 // -
trunk/MagicSoft/Mars/mraw/MRawFileRead.h
r698 r860 24 24 MTime *fRawEvtTime; // raw evt time information container to fill from file 25 25 26 TString fFileName; 26 27 ifstream *fIn; //! buffered input stream (file to read from) 27 28 -
trunk/MagicSoft/Mars/mraw/MRawFileWrite.cc
r859 r860 77 77 { 78 78 // 79 // delete instance, this laso does a fOut->Close() 80 // 79 // delete instance, this also does a fOut->Close() 80 // 81 if (fOut->IsOpen()) 82 fOut->Write(); 83 81 84 delete fOut; 82 85 } … … 104 107 if (!fOut->IsOpen()) 105 108 { 106 *fLog << dbginf << " Cannot open file '" << fOut->GetName() << "'" << endl;109 *fLog << dbginf << "Error: Cannot open file '" << fOut->GetName() << "'" << endl; 107 110 return kFALSE; 108 111 } … … 200 203 // 201 204 const UShort_t type = fRawEvtHeader->GetTrigType(); 202 205 cout << "W" << flush; 203 206 // 204 207 // writa data to the tree. the tree is choosen by the type of the event … … 225 228 } 226 229 227 228 // --------------------------------------------------------------------------229 //230 // Close the TFile object and delete it.231 //232 Bool_t MRawFileWrite::PostProcess()233 {234 //235 // empty data stream236 //237 fOut->Write();238 239 return kTRUE;240 }241 -
trunk/MagicSoft/Mars/mraw/MRawFileWrite.h
r852 r860 43 43 Bool_t PreProcess(MParList *pList); 44 44 Bool_t Process(); 45 Bool_t PostProcess();46 45 47 46 ClassDef(MRawFileWrite, 0) // Task to write the raw data containers to a root file
Note:
See TracChangeset
for help on using the changeset viewer.