Changeset 3669
- Timestamp:
- 04/06/04 16:23:10 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3667 r3669 133 133 - updated and enlarged documentation 134 134 135 * mcalib/MHCalibrationChargeCam.cc 136 * mcalib/MHCalibrationRelTimeCam.cc 137 - set the arrays by use of memset 138 - initialize TObjArrays with the Init-Function 135 139 136 140 -
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++) -
trunk/MagicSoft/Mars/mcalib/MHCalibrationRelTimeCam.cc
r3667 r3669 153 153 { 154 154 155 const Int_t npixels = fGeom->GetNumPixels();156 const Int_t nsectors = fGeom->GetNumSectors();157 const Int_t nareas = fGeom->GetNumAreas();158 159 155 fCam = (MCalibrationCam*)pList->FindObject("MCalibrationRelTimeCam"); 160 156 if (!fCam) … … 167 163 } 168 164 else 169 { 170 fCam->InitSize(npixels); 171 fCam->InitAverageAreas(nareas); 172 fCam->InitAverageSectors(nsectors); 173 } 165 fCam->Init(*fGeom); 174 166 } 175 167 … … 180 172 return kFALSE; 181 173 } 174 175 const Int_t npixels = fGeom->GetNumPixels(); 176 const Int_t nsectors = fGeom->GetNumSectors(); 177 const Int_t nareas = fGeom->GetNumAreas(); 182 178 183 179 if (fHiGainArray->GetEntries()==0) … … 306 302 Int_t numsectorhi[nsectors], numsectorlo[nsectors]; 307 303 308 for (UInt_t j=0; j<nareas; j++) 309 { 310 sumareahi[j] = sumarealo[j] = 0.; 311 numareahi[j] = numarealo[j] = 0; 312 } 313 314 for (UInt_t j=0; j<nsectors; j++) 315 { 316 sumsectorhi[j] = sumsectorlo[j] = 0.; 317 numsectorhi[j] = numsectorlo[j] = 0; 318 } 304 memset(sumareahi, 0, nareas * sizeof(Float_t)); 305 memset(sumarealo, 0, nareas * sizeof(Float_t)); 306 memset(sumsectorhi, 0, nsectors*sizeof(Float_t)); 307 memset(sumsectorlo, 0, nsectors*sizeof(Float_t)); 319 308 320 309 const MArrivalTimePix &refpix = (*arrtime)[1];
Note:
See TracChangeset
for help on using the changeset viewer.