Changeset 2779 for trunk/MagicSoft/Mars/mfilter
- Timestamp:
- 01/13/04 09:33:30 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfilter/MFGeomag.cc
r2689 r2779 86 86 Float_t thet [2*1152]; 87 87 88 ifstream geomagp;89 90 88 TString filename = gSystem->Getenv("MARSSYS"); 91 89 filename += "/mfilter/gcplus.txt"; 92 90 93 geomagp.open(filename); 91 ifstream geomagp(filename); 92 94 93 if (!geomagp) { 95 94 *fLog << err <<" ERROR gcplus.txt file not found by Geomag"<<endl; … … 105 104 *fLog << Form ("FRigMin=%8f fRigMax=%8f fProb=%8f", 106 105 fRigMin[0], fRigMax[0], fProb[0]) << endl; 107 geomagp.close();108 geomagp.clear();109 110 ifstream geomagm;111 106 112 107 filename = gSystem->Getenv("MARSSYS"); 113 108 filename += "/mfilter/gcminus.txt"; 114 109 115 geomagm.open(filename);110 ifstream geomagm(filename); 116 111 if (!geomagm) { 117 112 *fLog << err <<" ERROR gcminus.txt file not found by Geomag"<<endl; … … 126 121 *fLog << Form ("fRigMin=%8f fRigMax=%8f fProb=%8f", 127 122 fRigMin[1152], fRigMax[1152], fProb[1152]) << endl; 128 geomagm.close(); 129 geomagm.clear(); 123 130 124 // 131 125 if (fMcEvt) … … 133 127 134 128 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; 140 136 } 141 137 // --------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.