Changeset 17035 for trunk/Mars/mraw
- Timestamp:
- 08/21/13 16:35:22 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mraw/MRawFitsRead.cc
r14095 r17035 45 45 #include "MLogManip.h" 46 46 47 #include "f its.h"47 #include "factfits.h" 48 48 #include "MTime.h" 49 49 … … 133 133 Bool_t MRawFitsRead::IsFits(const char *name) 134 134 { 135 return f its(name).good();135 return factfits(name).good(); 136 136 } 137 137 138 138 istream *MRawFitsRead::OpenFile(const char *filename) 139 139 { 140 return new f its(filename);140 return new factfits(filename); 141 141 } 142 142 143 143 Bool_t MRawFitsRead::ReadRunHeader(istream &stream) 144 144 { 145 f its &fin = static_cast<fits&>(stream);145 factfits &fin = static_cast<factfits&>(stream); 146 146 147 147 if (fin.GetStr("TELESCOP")!="FACT") … … 154 154 155 155 fRawRunHeader->SetValidMagicNumber(); 156 fRawRunHeader->SetNumEvents(fin.Get UInt("NAXIS2"));156 fRawRunHeader->SetNumEvents(fin.GetNumRows());//GetUInt("NAXIS2")); 157 157 fRawRunHeader->InitPixels(fin.GetUInt("NPIX")); 158 158 fRawRunHeader->SetObservation(type=="4294967295"?"":fin.GetStr("RUNTYPE"), "FACT"); … … 175 175 Bool_t MRawFitsRead::InitReadData(istream &stream) 176 176 { 177 f its &fin = static_cast<fits&>(stream);177 factfits &fin = static_cast<factfits&>(stream); 178 178 179 179 MArrayB **data = reinterpret_cast<MArrayB**>(fRawEvtData1->DataMember("fHiGainFadcSamples")); … … 216 216 Bool_t MRawFitsRead::ReadEvent(istream &stream) 217 217 { 218 if (!static_cast<f its&>(stream).GetNextRow())218 if (!static_cast<factfits&>(stream).GetNextRow()) 219 219 return kFALSE; 220 220 … … 231 231 void MRawFitsRead::SkipEvent(istream &fin) 232 232 { 233 static_cast<f its&>(fin).SkipNextRow();234 } 233 static_cast<factfits&>(fin).SkipNextRow(); 234 }
Note:
See TracChangeset
for help on using the changeset viewer.