Changeset 2141 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
05/26/03 14:52:33 (21 years ago)
Author:
wittek
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2140 r2141  
    11                                                 -*-*- END OF LINE -*-*-
     2
     3 2003/05/26: Wolfgang Wittek
     4
     5   * mfileio/MCT1ReadPreProc.cc
     6     - put back :  if (event.spixsig_10thphot[i]==0)
     7                         continue;
     8 
     9   * Manalysis/MPadSchweizer.cc
     10     - add pixels to MCerPhotEvt which are not yet in;
     11       set their number of photons equal to zero
     12
     13
     14
    215 2003/05/23: Abelardo Moralejo
    316
     
    7588       seem to work well. Any other kind of ordering might be harmful
    7689       as well (in theta, phi or whatever).
     90
     91
     92
    7793
    7894
  • 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
  • trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.cc

    r2136 r2141  
    920920    for (Int_t i=0; i<iMAXNUMPIX; i++)
    921921    {
    922         // next 2 statements commented out by WW
    923         //if (event.spixsig_10thphot[i]==0)
    924         //      continue;
     922      //*fLog << event.spixsig_10thphot[i] << " ";
     923
     924      if (event.spixsig_10thphot[i]==0)
     925            continue;
    925926
    926927        fNphot->AddPixel(i, 0.1*event.spixsig_10thphot[i],
Note: See TracChangeset for help on using the changeset viewer.