Changeset 3991 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
05/05/04 19:41:31 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mcalib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc

    r3982 r3991  
    570570      MPedestalPix  &ped = (*fPedestals)[pixid];
    571571      MBadPixelsPix &bad = (*fBadPixels)[pixid];
    572 
    573       FinalizePedestals(ped,pix);
     572      const Int_t aidx    = (*fGeom)[pixid].GetAidx();
     573
     574      FinalizePedestals(ped,pix,aidx);
    574575
    575576      if (FinalizeCharges(pix,bad))
     
    596597      MCalibrationChargePix &pix = (MCalibrationChargePix&)fCam->GetAverageArea(aidx);
    597598
    598       FinalizePedestals(ped,pix);
     599      FinalizePedestals(ped,pix,aidx);
    599600      FinalizeCharges(pix, fCam->GetAverageBadArea(aidx));
    600601    }
     
    605606      const MPedestalPix     &ped = fPedestals->GetAverageSector(sector);
    606607      MCalibrationChargePix &pix = (MCalibrationChargePix&)fCam->GetAverageSector(sector);
    607 
    608       FinalizePedestals(ped,pix);
     608      FinalizePedestals(ped,pix, 0);
    609609      FinalizeCharges(pix, fCam->GetAverageBadSector(sector));
    610610    }
     
    705705// - MCalibrationChargePix::CalcLoGainPedestal()
    706706//
    707 void MCalibrationChargeCalc::FinalizePedestals(const MPedestalPix &ped, MCalibrationChargePix &cal)
     707void MCalibrationChargeCalc::FinalizePedestals(const MPedestalPix &ped, MCalibrationChargePix &cal, const Int_t aidx)
    708708{
    709709 
     
    723723                      prms * fSqrtLoGainSamples,
    724724                      prms * fNumLoGainSamples / num);
    725       cal.CalcLoGainPedestal((Float_t)fNumLoGainSamples);
     725      cal.CalcLoGainPedestal((Float_t)fNumLoGainSamples, aidx);
    726726    }
    727727  else
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.h

    r3922 r3991  
    8080
    8181  // functions
    82   void   FinalizePedestals      ( const MPedestalPix &ped, MCalibrationChargePix &cal );
     82  void   FinalizePedestals      ( const MPedestalPix &ped, MCalibrationChargePix &cal, const Int_t aidx );
    8383  Bool_t FinalizeCharges        ( MCalibrationChargePix &cal, MBadPixelsPix &bad      );
    8484  Bool_t FinalizePINDiode       ();
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.cc

    r3990 r3991  
    697697    {
    698698      *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)
    700700            << "] in pixel: " << fPixId << endl;
    701701      return kFALSE;
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.h

    r3724 r3991  
    1010private:
    1111
    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)
    1415  static const Float_t gkFFactor;                //! Laboratory F-factor PMTs         (now set to: 1.15)
    1516  static const Float_t gkFFactorErr;             //! Laboratory F-factor Error PMTs   (now set to: 0.02)
     
    101102
    102103  // 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  (  );
    105106  Bool_t CalcFFactorMethod ();
    106107  Bool_t CalcMeanFFactor   ( const Float_t nphotons, const Float_t nphotonsrelvar );
Note: See TracChangeset for help on using the changeset viewer.