Changeset 3319 for trunk/MagicSoft


Ignore:
Timestamp:
02/26/04 05:54:34 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3317 r3319  
    66 
    77 2004/02/25: Markus Gaug
     8
     9  * mcalib/MHCalibrationChargeCam.cc
     10    - display only valid pixels for the corr. values in GetPixelContent
     11
    812
    913  * mcalib/MHCalibrationRelTimeCam.cc
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCam.cc

    r3313 r3319  
    3131//                                                               
    3232// 1) MCalibrationChargeCam initializes a TClonesArray whose elements are
    33 //    pointers to MCalibrationPix Containers
     33//    pointers to MCalibrationChargePix Containers
    3434// 2) It initializes a pointer to an MCalibrationBlindPix container
    3535// 3) It initializes a pointer to an MCalibrationPINDiode container
     
    482482    {
    483483    case 0:
    484       if ((*this)[idx].IsExcluded())
     484      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid())
    485485        return kFALSE;
    486486      val = (*this)[idx].GetMeanCharge();
    487487      break;
    488488    case 1:
    489       if ((*this)[idx].IsExcluded())
     489      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid())
    490490        return kFALSE;
    491491      val = (*this)[idx].GetMeanChargeErr();
    492492      break;
    493493    case 2:
    494       if ((*this)[idx].IsExcluded())
     494      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid())
    495495        return kFALSE;
    496496      val = (*this)[idx].GetSigmaCharge();
    497497      break;
    498498    case 3:
    499       if ((*this)[idx].IsExcluded())
     499      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid())
    500500        return kFALSE;
    501501      val = (*this)[idx].GetSigmaChargeErr();
    502502      break;
    503503    case 4:
    504       if ((*this)[idx].IsExcluded())
     504      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid())
    505505        return kFALSE;
    506506      val = (*this)[idx].GetChargeProb();
    507507      break;
    508508    case 5:
    509       if ((*this)[idx].IsExcluded())
    510         return kFALSE;
     509      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid())
     510        return kFALSE;
     511      if ((*this)[idx].GetRSigmaCharge() == -1.)
     512          return kFALSE;
    511513      val = (*this)[idx].GetRSigmaCharge();
    512514      break;
    513515    case 6:
    514       if ((*this)[idx].IsExcluded())
    515         return kFALSE;
     516      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid())
     517        return kFALSE;   
     518      if ((*this)[idx].GetRSigmaCharge() == -1.)
     519          return kFALSE;
    516520      val = (*this)[idx].GetRSigmaChargeErr();
    517521      break;
    518522    case 7:
    519       if ((*this)[idx].IsExcluded())
    520         return kFALSE;
     523      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid())
     524        return kFALSE;
     525      if ((*this)[idx].GetRSigmaCharge() == -1.)
     526          return kFALSE;
    521527      val = (*this)[idx].GetRSigmaCharge() / (*this)[idx].GetMeanCharge();
    522528      break;
    523529    case 8:
    524       if ((*this)[idx].IsExcluded())
    525         return kFALSE;
     530      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid())
     531        return kFALSE;
     532      if ((*this)[idx].GetRSigmaCharge() == -1.)
     533          return kFALSE;
    526534      // relative error RsigmaCharge square
    527535      val =    (*this)[idx].GetRSigmaChargeErr()* (*this)[idx].GetRSigmaChargeErr()
     
    536544      break;
    537545    case 9:
    538       if ((*this)[idx].IsExcluded())
     546      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsFFactorMethodValid())
    539547        return kFALSE;
    540548      val = (*this)[idx].GetPheFFactorMethod();
    541549      break;
    542550    case 10:
    543       if ((*this)[idx].IsExcluded())
     551      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsFFactorMethodValid())
    544552        return kFALSE;
    545553      val = (*this)[idx].GetPheFFactorMethodErr();
    546554      break;
    547555    case 11:
    548       if ((*this)[idx].IsExcluded())
     556      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsFFactorMethodValid())
    549557        return kFALSE;
    550558      val = (*this)[idx].GetMeanConversionFFactorMethod();
    551559      break;
    552560    case 12:
    553       if ((*this)[idx].IsExcluded())
     561      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsFFactorMethodValid())
    554562        return kFALSE;
    555563      val = (*this)[idx].GetConversionFFactorMethodErr();
    556564      break;
    557565    case 13:
    558       if ((*this)[idx].IsExcluded())
     566      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsFFactorMethodValid())
    559567        return kFALSE;
    560568      val = (*this)[idx].GetTotalFFactorFFactorMethod();
    561569      break;
    562570    case 14:
    563       if ((*this)[idx].IsExcluded())
     571      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsFFactorMethodValid())
    564572        return kFALSE;
    565573      val = (*this)[idx].GetTotalFFactorErrFFactorMethod();
    566574      break;
    567575    case 15:
    568       if ((*this)[idx].IsExcluded())
     576      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsBlindPixelMethodValid())
    569577        return kFALSE;
    570578      val = fBlindPixel->GetMeanFluxInsidePlexiglass()*area;
    571579      break;
    572580    case 16:
    573       if ((*this)[idx].IsExcluded())
     581      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsBlindPixelMethodValid())
    574582        return kFALSE;
    575583      val = fBlindPixel->GetMeanFluxErrInsidePlexiglass()*area;
    576584      break;
    577585    case 17:
    578       if ((*this)[idx].IsExcluded())
     586      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsBlindPixelMethodValid())
    579587        return kFALSE;
    580588      val = (*this)[idx].GetMeanConversionBlindPixelMethod();
    581589      break;
    582590    case 18:
    583       if ((*this)[idx].IsExcluded())
     591      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsBlindPixelMethodValid())
    584592        return kFALSE;
    585593      val = (*this)[idx].GetConversionBlindPixelMethodErr();
    586594      break;
    587595    case 19:
    588       if ((*this)[idx].IsExcluded())
     596      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsBlindPixelMethodValid())
    589597        return kFALSE;
    590598      val = (*this)[idx].GetTotalFFactorBlindPixelMethod();
    591599      break;
    592600    case 20:
    593       if ((*this)[idx].IsExcluded())
     601      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsBlindPixelMethodValid())
    594602        return kFALSE;
    595603      val = (*this)[idx].GetTotalFFactorErrBlindPixelMethod();
    596604      break;
    597605    case 21:
    598       if ((*this)[idx].IsExcluded())
     606      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsPINDiodeMethodValid())
    599607        return kFALSE;
    600608      val = fPINDiode->GetMeanFluxOutsidePlexiglass()*area;
    601609      break;
    602610    case 22:
    603       if ((*this)[idx].IsExcluded())
     611      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsPINDiodeMethodValid())
    604612        return kFALSE;
    605613      val = fPINDiode->GetMeanFluxErrOutsidePlexiglass()*area;
    606614      break;
    607615    case 23:
    608       if ((*this)[idx].IsExcluded())
     616      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsPINDiodeMethodValid())
    609617        return kFALSE;
    610618      val = (*this)[idx].GetMeanConversionPINDiodeMethod();
    611619      break;
    612620    case 24:
    613       if ((*this)[idx].IsExcluded())
     621      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsPINDiodeMethodValid())
    614622        return kFALSE;
    615623      val = (*this)[idx].GetConversionPINDiodeMethodErr();
    616624      break;
    617625    case 25:
    618       if ((*this)[idx].IsExcluded())
    619         return kFALSE;
    620       val = (*this)[idx].GetTotalFFactorBlindPixelMethod();
     626      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsPINDiodeMethodValid())
     627        return kFALSE;
     628      val = (*this)[idx].GetTotalFFactorPINDiodeMethod();
    621629      break;
    622630    case 26:
    623       if ((*this)[idx].IsExcluded())
    624         return kFALSE;
    625       val = (*this)[idx].GetTotalFFactorErrBlindPixelMethod();
     631      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsPINDiodeMethodValid())
     632        return kFALSE;
     633      val = (*this)[idx].GetTotalFFactorErrPINDiodeMethod();
    626634      break;
    627635    case 27:
     
    674682      break;
    675683    case 34:
    676       if ((*this)[idx].IsExcluded())
     684      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid())
    677685        return kFALSE;
    678686      if ((*this)[idx].IsHiGainSaturation())
     
    726734      break;
    727735    case 42:
    728       if ((*this)[idx].IsExcluded())
     736      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid())
    729737        return kFALSE;
    730738      val = (*this)[idx].GetAbsTimeMean();
    731739      break;
    732740    case 43:
    733       if ((*this)[idx].IsExcluded())
     741      if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid())
    734742        return kFALSE;
    735743      val = (*this)[idx].GetAbsTimeRms();
Note: See TracChangeset for help on using the changeset viewer.