Changeset 5040 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 09/15/04 19:13:25 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationCam.cc
r5038 r5040 61 61 62 62 #include "MLog.h" 63 #include "MLogManip.h" 63 64 64 65 ClassImp(MCalibrationCam); … … 181 182 MParContainer::Copy(calib); 182 183 183 calib.fPulserColor 184 185 const Int_t n 3 =GetSize();186 if (n 3!= 0)184 calib.fPulserColor = fPulserColor; 185 186 const Int_t n = fPixels->GetSize(); 187 if (n != 0) 187 188 { 188 calib.InitSize(n 3);189 for (int i=0; i<n 3; i++)189 calib.InitSize(n); 190 for (int i=0; i<n; i++) 190 191 (*this)[i].Copy(calib[i]); 191 192 } 192 193 193 const Int_t n 4= GetAverageAreas();194 if (n 4!= 0)194 const Int_t n2 = GetAverageAreas(); 195 if (n2 != 0) 195 196 { 196 calib.InitAverageAreas(n 4);197 for (int i=0; i<n 4; i++)197 calib.InitAverageAreas(n2); 198 for (int i=0; i<n2; i++) 198 199 { 199 200 GetAverageArea (i).Copy(calib.GetAverageArea(i)); … … 206 207 } 207 208 208 const Int_t n 5= GetAverageSectors();209 if (n 5!= 0)209 const Int_t n3 = GetAverageSectors(); 210 if (n3 != 0) 210 211 { 211 calib.InitAverageSectors(n 5);212 for (int i=0; i<n 5; i++)212 calib.InitAverageSectors(n3); 213 for (int i=0; i<n3; i++) 213 214 { 214 215 GetAverageSector (i).Copy(calib.GetAverageSector(i)); … … 225 226 { 226 227 227 const UInt_t save = GetSize(); 228 const UInt_t save = fPixels->GetEntries(); 229 230 *fLog << err << save << endl; 228 231 229 232 if (i==save) … … 443 446 const Int_t MCalibrationCam::GetSize() const 444 447 { 445 return fPixels->Get Size();448 return fPixels->GetEntriesFast(); 446 449 } 447 450
Note:
See TracChangeset
for help on using the changeset viewer.