Ignore:
Timestamp:
05/03/04 13:41:03 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r3839 r3937  
    6464// could be calibrated.
    6565//
    66 // Two additional functions yield specific calibration information:
    67 // * IsCalibrationSignalOK() asks if the extracted calibration signal showed any inconsistency
    68 // * IsCalibrationResultOK() asks if the applied calibration can be used at all.
     66// The third index (fInfo[2]) holds information about possible hardware mulfunctionning. The bits
     67// are coded in the following form:
     68// BIT(1 ): kHVNotNominal :  The HV deviates more than 3% from the nominal value.
    6969//
    7070/////////////////////////////////////////////////////////////////////////////
     
    8787//
    8888MBadPixelsPix::MBadPixelsPix(const char* name, const char* title)
    89     : fInfo(5)
     89    : fInfo(3)
    9090{
    9191    fName  = name  ? name  : "MBadPixelsPix";
    9292    fTitle = title ? title : "Container storing bad pixel information for a single pixel";
    9393
     94    fInfo[0] = 0;
    9495    fInfo[1] = 0;
     96    fInfo[2] = 0;
     97
     98    //    memset(&fInfo,0,3*sizeof(Int_t));
    9599}
    96100
     
    121125void MBadPixelsPix::Merge(const MBadPixelsPix &pix)
    122126{
    123     const Int_t n = pix.fInfo.GetSize();
    124     if (n>fInfo.GetSize())
    125         fInfo.Set(n);
    126 
    127     for (int i=0; i<n; i++)
    128         fInfo[i] |= pix.fInfo[i];
     127  const Int_t n = pix.fInfo.GetSize();
     128  if (n>fInfo.GetSize())
     129    fInfo.Set(n);
     130 
     131  for (int i=0; i<n; i++)
     132    fInfo[i] |= pix.fInfo[i];
    129133}
    130134
     
    156160
    157161/*
    158  MCalibrationCalc - valid for the result of a calibration run:
    159 
    160       3  Hi-Gain saturated, no LoGain available
    161 
    162       4  Conversion Factor HiGain - LoGain not valid
    163 
    164       5  Cannot be calibrated at all
    165       6  Cannot be fitted - calibrated using Histogram Mean and RMS
    166 
    167      */
    168 
    169 /*
    170162
    171163Hardware defects which cannot be detected automatically by software. This might be stored at least in the data-base. I think we should wait until we implement these things...
     
    182174Pixel out of L1T. (this is an important information, but not necessarily a defect, is it?)
    183175
    184 In addition here are some cases which I think can be detected by software:
    185 - no signal
    186 - wrong signal
    187 - hv problem
    188 - dc problem
    189 - Conversion Factor HiGain - LoGain not valid (what does this mean?)
    190 - No calibration possible
    191 - No fit possible - calibrated using Histogram Mean and RMS
    192 - Mean Charge smaller than PedRMS
    193 - Sigma Charge smaller than PedRMS
    194 - Calib.methods inconsistency (there are in pricipal 6 combinations... do we need 6 bits?)
    195 - Gains oscillate (what does it mean?)
    196 - Sigma  Arrival Time  bigger than  FADC window (from calib)
    197 - Mean   Arrival Time  at edge of   FADC window (from calib)
    198176*/
Note: See TracChangeset for help on using the changeset viewer.