Changeset 5659 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 12/21/04 17:50:28 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationIntensityChargeCam.cc
r5653 r5659 88 88 { 89 89 90 Int_t size = 0; 91 92 if (col == MCalibrationCam::kNONE) 93 size = GetSize(); 94 else 95 for (Int_t i=0;i<GetSize();i++) 96 { 97 MCalibrationChargeCam *cam = (MCalibrationChargeCam*)GetCam(i); 98 if (cam->GetPulserColor() == col) 99 size++; 100 } 101 90 Int_t size = CountNumEntries(col); 91 102 92 if (size == 0) 103 93 return NULL; … … 108 98 TArrayF sigerr(size); 109 99 110 for (Int_t i=0;i<size;i++) 100 Int_t cnt = 0; 101 102 for (Int_t i=0;i<GetSize();i++) 111 103 { 112 104 // … … 128 120 continue; 129 121 // 130 phe[ i] = pix.GetPheFFactorMethod();131 pheerr[ i] = pix.GetPheFFactorMethodErr();122 phe[cnt] = pix.GetPheFFactorMethod(); 123 pheerr[cnt] = pix.GetPheFFactorMethodErr(); 132 124 // 133 125 // For the calculation of Q, we have to use the 134 126 // converted value! 135 127 // 136 sig [i] = pix.GetConvertedMean(); 137 sigerr[i] = pix.GetConvertedMeanErr(); 128 sig [cnt] = pix.GetConvertedMean(); 129 sigerr[cnt] = pix.GetConvertedMeanErr(); 130 cnt++; 138 131 } 139 132 … … 264 257 const Float_t pheerr = apix.GetPheFFactorMethodErr(); 265 258 266 *fLog << "PHERELVAR: " << pherelvar << endl;267 268 259 sig[cnt] = phe; 269 260 sigerr[cnt] = pheerr;
Note:
See TracChangeset
for help on using the changeset viewer.