Ignore:
Timestamp:
12/21/04 18:15:08 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r5557 r5661  
    169169{
    170170  for (UInt_t i=a; i<b; i++)
    171     fPixels->AddAt(new MCalibrationChargePix,i);
     171    {
     172      fPixels->AddAt(new MCalibrationChargePix,i);
     173      (*this)[i].SetPixId(i);
     174    }
    172175}
    173176
     
    179182{
    180183  for (UInt_t i=a; i<b; i++)
    181     fAverageAreas->AddAt(new MCalibrationChargePix,i);
     184    {
     185      fAverageAreas->AddAt(new MCalibrationChargePix,i);
     186      GetAverageArea(i).SetPixId(i);
     187    }
    182188}
    183189
     
    189195{
    190196  for (UInt_t i=a; i<b; i++)
    191     fAverageSectors->AddAt(new MCalibrationChargePix,i);
     197    {
     198      fAverageSectors->AddAt(new MCalibrationChargePix,i);
     199      GetAverageSector(i).SetPixId(i);
     200    }
    192201}
    193202
     
    589598      break;
    590599    case 32:
    591       val = pix.GetMean() == 0. ? 0. : pix.GetHiGainRms()/pix.GetMean();
     600      val = pix.GetMean() == 0. ? 0. : pix.GetRms()/pix.GetMean();
    592601      break;
    593602    default:
     
    666675
    667676  TArrayF arr(2);
    668   arr[0] = nr   ? mean/nr : -1;
    669   arr[1] = nr>1 ? TMath::Sqrt((mean2 - mean*mean/nr)/(nr-1)) : 0;
     677  arr[0] = nr   ? mean/nr : -1.;
     678  arr[1] = nr>1 ? TMath::Sqrt((mean2 - mean*mean/nr)/(nr-1)) : 0.;
    670679
    671680  return arr;
Note: See TracChangeset for help on using the changeset viewer.