Changeset 3183 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 02/16/04 11:18:25 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mraw
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawCrateArray.cc
r2645 r3183 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de>18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 120 ! Copyright: MAGIC Software Development, 2000-2004 21 21 ! 22 22 ! -
trunk/MagicSoft/Mars/mraw/MRawCrateData.cc
r2748 r3183 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de>18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 120 ! Copyright: MAGIC Software Development, 2000-2004 21 21 ! 22 22 ! -
trunk/MagicSoft/Mars/mraw/MRawEvtData.cc
r3047 r3183 18 18 ! Author(s): Thomas Bretz, 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 320 ! Copyright: MAGIC Software Development, 2000-2004 21 21 ! 22 22 ! -
trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc
r3139 r3183 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de>19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 118 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de> 19 ! 20 ! Copyright: MAGIC Software Development, 2000-2004 21 21 ! 22 22 ! -
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc
r3018 r3183 19 19 ! Author(s): Markus Gaus 10/2002 <mailto:markus@ifae.es> 20 20 ! 21 ! Copyright: MAGIC Software Development, 2000-200 221 ! Copyright: MAGIC Software Development, 2000-2004 22 22 ! 23 23 ! -
trunk/MagicSoft/Mars/mraw/MRawFileRead.cc
r2984 r3183 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@ uni-sw.gwdg.de>19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 118 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de> 19 ! 20 ! Copyright: MAGIC Software Development, 2000-2004 21 21 ! 22 22 ! … … 148 148 // Read RUN HEADER (see specification) from input stream 149 149 // 150 fRawRunHeader->ReadEvt(*fIn); 150 if (!fRawRunHeader->ReadEvt(*fIn)) 151 return kFALSE; 152 151 153 if (!(*fIn)) 152 154 { … … 154 156 return kFALSE; 155 157 } 156 if (fRawRunHeader->GetMagicNumber()!=kMagicNumber)157 return kFALSE;158 //if (fRawRunHeader->GetMagicNumber()!=kMagicNumber) 159 // return kFALSE; 158 160 159 161 fRawRunHeader->Print(); -
trunk/MagicSoft/Mars/mraw/MRawFileWrite.cc
r2556 r3183 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@ uni-sw.gwdg.de>19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 118 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de> 19 ! 20 ! Copyright: MAGIC Software Development, 2000-2004 21 21 ! 22 22 ! -
trunk/MagicSoft/Mars/mraw/MRawRead.cc
r3139 r3183 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de>19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 118 ! Author(s): Thomas Bretz 10/2003 <mailto:tbretz@astro.uni-wuerzburg.de> 19 ! 20 ! Copyright: MAGIC Software Development, 2000-2004 21 21 ! 22 22 ! -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc
r3047 r3183 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de>19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 118 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de> 19 ! 20 ! Copyright: MAGIC Software Development, 2000-2004 21 21 ! 22 22 ! … … 101 101 // Read in one run header from the binary file 102 102 // 103 voidMRawRunHeader::ReadEvt(istream& fin)103 Bool_t MRawRunHeader::ReadEvt(istream& fin) 104 104 { 105 105 // … … 116 116 { 117 117 *fLog << err << "Error: Wrong Magic Number (0x" << hex << fMagicNumber << "): Not a Magic File!" << endl; 118 return ;118 return kFALSE; 119 119 } 120 120 … … 125 125 126 126 fin.read((char*)&fFormatVersion, 2); // Total=4 127 if (fFormatVersion>2) 128 *fLog << warn << "WARNING - Format version V" << fFormatVersion << " unknown!" << endl; 127 if (fFormatVersion>kMaxFormatVersion) 128 { 129 *fLog << err << "WARNING - File vormat V" << fFormatVersion << " not implemented!" << endl; 130 return kFALSE; 131 } 129 132 130 133 fin.read((char*)&fSoftVersion, 2); // Total=6 … … 165 168 fin.read((char*)fPixAssignment->GetArray(), nPixel*2); 166 169 fin.read((char*)&dummy, 16); 170 171 return kTRUE; 167 172 } 168 173 -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.h
r3047 r3183 17 17 // Magic number to detect the magic file type 18 18 // 19 const UShort_t kMagicNumber = 0xc0c0; 19 const UShort_t kMagicNumber = 0xc0c0; 20 const Byte_t kMaxFormatVersion = 3; 20 21 21 22 // … … 106 107 void Print(Option_t *t=NULL) const; 107 108 108 voidReadEvt(istream& fin);109 Bool_t ReadEvt(istream& fin); 109 110 110 111 ClassDef(MRawRunHeader, 2) // storage container for general info -
trunk/MagicSoft/Mars/mraw/MRawSocketRead.cc
r2748 r3183 18 18 ! Author(s): Thomas Bretz, 10/2003 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 320 ! Copyright: MAGIC Software Development, 2000-2004 21 21 ! 22 22 ! … … 220 220 // 221 221 fLog->SetNullOutput(); 222 fRawRunHeader->ReadEvt(*fIn);222 const Bool_t rc = fRawRunHeader->ReadEvt(*fIn); 223 223 fLog->SetNullOutput(kFALSE); 224 224 225 if (fRawRunHeader->GetMagicNumber()!=kMagicNumber && fRawRunHeader->GetMagicNumber()!=kMagicNumber+1) 226 { 227 *fLog << err << "Error: Wrong Magic Number (0x" << hex << fRawRunHeader->GetMagicNumber() << "): Not a Magic File!" << endl; 228 return kFALSE; 229 } 225 if (!rc) 226 return kFALSE; 230 227 231 228 if (fRunNumber!=fRawRunHeader->GetRunNumber())
Note:
See TracChangeset
for help on using the changeset viewer.