- Timestamp:
- 10/20/06 19:50:35 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r8141 r8142 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MCalibrationChargeCalc.cc,v 1.16 8 2006-10-20 18:49:53tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MCalibrationChargeCalc.cc,v 1.169 2006-10-20 18:50:35 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 771 771 const Int_t aidx = (*fGeom)[pixid].GetAidx(); 772 772 773 FinalizePedestals( *fSignal,ped,pix,aidx);773 FinalizePedestals(ped,pix,aidx); 774 774 775 775 if (FinalizeCharges(pix,bad,"pixel ")) -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.h
r7288 r8142 80 80 Int_t fNumInnerFFactorMethodUsed; // Number of inner pixels used for F-Factor Method calibration 81 81 82 TString fOutputPath; // Path to the output file83 TString fOutputFile; // Name of the output file84 82 TString fNamePedestalCam; // Name of the 'MPedestalCam' container 85 83 … … 219 217 void SetExternalNumPhesRelVar( const Float_t f=0. ) { fExternalNumPhesRelVar = f; } 220 218 void SetNamePedestalCam ( const char *name=fgNamePedestalCam.Data()) { fNamePedestalCam = name; } 221 void SetOutputPath ( const TString path="." );222 void SetOutputFile ( const TString file="ChargeCalibStat.txt" );223 219 void SetPheErrLowerLimit ( const Float_t f=fgPheErrLowerLimit ) { fPheErrLowerLimit = f; } 224 220 void SetPheErrUpperLimit ( const Float_t f=fgPheErrUpperLimit ) { fPheErrUpperLimit = f; } 225 221 void SetPulserColor ( const MCalibrationCam::PulserColor_t col ) { fPulserColor = col; } 226 222 227 ClassDef(MCalibrationChargeCalc, 4) // Task calculating Calibration Containers and Quantum Efficiencies223 ClassDef(MCalibrationChargeCalc, 5) // Task calculating Calibration Containers and Quantum Efficiencies 228 224 }; 229 225 -
trunk/MagicSoft/Mars/mcalib/MCalibrationRelTimeCalc.cc
r8015 r8142 43 43 // + Byte_t fCheckFlags; // Bit-field to hold the possible check flags 44 44 // 45 // ClassVersionb 3: 46 // - TString fOutputPath; // Path to the output file 47 // - TString fOutputFile; // Name of the output file 48 // 45 49 // 46 50 // Input Containers: … … 89 93 // Initializes: 90 94 // - fRelTimeResolutionLimit to fgRelTimeResolutionimit 91 // - fOutputPath to "."92 // - fOutputFile to "TimeCalibStat.txt"93 95 // 94 96 // Calls: … … 108 110 109 111 SetRelTimeResolutionLimit(); 110 SetOutputPath();111 SetOutputFile("");112 112 113 113 Clear(); … … 249 249 250 250 // 251 // Re-direct the output to an ascii-file from now on:252 //253 MLog *asciilog = fOutputFile.IsNull() ? 0 : new MLog;254 if (asciilog)255 {256 asciilog->SetOutputFile(GetOutputFile(),kTRUE);257 SetLogStream(asciilog);258 }259 260 //261 251 // Finalize calibration statistics 262 252 // … … 282 272 PrintUncalibrated(MBadPixelsPix::kRelTimeNotFitted, 283 273 "Pixels with unsuccesful Gauss fit to the times:"); 284 285 if (asciilog)286 {287 SetLogStream(&gLog);288 delete asciilog;289 }290 274 291 275 return kTRUE; … … 534 518 // -------------------------------------------------------------------------- 535 519 // 536 // Set the path for output file537 //538 void MCalibrationRelTimeCalc::SetOutputPath(TString path)539 {540 fOutputPath = path;541 if (fOutputPath.EndsWith("/"))542 fOutputPath = fOutputPath(0, fOutputPath.Length()-1);543 }544 545 // --------------------------------------------------------------------------546 //547 // Get the output file548 //549 const char* MCalibrationRelTimeCalc::GetOutputFile()550 {551 return Form("%s/%s", (const char*)fOutputPath, (const char*)fOutputFile);552 }553 554 555 // --------------------------------------------------------------------------556 //557 520 // MCalibrationRelTimeCam.CheckFitResults: Yes 558 521 // MCalibrationRelTimeCam.CheckDeviatingBehavior: Yes -
trunk/MagicSoft/Mars/mcalib/MCalibrationRelTimeCalc.h
r7366 r8142 33 33 // Variables 34 34 Float_t fRelTimeResolutionLimit; // Limit acceptance rel. time resolution (in FADC slices) 35 TString fOutputPath; // Path to the output file36 TString fOutputFile; // Name of the output file37 35 38 36 // Pointers … … 95 93 96 94 // Setter 97 void SetOutputPath ( TString path="." );98 void SetOutputFile ( TString file="TimeCalibStat.txt" ) { fOutputFile = file; }99 95 void SetRelTimeResolutionLimit( const Float_t f=fgRelTimeResolutionLimit ) { fRelTimeResolutionLimit = f; } 100 96 … … 106 102 void SetDebug(const Bool_t b=kTRUE) { b ? SETBIT(fFlags, kDebug) : CLRBIT(fFlags, kDebug); } 107 103 108 ClassDef(MCalibrationRelTimeCalc, 2) // Task finalizing the relative time Calibration104 ClassDef(MCalibrationRelTimeCalc, 3) // Task finalizing the relative time Calibration 109 105 }; 110 106
Note:
See TracChangeset
for help on using the changeset viewer.