Ignore:
Timestamp:
02/13/07 11:15:29 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mfileio
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfileio/MReadRflFile.cc

    r7430 r8315  
    3333
    3434#include <errno.h>
    35 #include <fstream>
    3635
    3736#include <TSystem.h>
     
    3938#include "structures_rfl.h"
    4039
     40#include "MLog.h"
     41#include "MLogManip.h"
     42
     43#include "MZlib.h"
     44
    4145#include "MParList.h"
     46
    4247#include "MRflEvtData.h"
    4348#include "MRflEvtHeader.h"
     
    4550#include "MRflSinglePhoton.h"
    4651
    47 #include "MLog.h"
    48 #include "MLogManip.h"
    4952
    5053ClassImp(MReadRflFile);
     
    185188                *fLog << inf << "FIXME: Call ReInit" << endl;
    186189
     190                // FIXME: fRunHeader->Read(fIn);
     191                //        fRunHeader->Print();
     192
    187193                fRunHeader->SetRunNumber((int)rrunh.RunNumber);
    188194                *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;
    193205                break;
    194206            }
     
    196208            *fLog << err << "Error! found end of file... But no EOF flag. Exiting." << endl;
    197209            return kError;
    198         }
     210        }/*
     211        else
     212        {
     213            *fLog << err << "ERROR - Reflector versions <= 0.5 are not supported!" << endl;
     214            return kError;
     215        }*/
    199216        return kUndefined;
    200217
     
    299316    //
    300317    fFileName = file->GetName();
    301     const TString expname = fFileName;
     318    TString expname = fFileName;
    302319    gSystem->ExpandPathName(expname);
    303320
     
    309326    *fLog << inf << "Open file: '" << fFileName << "'" << endl;
    310327
    311     fIn = new ifstream(expname);
     328    fIn = new MZlib(expname);
    312329    if (!*fIn)
    313330    {
  • trunk/MagicSoft/Mars/mfileio/MReadRflFile.h

    r7430 r8315  
    1010#endif
    1111
     12class MZlib;
    1213class TList;
    1314class MRflEvtData;
     
    2829    };
    2930
    30     ifstream *fIn;              // the inputfile
    31     TList    *fFileNames;       // Array which stores the \0-terminated filenames
     31    MZlib *fIn;              // the inputfile
     32    TList *fFileNames;       // Array which stores the \0-terminated filenames
    3233
    3334    MRflEvtData   *fEvtData;    //!
Note: See TracChangeset for help on using the changeset viewer.