Changeset 4723 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 08/24/04 18:15:29 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationRelTimeCalc.cc
r4133 r4723 96 96 SetRelTimeResolutionLimit(); 97 97 SetOutputPath(); 98 SetOutputFile( );98 SetOutputFile(""); 99 99 100 100 Clear(); … … 233 233 // Re-direct the output to an ascii-file from now on: 234 234 // 235 MLog asciilog; 236 asciilog.SetOutputFile(GetOutputFile(),kTRUE); 237 SetLogStream(&asciilog); 235 MLog *asciilog = fOutputFile.IsNull() ? 0 : new MLog; 236 if (asciilog) 237 { 238 asciilog->SetOutputFile(GetOutputFile(),kTRUE); 239 SetLogStream(asciilog); 240 } 241 238 242 // 239 243 // Finalize calibration statistics … … 254 258 "Pixels with unsuccesful Gauss fit to the times: "); 255 259 256 SetLogStream(&gLog); 260 if (asciilog) 261 { 262 SetLogStream(&gLog); 263 delete asciilog; 264 } 257 265 258 266 return kTRUE; … … 277 285 const UInt_t nareas = fGeom->GetNumAreas(); 278 286 279 Float_t lowlim [nareas];280 Float_t upplim [nareas];281 Float_t areasum [nareas];287 TArrayF lowlim (nareas); 288 TArrayF upplim (nareas); 289 TArrayF areasum (nareas); 282 290 // Float_t areasum2 [nareas]; 283 Int_t numareavalid [nareas]; 284 Int_t useunreliable[nareas]; 285 286 memset(lowlim ,0, nareas * sizeof(Float_t)); 287 memset(upplim ,0, nareas * sizeof(Float_t)); 288 memset(areasum ,0, nareas * sizeof(Float_t)); 289 // memset(areasum2 ,0, nareas * sizeof(Float_t)); 290 memset(numareavalid ,0, nareas * sizeof(Int_t )); 291 memset(useunreliable ,0, nareas * sizeof(Int_t )); 291 TArrayI numareavalid (nareas); 292 TArrayI useunreliable(nareas); 292 293 293 294 // … … 312 313 useunreliable[aidx] = 1; 313 314 314 memset(numareavalid ,0, nareas * sizeof(Int_t ));315 numareavalid.Reset(); 315 316 // 316 317 // First loop: Get mean time resolution the RMS
Note:
See TracChangeset
for help on using the changeset viewer.