Changeset 3991 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 05/05/04 19:41:31 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
- 
      - 4 edited
 
 - 
          
  MCalibrationChargeCalc.cc (modified) (5 diffs)
- 
          
  MCalibrationChargeCalc.h (modified) (1 diff)
- 
          
  MCalibrationChargePix.cc (modified) (1 diff)
- 
          
  MCalibrationChargePix.h (modified) (2 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.ccr3982 r3991 570 570 MPedestalPix &ped = (*fPedestals)[pixid]; 571 571 MBadPixelsPix &bad = (*fBadPixels)[pixid]; 572 573 FinalizePedestals(ped,pix); 572 const Int_t aidx = (*fGeom)[pixid].GetAidx(); 573 574 FinalizePedestals(ped,pix,aidx); 574 575 575 576 if (FinalizeCharges(pix,bad)) … … 596 597 MCalibrationChargePix &pix = (MCalibrationChargePix&)fCam->GetAverageArea(aidx); 597 598 598 FinalizePedestals(ped,pix );599 FinalizePedestals(ped,pix,aidx); 599 600 FinalizeCharges(pix, fCam->GetAverageBadArea(aidx)); 600 601 } … … 605 606 const MPedestalPix &ped = fPedestals->GetAverageSector(sector); 606 607 MCalibrationChargePix &pix = (MCalibrationChargePix&)fCam->GetAverageSector(sector); 607 608 FinalizePedestals(ped,pix); 608 FinalizePedestals(ped,pix, 0); 609 609 FinalizeCharges(pix, fCam->GetAverageBadSector(sector)); 610 610 } … … 705 705 // - MCalibrationChargePix::CalcLoGainPedestal() 706 706 // 707 void MCalibrationChargeCalc::FinalizePedestals(const MPedestalPix &ped, MCalibrationChargePix &cal )707 void MCalibrationChargeCalc::FinalizePedestals(const MPedestalPix &ped, MCalibrationChargePix &cal, const Int_t aidx) 708 708 { 709 709 … … 723 723 prms * fSqrtLoGainSamples, 724 724 prms * fNumLoGainSamples / num); 725 cal.CalcLoGainPedestal((Float_t)fNumLoGainSamples );725 cal.CalcLoGainPedestal((Float_t)fNumLoGainSamples, aidx); 726 726 } 727 727 else 
- 
      trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.hr3922 r3991 80 80 81 81 // functions 82 void FinalizePedestals ( const MPedestalPix &ped, MCalibrationChargePix &cal );82 void FinalizePedestals ( const MPedestalPix &ped, MCalibrationChargePix &cal, const Int_t aidx ); 83 83 Bool_t FinalizeCharges ( MCalibrationChargePix &cal, MBadPixelsPix &bad ); 84 84 Bool_t FinalizePINDiode (); 
- 
      trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.ccr3990 r3991 697 697 { 698 698 *fLog << warn << GetDescriptor() << ": Conversion F-Factor Method Rel. Variance: " 699 << convrelvar << " above limits of: [0," << Form("%3.2f", fConvFFactorRelVarLimit)699 << convrelvar << " above limits of: [0," << Form("%3.2f",limit) 700 700 << "] in pixel: " << fPixId << endl; 701 701 return kFALSE; 
- 
      trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.hr3724 r3991 10 10 private: 11 11 12 static const Float_t gkElectronicPedRms; //! Electronic component of ped. RMS (now set to: 1.5) 13 static const Float_t gkElectronicPedRmsErr; //! Error Electr. component ped. RMS (now set to: 0.3) 12 static const Float_t gkElectronicPedRmsInner; //! Electronic component of ped. RMS (now set to: 1.5) 13 static const Float_t gkElectronicPedRmsOuter; //! Electronic component of ped. RMS (now set to: 1.8) 14 static const Float_t gkElectronicPedRmsErr; //! Error Electr. component ped. RMS (now set to: 0.35) 14 15 static const Float_t gkFFactor; //! Laboratory F-factor PMTs (now set to: 1.15) 15 16 static const Float_t gkFFactorErr; //! Laboratory F-factor Error PMTs (now set to: 0.02) … … 101 102 102 103 // Calculations 103 void CalcLoGainPedestal ( const Float_t logainsamples 104 Bool_t CalcReducedSigma ( );104 void CalcLoGainPedestal ( const Float_t logainsamples, const Int_t aidx ); 105 Bool_t CalcReducedSigma ( ); 105 106 Bool_t CalcFFactorMethod (); 106 107 Bool_t CalcMeanFFactor ( const Float_t nphotons, const Float_t nphotonsrelvar ); 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
