Changeset 5307 for trunk/MagicSoft/Mars/mraw/MRawFileRead.cc
- Timestamp:
- 10/22/04 15:59:02 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawFileRead.cc
r5144 r5307 103 103 : fFileNames(NULL), fNumFile(0), fIn(NULL), fParList(NULL), fInterleave(1) 104 104 { 105 fName = name ? name : "MR awFileRead";105 fName = name ? name : "MRead"; 106 106 fTitle = title ? title : "Read task to read DAQ binary files"; 107 107 … … 122 122 if (fIn) 123 123 delete fIn; 124 } 125 126 Byte_t MRawFileRead::IsFileValid(const char *name) 127 { 128 ifstream fin(name); 129 if (!fin) 130 return 0; 131 132 Byte_t c[4]; 133 fin.read((char*)c, 4); 134 if (!fin) 135 return 0; 136 137 if (c[0]!=0xc0) 138 return 0; 139 140 if (c[1]==0xc0) 141 return 1; 142 143 if (c[1]==0xc1) 144 return 2; 145 146 return 0; 124 147 } 125 148
Note:
See TracChangeset
for help on using the changeset viewer.