Ignore:
Timestamp:
04/06/04 16:23:10 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.cc

    r3667 r3669  
    216216{
    217217
    218   const Int_t npixels  = fGeom->GetNumPixels();
    219   const Int_t nsectors = fGeom->GetNumSectors();
    220   const Int_t nareas   = fGeom->GetNumAreas();
    221 
    222218  fCam = (MCalibrationCam*)pList->FindObject("MCalibrationChargeCam");
    223219  if (!fCam)
     
    230226        }
    231227      else
    232         {
    233           fCam->InitSize(npixels);
    234           fCam->InitAverageAreas(nareas);
    235           fCam->InitAverageSectors(nsectors);
    236         }
     228        fCam->Init(*fGeom);
    237229    }
    238230
     
    243235      return kFALSE;
    244236  }
     237
     238  const Int_t npixels  = fGeom->GetNumPixels();
     239  const Int_t nsectors = fGeom->GetNumSectors();
     240  const Int_t nareas   = fGeom->GetNumAreas();
    245241
    246242  if (fHiGainArray->GetEntries()==0)
     
    397393  Int_t   sathisector[nsectors], satlosector[nsectors];
    398394
    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  ));
    411407
    412408  for (UInt_t i=0; i<npixels; i++)
Note: See TracChangeset for help on using the changeset viewer.