Changeset 3669 for trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.cc
- Timestamp:
- 04/06/04 16:23:10 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.cc
r3667 r3669 216 216 { 217 217 218 const Int_t npixels = fGeom->GetNumPixels();219 const Int_t nsectors = fGeom->GetNumSectors();220 const Int_t nareas = fGeom->GetNumAreas();221 222 218 fCam = (MCalibrationCam*)pList->FindObject("MCalibrationChargeCam"); 223 219 if (!fCam) … … 230 226 } 231 227 else 232 { 233 fCam->InitSize(npixels); 234 fCam->InitAverageAreas(nareas); 235 fCam->InitAverageSectors(nsectors); 236 } 228 fCam->Init(*fGeom); 237 229 } 238 230 … … 243 235 return kFALSE; 244 236 } 237 238 const Int_t npixels = fGeom->GetNumPixels(); 239 const Int_t nsectors = fGeom->GetNumSectors(); 240 const Int_t nareas = fGeom->GetNumAreas(); 245 241 246 242 if (fHiGainArray->GetEntries()==0) … … 397 393 Int_t sathisector[nsectors], satlosector[nsectors]; 398 394 399 for (UInt_t j=0; j<nareas; j++)400 {401 sumhiarea [j] = sumloarea [j] = timehiarea [j] = timeloarea [j] = 0.;402 sathiarea [j] = satloarea [j] = 0;403 }404 405 for (UInt_t j=0; j<nsectors; j++)406 {407 sumhisector[j] = sumlosector[j] = timehisector[j] = timelosector[j] = 0.;408 sathisector[j] = satlosector[j] = 0;409 }410 395 memset(sumhiarea, 0, nareas * sizeof(Float_t)); 396 memset(sumloarea, 0, nareas * sizeof(Float_t)); 397 memset(timehiarea, 0, nareas * sizeof(Float_t)); 398 memset(timeloarea, 0, nareas * sizeof(Float_t)); 399 memset(sathiarea, 0, nareas * sizeof(Int_t )); 400 memset(satloarea, 0, nareas * sizeof(Int_t )); 401 memset(sumhisector, 0, nsectors*sizeof(Float_t)); 402 memset(sumlosector, 0, nsectors*sizeof(Float_t)); 403 memset(timehisector,0, nsectors*sizeof(Float_t)); 404 memset(timelosector,0, nsectors*sizeof(Float_t)); 405 memset(sathisector, 0, nsectors*sizeof(Int_t )); 406 memset(satlosector, 0, nsectors*sizeof(Int_t )); 411 407 412 408 for (UInt_t i=0; i<npixels; i++)
Note:
See TracChangeset
for help on using the changeset viewer.