Changeset 8315 for trunk/MagicSoft/Mars/mfileio
- Timestamp:
- 02/13/07 11:15:29 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mfileio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MReadRflFile.cc
r7430 r8315 33 33 34 34 #include <errno.h> 35 #include <fstream>36 35 37 36 #include <TSystem.h> … … 39 38 #include "structures_rfl.h" 40 39 40 #include "MLog.h" 41 #include "MLogManip.h" 42 43 #include "MZlib.h" 44 41 45 #include "MParList.h" 46 42 47 #include "MRflEvtData.h" 43 48 #include "MRflEvtHeader.h" … … 45 50 #include "MRflSinglePhoton.h" 46 51 47 #include "MLog.h"48 #include "MLogManip.h"49 52 50 53 ClassImp(MReadRflFile); … … 185 188 *fLog << inf << "FIXME: Call ReInit" << endl; 186 189 190 // FIXME: fRunHeader->Read(fIn); 191 // fRunHeader->Print(); 192 187 193 fRunHeader->SetRunNumber((int)rrunh.RunNumber); 188 194 *fLog << underline << "RunHeader:" << endl; 189 *fLog << " Run Number: " << rrunh.RunNumber << endl; 190 *fLog << " Date: " << rrunh.date << endl; 191 *fLog << " Corsika Ver.: " << rrunh.Corsika_version << endl; 192 195 *fLog << " Run Number: " << rrunh.RunNumber << endl; 196 *fLog << " Date: " << rrunh.date << endl; 197 *fLog << " Corsika Ver.: " << rrunh.Corsika_version << endl; 198 *fLog << " Energy Range: " << rrunh.ELowLim << "GeV to " << rrunh.EUppLim << "GeV" << endl; 199 *fLog << " Energy Slope: " << rrunh.SlopeSpec << endl; 200 *fLog << " Wobble Mode: " << rrunh.wobble_mode << endl; 201 *fLog << " Atm. Model: " << rrunh.atmospheric_model << endl; 202 // *fLog << " Theta Range: " << rrunh.ThetaMin << "deg to " << rrunh.ThetaMax << "deg" << endl; 203 // *fLog << " Phi Range: " << rrunh.PhiMin << "deg to " << rrunh.PhiMax << "deg" << endl; 204 // *fLog << " View Cone Rad: " << rrunh.ViewconeRadius << "deg" << endl; 193 205 break; 194 206 } … … 196 208 *fLog << err << "Error! found end of file... But no EOF flag. Exiting." << endl; 197 209 return kError; 198 } 210 }/* 211 else 212 { 213 *fLog << err << "ERROR - Reflector versions <= 0.5 are not supported!" << endl; 214 return kError; 215 }*/ 199 216 return kUndefined; 200 217 … … 299 316 // 300 317 fFileName = file->GetName(); 301 constTString expname = fFileName;318 TString expname = fFileName; 302 319 gSystem->ExpandPathName(expname); 303 320 … … 309 326 *fLog << inf << "Open file: '" << fFileName << "'" << endl; 310 327 311 fIn = new ifstream(expname);328 fIn = new MZlib(expname); 312 329 if (!*fIn) 313 330 { -
trunk/MagicSoft/Mars/mfileio/MReadRflFile.h
r7430 r8315 10 10 #endif 11 11 12 class MZlib; 12 13 class TList; 13 14 class MRflEvtData; … … 28 29 }; 29 30 30 ifstream*fIn; // the inputfile31 TList 31 MZlib *fIn; // the inputfile 32 TList *fFileNames; // Array which stores the \0-terminated filenames 32 33 33 34 MRflEvtData *fEvtData; //!
Note:
See TracChangeset
for help on using the changeset viewer.