Ignore:
Timestamp:
11/24/04 14:31:23 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r5117 r5463  
    333333void MBadPixelsCam::Print(Option_t *o) const
    334334{
     335
    335336  *fLog << all << GetDescriptor() << ":" << endl;
    336  
    337337  *fLog << "Pixels without problems:" << endl;
    338   *fLog << endl;
    339338   
    340339  Int_t count = 0;
     
    354353        *fLog << endl;
    355354    }
    356   *fLog << endl;
    357   *fLog << count << " normal pixels :-))" << endl;
    358   *fLog << endl;
    359   count = 0;
    360  
    361  
     355  *fLog << count << " normal pixels" << endl;
     356  *fLog << endl;
     357
    362358  *fLog << "Pixels unsuited for the whole run:" << endl;
    363   *fLog << endl;
    364359 
    365360  for (Int_t i=0; i<GetSize(); i++)
     
    377372        *fLog << endl;
    378373    }
    379   *fLog << endl;
     374
    380375  *fLog << count << " unsuited pixels :-(" << endl;
    381376  *fLog << endl;
     
    384379 
    385380  *fLog << all << "Pixels unreliable for the whole run:" << endl;
    386   *fLog << all << endl;
    387381 
    388382  for (Int_t i=0; i<GetSize(); i++)
     
    401395    }
    402396 
    403   *fLog << endl;
    404397  *fLog << count << " unreliable pixels :-(" << endl;
    405398  *fLog << endl;
    406 
    407   count = 0;
    408  
    409   *fLog << all << "Charge is Pedestal:" << endl;
    410   *fLog << all << endl;
    411  
     399  *fLog << endl;
     400  *fLog << all << "Unsuited pixels statistics:" << endl;
     401  *fLog << endl;
     402 
     403  PrintBadPixels(MBadPixelsPix::kChargeIsPedestal,"Signal smaller 3 Pedestal RMS");
     404  PrintBadPixels(MBadPixelsPix::kChargeSigmaNotValid,"Signal smaller 3 Pedestal RMS");
     405  PrintBadPixels(MBadPixelsPix::kChargeRelErrNotValid,"Signal Rel. error too large");
     406  PrintBadPixels(MBadPixelsPix::kLoGainSaturation,"Low Gain Saturation");
     407  PrintBadPixels(MBadPixelsPix::kMeanTimeInFirstBin,"Mean Arr. Time In First Extraction Bin");
     408  PrintBadPixels(MBadPixelsPix::kMeanTimeInLast2Bins,"Mean Arr. Time In Last 2 Extraction Bins");
     409  PrintBadPixels(MBadPixelsPix::kDeviatingNumPhes,"Deviating Number of Photo-electrons");
     410  PrintBadPixels(MBadPixelsPix::kDeviatingNumPhots,"Deviating Number of Photons");
     411  PrintBadPixels(MBadPixelsPix::kHiGainOverFlow,"High-Gain Histogram Overflow");
     412  PrintBadPixels(MBadPixelsPix::kLoGainOverFlow,"Low-Gain Histogram Overflow");
     413
     414  *fLog << endl;
     415  *fLog << all << "Unreliable pixels statistics:" << endl;
     416  *fLog << endl;
     417 
     418  PrintBadPixels(MBadPixelsPix::kChargeSigmaNotValid,"Signal Sigma smaller Pedestal RMS");
     419  PrintBadPixels(MBadPixelsPix::kHiGainNotFitted    ,"High Gain Signals could not be fitted");
     420  PrintBadPixels(MBadPixelsPix::kLoGainNotFitted    ,"Low  Gain Signals could not be fitted");
     421  PrintBadPixels(MBadPixelsPix::kRelTimeNotFitted   ,"Relative Arr. Times could not be fitted");
     422  PrintBadPixels(MBadPixelsPix::kHiGainOscillating  ,"High Gain Signals Oscillation");
     423  PrintBadPixels(MBadPixelsPix::kLoGainOscillating  ,"Low  Gain Signals Oscillation");
     424  PrintBadPixels(MBadPixelsPix::kRelTimeOscillating ,"Relative Arr. Times Oscillation");
     425  PrintBadPixels(MBadPixelsPix::kDeviatingFFactor   ,"Deviating global F-Factor");
     426}
     427
     428void MBadPixelsCam::PrintBadPixels( MBadPixelsPix::UncalibratedType_t typ, const char *text) const
     429{
     430
     431
     432  *fLog << "Pixels with " << text << ": " << endl;
     433  UInt_t count = 0;
     434
    412435  for (Int_t i=0; i<GetSize(); i++)
    413436    {
    414       if ((*this)[i].IsUncalibrated(MBadPixelsPix::kChargeIsPedestal))
     437      if ((*this)[i].IsUncalibrated(typ))
    415438        {
    416439          *fLog << i << " ";
    417           count ++;
     440          count++;
    418441        }
    419442     
     
    425448    }
    426449 
    427   *fLog << endl;
    428   *fLog << count << " ChargeIsPedestal :-(" << endl;
    429   *fLog << endl;
    430 
    431   count = 0;
    432  
    433   *fLog << all << "Charge Sigma not valid:" << endl;
    434   *fLog << all << endl;
    435  
    436   for (Int_t i=0; i<GetSize(); i++)
    437     {
    438       if ((*this)[i].IsUncalibrated(MBadPixelsPix::kChargeSigmaNotValid))
    439         {
    440           *fLog << i << " ";
    441           count ++;
    442         }
    443      
    444       if (count == 0)
    445         continue;
    446      
    447       if (!(count % 25))
    448         *fLog << endl;
    449     }
    450  
    451   *fLog << endl;
    452   *fLog << count << " ChargeSigmaNotValid :-(" << endl;
    453   *fLog << endl;
    454 
    455   count = 0;
    456  
    457   *fLog << all << "Rel. Error Charge not valid:" << endl;
    458   *fLog << all << endl;
    459  
    460   for (Int_t i=0; i<GetSize(); i++)
    461     {
    462       if ((*this)[i].IsUncalibrated(MBadPixelsPix::kChargeRelErrNotValid))
    463         {
    464           *fLog << i << " ";
    465           count ++;
    466         }
    467      
    468       if (count == 0)
    469         continue;
    470      
    471       if (!(count % 25))
    472         *fLog << endl;
    473     }
    474  
    475   *fLog << endl;
    476   *fLog << count << " ChargeRelErrNotValid :-(" << endl;
    477   *fLog << endl;
    478 
    479 
    480   count = 0;
    481  
    482   *fLog << all << " Deviating number photo-electrons:" << endl;
    483   *fLog << all << endl;
    484  
    485   for (Int_t i=0; i<GetSize(); i++)
    486     {
    487       if ((*this)[i].IsUncalibrated(MBadPixelsPix::kDeviatingNumPhes))
    488         {
    489           *fLog << i << " ";
    490           count ++;
    491         }
    492      
    493       if (count == 0)
    494         continue;
    495      
    496       if (!(count % 25))
    497         *fLog << endl;
    498     }
    499  
    500   *fLog << endl;
    501   *fLog << count << " DeviatingNumPhes :-(" << endl;
    502   *fLog << endl;
    503 
    504   count = 0;
    505  
    506   *fLog << all << " Deviating F-Factor:" << endl;
    507   *fLog << all << endl;
    508  
    509   for (Int_t i=0; i<GetSize(); i++)
    510     {
    511       if ((*this)[i].IsUncalibrated(MBadPixelsPix::kDeviatingFFactor))
    512         {
    513           *fLog << i << " ";
    514           count ++;
    515         }
    516      
    517       if (count == 0)
    518         continue;
    519      
    520       if (!(count % 25))
    521         *fLog << endl;
    522     }
    523  
    524   *fLog << endl;
    525   *fLog << count << " DeviatingFFactor :-(" << endl;
    526   *fLog << endl;
    527 
     450  *fLog << Form("%3i",count) << " pixels in total " << endl;
     451  *fLog << endl;
    528452}
    529453
Note: See TracChangeset for help on using the changeset viewer.