Ignore:
Timestamp:
04/25/07 15:39:43 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc

    r8423 r8446  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MBadPixelsCam.cc,v 1.49 2007-04-20 08:55:17 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MBadPixelsCam.cc,v 1.50 2007-04-25 14:39:41 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    394394   
    395395  Int_t count = 0;
    396   Int_t full  = 0;
    397396
    398397  for (Int_t i=0; i<GetSize(); i++)
     
    401400        {
    402401          *fLog << i << " ";
    403           full++;
    404402          count ++;
    405403        }
    406      
    407       if (count == 0)
    408         continue;
    409      
    410       if (!(full % 25))
    411         {
    412           full = 0;
    413           *fLog << endl;
    414         }
    415     }
    416   *fLog << endl;
     404    }
    417405  *fLog << count << " normal pixels" << endl;
    418406  *fLog << endl;
    419407
    420408  *fLog << "Pixels unsuited for the whole run:" << endl;
    421  
    422   full  = 0;
     409
    423410  count = 0;
    424411  for (Int_t i=0; i<GetSize(); i++)
     
    427414        {
    428415          *fLog << i << " ";
    429           full++;
    430416          count ++;
    431417        }
    432      
    433       if (count == 0)
    434         continue;
    435      
    436       if (!(full % 25))
    437         {
    438           full = 0;
    439           *fLog << endl;
    440         }
    441     }
    442 
    443   *fLog << endl;
     418    }
     419
    444420  *fLog << count << " unsuited pixels per run :-(" << endl;
    445421  *fLog << endl;
    446  
     422
    447423  *fLog << "Pixels unsuited for this event:" << endl;
    448424
    449   full  = 0;
    450425  count = 0;
    451426  for (Int_t i=0; i<GetSize(); i++)
     
    454429        {
    455430          *fLog << i << " ";
    456           full++;
    457431          count ++;
    458432        }
    459      
    460       if (count == 0)
    461         continue;
    462      
    463       if (!(full % 25))
    464         {
    465           full  = 0;
    466           *fLog << endl;
    467         }
    468     }
    469 
    470   *fLog << endl;
     433    }
     434
    471435  *fLog << count << " unsuited pixels per event :-(" << endl;
    472436  *fLog << endl;
    473  
    474   full  = 0;
     437
    475438  count = 0;
    476  
     439
    477440  *fLog << all << "Pixels unreliable for the whole run:" << endl;
    478  
     441
    479442  for (Int_t i=0; i<GetSize(); i++)
    480443    {
     
    482445        {
    483446          *fLog << i << " ";
    484           full++;
    485447          count ++;
    486448        }
    487      
    488       if (count == 0)
    489         continue;
    490      
    491       if (!(full % 25))
    492         {
    493           full  = 0;
    494           *fLog << endl;
    495         }
    496     }
    497  
    498   *fLog << endl;
     449    }
     450
    499451  *fLog << count << " unreliable pixels :-(" << endl;
    500452  *fLog << endl;
     
    502454  *fLog << all << "Unsuited pixels statistics:" << endl;
    503455  *fLog << endl;
    504  
     456
    505457  PrintBadPixels(MBadPixelsPix::kPreviouslyExcluded,"Previously excluded");
    506458  PrintBadPixels(MBadPixelsPix::kChargeIsPedestal,"Signal smaller 3 Pedestal RMS");
     
    519471  *fLog << all << "Unreliable pixels statistics:" << endl;
    520472  *fLog << endl;
    521  
     473
    522474  PrintBadPixels(MBadPixelsPix::kChargeSigmaNotValid,"Signal Sigma smaller Pedestal RMS");
    523475  PrintBadPixels(MBadPixelsPix::kHiGainNotFitted    ,"High Gain Signals could not be fitted");
     
    554506  *fLog << "Pixels with " << text << ": " << endl;
    555507  UInt_t count = 0;
    556   UInt_t full  = 0;
    557508
    558509  for (Int_t i=0; i<GetSize(); i++)
     
    561512        {
    562513          *fLog << i << " ";
    563           full++;
    564514          count++;
    565515        }
    566      
    567       if (count == 0)
    568         continue;
    569      
    570       if (!(full % 25))
    571         {
    572           full  = 0;
    573           *fLog << endl;
    574         }
    575516    }
    576517 
    577   *fLog << endl;
    578518  *fLog << Form("%3i",count) << " pixels in total " << endl;
    579519}
Note: See TracChangeset for help on using the changeset viewer.