Changeset 2831
- Timestamp:
- 01/16/04 14:27:54 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2830 r2831 11 11 12 12 * mcalib/MHCalibrationBlindPixel.[h,cc] 13 * mcalib/MHCalibrationConfig.h 13 14 * mcalib/MCalibrationBlindPix.h, 14 15 - incorporate Fit functions -
trunk/MagicSoft/Mars/mcalib/MCalibrationCalc.cc
r2809 r2831 70 70 // 71 71 ////////////////////////////////////////////////////////////////////////////// 72 73 72 #include "MCalibrationCalc.h" 74 73 #include "MCalibrationConfig.h" 75 #include "MCalibrationFits.h"76 74 77 75 #include "MCalibrationCam.h" … … 149 147 if (!fRawEvt) 150 148 { 151 *fLog<< dbginf << "MRawEvtData not found... aborting." << endl;152 149 *fLog << err << dbginf << "MRawEvtData not found... aborting." << endl; 150 return kFALSE; 153 151 } 154 152 155 153 const MRawRunHeader *runheader = (MRawRunHeader*)pList->FindObject("MRawRunHeader"); 156 154 if (!runheader) 157 155 *fLog << warn << dbginf << "Warning - cannot check file type, MRawRunHeader not found." << endl; 158 156 else 159 157 if (runheader->GetRunType() == kRTMonteCarlo) 160 158 { 161 159 return kTRUE; 162 160 } 163 161 164 162 fCalibrations = (MCalibrationCam*)pList->FindCreateObj("MCalibrationCam"); 165 163 if (!fCalibrations) … … 218 216 if (!fRunHeader) 219 217 { 220 *fLog << dbginf << "MRawRunHeader not found... aborting." << endl;221 218 *fLog << err << dbginf << ": MRawRunHeader not found... aborting." << endl; 219 return kFALSE; 222 220 } 223 221 … … 226 224 if (!cam) 227 225 { 228 229 226 *fLog << err << GetDescriptor() << ": No MGeomCam found... aborting." << endl; 227 return kFALSE; 230 228 } 231 229 … … 340 338 341 339 if (!blindpixel.FillCharge(sumhi)) 342 *fLog << err<<340 *fLog << warn << 343 341 "Overflow or Underflow occurred filling Blind Pixel sum = " << sumhi << endl; 344 342 345 343 if (!blindpixel.FillTime((int)mtime)) 346 *fLog << err<<344 *fLog << warn << 347 345 "Overflow or Underflow occurred filling Blind Pixel time = " << mtime << endl; 348 346 … … 411 409 { 412 410 413 414 411 *fLog << inf << endl; 415 412 … … 427 424 428 425 429 *fLog << GetDescriptor() << " Cut Histogram Edges" << endl;426 *fLog << GetDescriptor() << ": Cut Histogram Edges" << endl; 430 427 431 428 // … … 439 436 MCalibrationBlindPix &blindpixel = *(fCalibrations->GetBlindPixel()); 440 437 441 *fLog << GetDescriptor() << " Fitting the Blind Pixel" << endl;438 *fLog << GetDescriptor() << ": Fitting the Blind Pixel" << endl; 442 439 443 440 // … … 448 445 449 446 if (!blindpixel.FitCharge()) 450 *fLog << err << dbginf << "Could not fit the blind pixel " << endl; 447 { 448 *fLog << err << dbginf << "Could not fit the blind pixel! " << endl; 449 blindpixel.DrawClone(); 450 return kFALSE; 451 } 451 452 452 453 blindpixel.DrawClone(); 453 454 } 454 455 455 *fLog << GetDescriptor() << " Fitting the Normal Pixels" << endl;456 *fLog << GetDescriptor() << ": Fitting the Normal Pixels" << endl; 456 457 457 458 // … … 488 489 489 490 if (!fCalibrations->CalcNumPhotInsidePlexiglass()) 490 *fLog << err << dbginf << "Could not calculate the number of photons from the blind pixel " << endl; 491 491 { 492 *fLog << err << GetDescriptor() 493 << ": Could not calculate the number of photons from the blind pixel " << endl; 494 return kFALSE; 495 } 496 492 497 fCalibrations->SetReadyToSave(); 493 498 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationConfig.h
r2734 r2831 11 11 12 12 13 // Global rejection criteria for the acceptance of a fit: Prob=0.0 1 == 99% Probability13 // Global rejection criteria for the acceptance of a fit: Prob=0.001 == 99.7% Probability 14 14 const Float_t gkProbLimit = 0.001; 15 15 … … 23 23 const Float_t gkSq2Pi = 2.506628274631; 24 24 25 // typedef to the fitting functions for the blind pixel26 typedef Double_t (*BlindPixelFitFunc)(Double_t *, Double_t *);27 28 25 #endif /* MARS_MHCalibrationBlindPixelConfig */ -
trunk/MagicSoft/Mars/mcalib/MHCalibrationPixel.cc
r2791 r2831 31 31 // // 32 32 ////////////////////////////////////////////////////////////////////////////// 33 34 33 #include "MHCalibrationPixel.h" 35 34 #include "MHCalibrationConfig.h" 36 #include "MCalibrationFits.h"37 35 38 36 #include <TStyle.h>
Note:
See TracChangeset
for help on using the changeset viewer.