Changeset 3568 for trunk/MagicSoft/Mars/mfileio
- Timestamp:
- 03/22/04 09:25:49 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mfileio
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MCT1ReadAscii.cc
r2781 r3568 38 38 // // 39 39 ///////////////////////////////////////////////////////////////////////////// 40 41 40 #include "MCT1ReadAscii.h" 42 41 42 #include <errno.h> 43 43 #include <fstream> 44 44 … … 132 132 const char *expname = gSystem->ExpandPathName(name); 133 133 fIn = new ifstream(expname); 134 135 const Bool_t noexist = !(*fIn); 136 if (noexist) 137 { 138 *fLog << err << "Cannot open file " << expname << ": "; 139 *fLog << strerror(errno) << endl; 140 } 141 else 142 *fLog << inf << "Open file: '" << name << "'" << endl; 143 134 144 delete [] expname; 135 136 const Bool_t noexist = !(*fIn);137 138 if (noexist)139 *fLog << dbginf << "Cannot open file '" << name << "'" << endl;140 else141 *fLog << "Open file: '" << name << "'" << endl;142 145 143 146 // -
trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.cc
r2781 r3568 47 47 #include "MCT1ReadPreProc.h" 48 48 49 #include <errno.h> 49 50 #include <fstream> 50 51 51 52 #include <TList.h> 52 53 #include <TSystem.h> 54 #include <TRandom3.h> 53 55 54 56 #define LINUX … … 81 83 #include "MBinning.h" 82 84 83 #include "TRandom3.h"84 85 #include "MParameters.h" 85 86 … … 590 591 591 592 fIn = new ifstream(fname); 593 if (!*fIn) 594 { 595 *fLog << err << "Cannot open file " << fname << ": "; 596 *fLog << strerror(errno) << endl; 597 return kFALSE; 598 } 592 599 593 600 *fLog << inf << "-----------------------------------------------------------------------" << endl; -
trunk/MagicSoft/Mars/mfileio/MReadRflFile.cc
r2296 r3568 32 32 #include "MReadRflFile.h" 33 33 34 #include <errno.h> 34 35 #include <fstream> 35 36 … … 315 316 if (!*fIn) 316 317 { 317 cout << "Error openeng file " << name << "." << endl; 318 *fLog << err << "Cannot open file " << name << ": "; 319 *fLog << strerror(errno) << endl; 318 320 return kFALSE; 319 321 } -
trunk/MagicSoft/Mars/mfileio/MReadTree.cc
r3503 r3568 549 549 if (TestBit(kChainWasChanged)) 550 550 { 551 *fLog << inf << "Scanning chain ... " << flush;551 *fLog << inf << "Scanning chain " << fChain->GetName() << "... " << flush; 552 552 fNumEntries = (UInt_t)fChain->GetEntries(); 553 553 *fLog << fNumEntries << " events found." << endl;
Note:
See TracChangeset
for help on using the changeset viewer.