Changeset 5133 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 09/25/04 12:51:35 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r5046 r5133 1 1 /* ======================================================================== *\ 2 2 ! 3 3 ! * … … 22 22 ! 23 23 \* ======================================================================== */ 24 25 24 ////////////////////////////////////////////////////////////////////////////// 26 25 // … … 193 192 #include "MParList.h" 194 193 194 #include "MStatusDisplay.h" 195 195 196 #include "MRawEvtHeader.h" 196 197 … … 205 206 #include "MCalibrationIntensityQECam.h" 206 207 #include "MCalibrationIntensityBlindCam.h" 208 209 #include "MHCalibrationChargeCam.h" 210 #include "MHCalibrationChargeBlindCam.h" 207 211 208 212 #include "MCalibrationChargeCam.h" … … 320 324 fIntensCam = NULL; 321 325 fCam = NULL; 326 fHCam = NULL; 322 327 fIntensQE = NULL; 323 328 fQECam = NULL; 324 329 fIntensBlind = NULL; 325 330 fBlindCam = NULL; 331 fHBlindCam = NULL; 326 332 fPINDiode = NULL; 327 333 fPedestals = NULL; … … 433 439 } 434 440 441 fHCam = (MHCalibrationChargeCam*)pList->FindObject(AddSerialNumber("MHCalibrationChargeCam")); 442 if (!fHCam) 443 { 444 *fLog << err << "Cannot find MHCalibrationChargeCam ... abort." << endl; 445 *fLog << err << "Maybe you forget to call an MFillH for the MHCalibrationChargeCam before..." << endl; 446 return kFALSE; 447 } 448 435 449 fIntensQE = (MCalibrationIntensityQECam*)pList->FindObject(AddSerialNumber("MCalibrationIntensityQECam")); 436 450 if (fIntensQE) … … 458 472 *fLog << warn << GetDescriptor() 459 473 << ": No MCalibrationBlindCam found... no Blind Pixel method! " << endl; 460 return kFALSE; 461 } 462 } 463 474 } 475 } 476 477 fHBlindCam = (MHCalibrationChargeBlindCam*)pList->FindObject(AddSerialNumber("MHCalibrationChargeBlindCam")); 478 if (!fHBlindCam) 479 { 480 *fLog << endl; 481 *fLog << warn << GetDescriptor() 482 << ": No MHCalibrationChargeBlindCam found... no Blind Pixel method! " << endl; 483 } 484 464 485 fIntensBad = (MBadPixelsIntensityCam*)pList->FindObject(AddSerialNumber("MBadPixelsIntensityCam")); 465 486 if (fIntensBad) … … 492 513 fSqrtLoGainSamples = TMath::Sqrt(fNumLoGainSamples); 493 514 515 516 MCalibrationQECam *qecam = fIntensQE 517 ? (MCalibrationQECam*) fIntensQE->GetCam() : fQECam; 518 MCalibrationChargeCam *chargecam = fIntensCam 519 ? (MCalibrationChargeCam*)fIntensCam->GetCam() : fCam; 520 MBadPixelsCam *badcam = fIntensBad 521 ? (MBadPixelsCam*) fIntensBad->GetCam() : fBadPixels; 522 494 523 UInt_t npixels = fGeom->GetNumPixels(); 495 524 … … 497 526 { 498 527 499 MCalibrationChargePix &pix = fIntensCam 500 ? (MCalibrationChargePix&)(*fIntensCam)[i] 501 : (MCalibrationChargePix&)(*fCam) [i]; 502 MCalibrationQEPix &pqe = fIntensQE 503 ? (MCalibrationQEPix&) (*fIntensQE)[i] 504 : (MCalibrationQEPix&) (*fQECam)[i]; 505 MBadPixelsPix &bad = fIntensBad 506 ? (*fIntensBad)[i] 507 : (*fBadPixels)[i]; 528 MCalibrationChargePix &pix = (MCalibrationChargePix&)(*chargecam)[i]; 529 MCalibrationQEPix &pqe = (MCalibrationQEPix&) (*qecam) [i]; 530 MBadPixelsPix &bad = (*badcam) [i]; 508 531 509 532 pix.SetPixId(i); … … 608 631 *fLog << endl; 609 632 633 MCalibrationBlindCam *blindcam = fIntensBlind 634 ? (MCalibrationBlindCam*) fIntensBlind->GetCam() : fBlindCam; 635 MCalibrationChargeCam *chargecam = fIntensCam 636 ? (MCalibrationChargeCam*)fIntensCam->GetCam() : fCam; 637 610 638 // 611 639 // Initialize the pulser colours 612 640 // 613 if (fIntensCam) 614 fIntensCam->SetPulserColor( fPulserColor ); 615 else 616 fCam->SetPulserColor( fPulserColor ); 617 618 if (fIntensBlind) 619 fIntensBlind->SetPulserColor( fPulserColor ); 620 else if (fBlindCam) 621 fBlindCam->SetPulserColor( fPulserColor ); 622 641 chargecam ->SetPulserColor( fPulserColor ); 642 blindcam ->SetPulserColor( fPulserColor ); 643 fHCam ->SetColor ( fPulserColor ); 644 fHBlindCam->SetColor ( fPulserColor ); 645 623 646 if (fPINDiode) 624 647 fPINDiode->SetColor( fPulserColor ); 625 648 626 649 return kTRUE; 650 } 651 652 // ----------------------------------------------------------------------- 653 // 654 // Analogue to the MTask::CallPostProcess, but without the manipulation 655 // of the bit fIsPreProcessed. Needed in order to call PostProcess multiple 656 // times in the intensity calibration. 657 // 658 Int_t MCalibrationChargeCalc::CallPostProcess() 659 { 660 661 // if (!fIsPreprocessed) 662 // return kTRUE; 663 664 *fLog << all << fName << "... " << flush; 665 if (fDisplay) 666 fDisplay->SetStatusLine2(*this); 667 668 return PostProcess(); 627 669 } 628 670 … … 1344 1386 *fLog << inf << GetDescriptor() 1345 1387 << ": Average number phes per area in sector " << sector << ": " 1346 << Form("%5. 2f+-%4.2f [phe/mm^2]",sectorphes[sector],TMath::Sqrt(sectorweights[sector]))1388 << Form("%5.3f+-%4.3f [phe/mm^2]",sectorphes[sector],TMath::Sqrt(sectorweights[sector])) 1347 1389 << endl; 1348 1390 -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.h
r5023 r5133 31 31 class MPedestalPix; 32 32 class MCalibrationChargePINDiode; 33 class MHCalibrationChargeBlindCam; 33 34 class MCalibrationIntensityBlindCam; 34 35 class MCalibrationBlindCam; … … 36 37 class MCalibrationIntensityChargeCam; 37 38 class MCalibrationChargeCam; 39 class MHCalibrationChargeCam; 38 40 class MCalibrationIntensityQECam; 39 41 class MCalibrationQECam; … … 85 87 MBadPixelsIntensityCam *fIntensBad; //! Bad Pixels 86 88 MBadPixelsCam *fBadPixels; //! Bad Pixels 87 MCalibrationIntensityChargeCam *fIntensCam; //! Calibrated Charges of all pixels 88 MCalibrationChargeCam *fCam; //! Calibrated Charges of all pixels 89 MCalibrationIntensityBlindCam *fIntensBlind; //! Calibrated Charges of the Blind Pixels 90 MCalibrationBlindCam *fBlindCam; //! Calibrated Charges of the Blind Pixels 89 MCalibrationIntensityChargeCam *fIntensCam; //! Intensity Calibration results of all pixels 90 MCalibrationChargeCam *fCam; //! Calibrated Charges results of all pixels 91 MHCalibrationChargeCam *fHCam; //! Charges histograms of all pixels 92 MCalibrationIntensityBlindCam *fIntensBlind; //! Intensity Calibration results of the Blind Pixels 93 MCalibrationBlindCam *fBlindCam; //! Calibrated Charges of the Blind Pixels 94 MHCalibrationChargeBlindCam *fHBlindCam; //! Charges histograms of the Blind Pixels 91 95 MCalibrationChargePINDiode *fPINDiode; //! Calibrated Charges of the PIN Diode 92 MCalibrationIntensityQECam *fIntensQE; //! CalibratedQuantum Efficiencies of all pixels96 MCalibrationIntensityQECam *fIntensQE; //! Intensity Calibration Quantum Efficiencies of all pixels 93 97 MCalibrationQECam *fQECam; //! Calibrated Quantum Efficiencies of all pixels 94 98 MGeomCam *fGeom; //! Camera geometry … … 161 165 MCalibrationChargeCalc(const char *name=NULL, const char *title=NULL); 162 166 167 Int_t CallPostProcess(); 168 163 169 void Clear(const Option_t *o=""); 164 170 -
trunk/MagicSoft/Mars/mcalib/MCalibrationQEPix.cc
r5044 r5133 94 94 // The number gkDefaultAverageQE = 0.18 +- 0.02 can be obtained in the following way: 95 95 // 96 // * Transmission probability Plexiglass: 0.9 696 // * Transmission probability Plexiglass: 0.92 97 97 // 98 98 // * Averaged QE coated PMTs: zenith value … … 201 201 const Float_t MCalibrationQEPix::gkDefaultAverageQEErr = 0.02 ; 202 202 const Float_t MCalibrationQEPix::gkPMTCollectionEff = 0.90 ; 203 const Float_t MCalibrationQEPix::gkPMTCollectionEffErr = 0.0 1;203 const Float_t MCalibrationQEPix::gkPMTCollectionEffErr = 0.05 ; 204 204 const Float_t MCalibrationQEPix::gkLightGuidesEffGreen = 0.94 ; 205 205 const Float_t MCalibrationQEPix::gkLightGuidesEffGreenErr = 0.03 ; -
trunk/MagicSoft/Mars/mcalib/MCalibrationRelTimeCalc.h
r5053 r5133 64 64 MCalibrationRelTimeCalc(const char *name=NULL, const char *title=NULL); 65 65 66 Int_t CallPostProcess(); 67 66 68 void Clear(const Option_t *o=""); 67 69
Note:
See TracChangeset
for help on using the changeset viewer.