Changeset 5661 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 12/21/04 18:15:08 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCam.cc
r5557 r5661 169 169 { 170 170 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 } 172 175 } 173 176 … … 179 182 { 180 183 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 } 182 188 } 183 189 … … 189 195 { 190 196 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 } 192 201 } 193 202 … … 589 598 break; 590 599 case 32: 591 val = pix.GetMean() == 0. ? 0. : pix.Get HiGainRms()/pix.GetMean();600 val = pix.GetMean() == 0. ? 0. : pix.GetRms()/pix.GetMean(); 592 601 break; 593 602 default: … … 666 675 667 676 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.; 670 679 671 680 return arr;
Note:
See TracChangeset
for help on using the changeset viewer.