Ignore:
Timestamp:
05/26/03 14:52:33 (22 years ago)
Author:
wittek
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MPadSchweizer.cc

    r2129 r2141  
    268268  //*fLog << "Entry MPadSchweizer::Process();" << endl;
    269269
     270  //------------------------------------------------
     271  // add pixels to MCerPhotEvt which are not yet in;
     272  // set their numnber of photons equal to zero
     273
     274  UInt_t imaxnumpix = fCam->GetNumPixels();
     275
     276  for (UInt_t i=0; i<imaxnumpix; i++)
     277  {
     278    Bool_t alreadythere = kFALSE;
     279    UInt_t npix = fEvt->GetNumPixels();
     280    for (UInt_t j=0; j<npix; j++)
     281    {
     282      MCerPhotPix &pix = (*fEvt)[j];
     283      UInt_t id = pix.GetPixId();
     284      if (i==id)
     285      {
     286        alreadythere = kTRUE;
     287        break;
     288      }
     289    }
     290    if (alreadythere)
     291      continue;
     292
     293    fEvt->AddPixel(i, 0.0, (*fPed)[i].GetMeanRms());
     294  }
     295
     296
     297
     298  //-----------------------------------------
    270299  Int_t rc=0;
    271300
Note: See TracChangeset for help on using the changeset viewer.