Changeset 8018 for trunk/MagicSoft/Mars
- Timestamp:
- 10/08/06 13:37:07 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8017 r8018 28 28 * ganymed.rc, ganymed:onoff.rc, ganymed_wobble.rc: 29 29 - some further update 30 31 * mcalib/MCalibrationHiLoCam.[h,cc]: 32 - broke down a long Form() chain into single Form()'s 30 33 31 34 -
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 -
trunk/MagicSoft/Mars/mcalib/MCalibrationHiLoCam.h
r7147 r8018 5 5 #include "MCalibrationCam.h" 6 6 #endif 7 8 class MCalibrationHiLoPix; 7 9 8 10 class MCalibrationHiLoCam : public MCalibrationCam … … 13 15 void AddArea(const UInt_t a, const UInt_t b); 14 16 void AddSector(const UInt_t a, const UInt_t b); 17 18 void PrintPix(const MCalibrationHiLoPix &pix, const char *type) const; 15 19 16 20 public:
Note:
See TracChangeset
for help on using the changeset viewer.