Changeset 3007 for trunk/MagicSoft/Mars/mcalib/MCalibrationPINDiode.cc
- Timestamp:
- 02/02/04 22:52:53 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationPINDiode.cc
r2931 r3007 76 76 77 77 CLRBIT(fFlags, kExcluded); 78 CLRBIT(fFlags, kFitValid); 78 CLRBIT(fFlags, kChargeFitValid); 79 CLRBIT(fFlags, kChargeFitValid); 79 80 CLRBIT(fFlags, kFitted); 80 81 … … 129 130 // Set the Excluded Bit from outside 130 131 // 131 void MCalibrationPINDiode::SetFitValid(Bool_t b ) 132 { 133 b ? SETBIT(fFlags, kFitValid) : CLRBIT(fFlags, kFitValid); 132 void MCalibrationPINDiode::SetChargeFitValid(Bool_t b ) 133 { 134 b ? SETBIT(fFlags, kChargeFitValid) : CLRBIT(fFlags, kChargeFitValid); 135 } 136 137 // -------------------------------------------------------------------------- 138 // 139 // Set the Excluded Bit from outside 140 // 141 void MCalibrationPINDiode::SetTimeFitValid(Bool_t b ) 142 { 143 b ? SETBIT(fFlags, kTimeFitValid) : CLRBIT(fFlags, kTimeFitValid); 134 144 } 135 145 … … 148 158 } 149 159 150 Bool_t MCalibrationPINDiode::IsFitValid() const 151 { 152 return TESTBIT(fFlags, kFitValid); 160 Bool_t MCalibrationPINDiode::IsChargeFitValid() const 161 { 162 return TESTBIT(fFlags, kChargeFitValid); 163 } 164 165 Bool_t MCalibrationPINDiode::IsTimeFitValid() const 166 { 167 return TESTBIT(fFlags, kTimeFitValid); 153 168 } 154 169 … … 165 180 // or if the histogram is empty 166 181 // 167 if (fHist->Is FitOK() || fHist->IsEmpty())182 if (fHist->IsChargeFitOK() || fHist->IsEmpty()) 168 183 return kTRUE; 169 184 … … 195 210 196 211 if (CheckChargeFitValidity()) 197 SETBIT(fFlags,k FitValid);212 SETBIT(fFlags,kChargeFitValid); 198 213 else 199 214 { 200 CLRBIT(fFlags,k FitValid);215 CLRBIT(fFlags,kChargeFitValid); 201 216 return kFALSE; 202 217 } … … 242 257 } 243 258 244 if (!fHist->Is FitOK())259 if (!fHist->IsChargeFitOK()) 245 260 { 246 261 *fLog << warn << "WARNING: Probability of Fitted Charge too low in PINDiode " << endl; … … 267 282 { 268 283 269 if(!fHist->FitTime HiGain())284 if(!fHist->FitTime()) 270 285 { 271 286 *fLog << warn << "WARNING: Could not fit Hi Gain times of PIN Diode" << endl; … … 274 289 } 275 290 276 fTime = fHist->GetTimeMean(); 277 fSigmaTime = fHist->GetTimeSigma(); 278 fTimeChiSquare = fHist->GetTimeChiSquare(); 279 fTimeProb = fHist->GetTimeProb(); 291 fTime = fHist->GetRelTimeMean(); 292 fSigmaTime = fHist->GetRelTimeSigma(); 293 fTimeProb = fHist->GetRelTimeProb(); 280 294 281 295 if (CheckTimeFitValidity()) 282 SETBIT(fFlags,k FitValid);296 SETBIT(fFlags,kTimeFitValid); 283 297 else 284 CLRBIT(fFlags,k FitValid);298 CLRBIT(fFlags,kTimeFitValid); 285 299 286 300 return kTRUE;
Note:
See TracChangeset
for help on using the changeset viewer.