Changeset 690
- Timestamp:
- 03/07/01 11:23:54 (24 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MAGIC.h
r653 r690 10 10 11 11 #include <TROOT.h> 12 13 //14 // Magic number to detect the magic file type15 //16 // const UShort_t kMagicNumber = 0xc0c0;17 12 18 13 // -
trunk/MagicSoft/Mars/mraw/MRawFileRead.cc
r666 r690 25 25 26 26 27 / / ----------- please don't delete ------------27 /*/ ----------- please don't delete ------------ 28 28 #define kBUFSZ 1024 29 29 … … 53 53 } 54 54 }; 55 55 */ 56 56 57 57 MRawFileRead::MRawFileRead(const char *fname, const char *name, const char *title) … … 63 63 // open the input stream 64 64 // 65 fIn = new bifstream(fname);65 fIn = new ifstream(fname); 66 66 67 67 if (!(*fIn)) … … 109 109 fRawRunHeader->ReadEvt(*fIn); 110 110 fRawRunHeader->Print(); 111 112 if (fRawRunHeader->GetMagicNumber()!=kMagicNumber) 113 return kFALSE; 111 114 112 115 // -
trunk/MagicSoft/Mars/mraw/MRawFileRead.h
r665 r690 6 6 #endif 7 7 8 class bifstream;8 class ifstream; 9 9 10 10 class MTime; … … 24 24 MTime *fRawEvtTime; // raw evt time information container to fill from file 25 25 26 bifstream*fIn; //! buffered input stream (file to read from)26 ifstream *fIn; //! buffered input stream (file to read from) 27 27 28 28 public: -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc
r654 r690 88 88 // 89 89 *fLog << endl; 90 *fLog << "MagicNumber: 0x" << hex << fMagicNumber << " - " << (fMagicNumber== 0xc0c0?"OK":"Wrong!") << endl;90 *fLog << "MagicNumber: 0x" << hex << fMagicNumber << " - " << (fMagicNumber==kMagicNumber?"OK":"Wrong!") << endl; 91 91 *fLog << "Version: " << dec << "Format=" << fFormatVersion << " "; 92 92 *fLog << "Software=" << fSoftVersion << endl; -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.h
r654 r690 15 15 class MArrayS; 16 16 17 // 18 // Magic number to detect the magic file type 19 // 17 20 const UShort_t kMagicNumber = 0xc0c0; 18 21
Note:
See TracChangeset
for help on using the changeset viewer.