Ignore:
Timestamp:
01/13/04 09:33:30 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfilter/MFGeomag.cc

    r2689 r2779  
    8686    Float_t thet  [2*1152];
    8787
    88     ifstream geomagp;
    89 
    9088    TString filename = gSystem->Getenv("MARSSYS");
    9189    filename += "/mfilter/gcplus.txt";
    9290
    93     geomagp.open(filename);
     91    ifstream geomagp(filename);
     92
    9493    if (!geomagp) {
    9594        *fLog << err <<" ERROR gcplus.txt file not found by Geomag"<<endl;
     
    105104    *fLog << Form ("FRigMin=%8f  fRigMax=%8f  fProb=%8f",
    106105                   fRigMin[0], fRigMax[0], fProb[0]) << endl;
    107     geomagp.close();
    108     geomagp.clear();
    109 
    110     ifstream geomagm;
    111106
    112107    filename = gSystem->Getenv("MARSSYS");
    113108    filename += "/mfilter/gcminus.txt";
    114109
    115     geomagm.open(filename);
     110    ifstream geomagm(filename);
    116111    if (!geomagm) {
    117112        *fLog << err <<" ERROR gcminus.txt file not found by Geomag"<<endl;
     
    126121    *fLog << Form ("fRigMin=%8f  fRigMax=%8f  fProb=%8f",
    127122                   fRigMin[1152], fRigMax[1152], fProb[1152]) << endl;
    128     geomagm.close();
    129     geomagm.clear();
     123
    130124    //
    131125    if (fMcEvt)
     
    133127
    134128    fMcEvt = (MMcEvt*)pList->FindObject("MMcEvt");
    135     if (fMcEvt)
    136         return kTRUE;
    137 
    138     *fLog << err << dbginf << "  [MMcEvt] not found... aborting." << endl;
    139     return kFALSE;
     129    if (!fMcEvt)
     130    {
     131        *fLog << err << dbginf << "  [MMcEvt] not found... aborting." << endl;
     132        return kFALSE;
     133    }
     134
     135    return kTRUE;
    140136}
    141137// --------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.