Changeset 8018 for trunk/MagicSoft/Mars/mcalib/MCalibrationHiLoCam.cc
- Timestamp:
- 10/08/06 13:37:07 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationHiLoCam.cc
r5946 r8018 115 115 } 116 116 117 void MCalibrationHiLoCam::PrintPix(const MCalibrationHiLoPix &pix, const char *type) const 118 { 119 *fLog << all << setw(7) << type << Form("%4i", pix.GetPixId()) << ": "; 120 *fLog << " Ratio: " << Form("%4.2f", pix.GetHiLoChargeRatio()); 121 *fLog << " +- " << Form("%4.2f", pix.GetHiLoChargeRatioErr()); 122 *fLog << " Sigma: " << Form("%4.2f", pix.GetHiLoChargeRatioSigma()); 123 *fLog << " +- " << Form("%4.2f", pix.GetHiLoChargeRatioSigmaErr()); 124 *fLog << endl; 125 } 126 117 127 // -------------------------------------------------------------------------- 118 128 // … … 132 142 MCalibrationHiLoPix *pix; 133 143 while ((pix=(MCalibrationHiLoPix*)Next())) 134 { 135 136 if (!pix->IsExcluded()) 137 { 138 139 *fLog << all 140 << Form("%s%4i%s%4.2f%s%4.2f%s%4.2f%s%4.2f","Pix ",pix->GetPixId(), 141 ": Ratio: ",pix->GetHiLoChargeRatio()," +- ",pix->GetHiLoChargeRatioErr(), 142 " Sigma: ",pix->GetHiLoChargeRatioSigma()," +- ",pix->GetHiLoChargeRatioSigmaErr()) 143 << endl; 144 if (!pix->IsExcluded()) 145 { 146 PrintPix(*pix, "Pixel"); 144 147 id++; 145 } 146 } 148 } 147 149 148 150 *fLog << all << id << " pixels" << endl; … … 170 172 TIter Next5(fAverageAreas); 171 173 while ((pix=(MCalibrationHiLoPix*)Next5())) 172 { 173 *fLog << all 174 << Form("%s%4i%s%4.2f%s%4.2f%s%4.2f%s%4.2f","Average Area ",pix->GetPixId(), 175 ": Ratio: ",pix->GetHiLoChargeRatio()," +- ",pix->GetHiLoChargeRatioErr(), 176 " Sigma: ",pix->GetHiLoChargeRatioSigma()," +- ",pix->GetHiLoChargeRatioSigmaErr()) 177 << endl; 178 } 174 PrintPix(*pix, "Area"); 179 175 180 176 TIter Next6(fAverageSectors); 181 177 while ((pix=(MCalibrationHiLoPix*)Next5())) 182 { 183 *fLog << all 184 << Form("%s%4i%s%4.2f%s%4.2f%s%4.2f%s%4.2f","Average Sector ",pix->GetPixId(), 185 ": Ratio: ",pix->GetHiLoChargeRatio()," +- ",pix->GetHiLoChargeRatioErr(), 186 " Sigma: ",pix->GetHiLoChargeRatioSigma()," +- ",pix->GetHiLoChargeRatioSigmaErr()) 187 << endl; 188 } 178 PrintPix(*pix, "Sector"); 189 179 } 190 180
Note:
See TracChangeset
for help on using the changeset viewer.