00001 #include "StandardDefects.h" 00002 #include "DefectPrototype.h" 00003 00004 namespace SctData { 00005 00006 const DefectPrototype StandardDefects::DEAD (1, UNUSEABLE, "DEAD", "Dead channel - output always <1%%", 0.01); 00007 const DefectPrototype StandardDefects::STUCKON (2, UNUSEABLE, "STUCKON", "Dead channel - output always > 98%% occupancy", 0.98); 00008 const DefectPrototype StandardDefects::UNDER (3, DODGY, "UNDER", "Occupancy always less than 95%%", 0.95); 00009 const DefectPrototype StandardDefects::OVER (4, DODGY, "OVER", "Occupancy greater than 100%%", 1.); 00010 const DefectPrototype StandardDefects::BADFIT (5, DODGY, "BADFIT", "The data could not be fitted well - possible it has a chi2 per dof greater than: %g", 5000.); 00011 const DefectPrototype StandardDefects::LO_GAIN (9, UNUSEABLE, "LO_GAIN", "Gain is less than %g*chip average", 0.75); 00012 const DefectPrototype StandardDefects::HI_GAIN (10, UNUSEABLE, "HI_GAIN", "Gain is higher than %g*chip average", 1.25); 00013 const DefectPrototype StandardDefects::LO_OFFSET (11, UNUSEABLE, "LO_OFFSET", "Offset is less than %g", -100); 00014 const DefectPrototype StandardDefects::HI_OFFSET (12, UNUSEABLE, "HI_OFFSET", "Offset is higher than %g", 120); 00015 const DefectPrototype StandardDefects::UNBONDED (13, SERIOUS, "UNBONDED", "Noise is less than %g", 800); 00016 const DefectPrototype StandardDefects::PARTBONDED (14, SERIOUS, "PARTBONDED", "Noise is less than %g", 1100); 00017 const DefectPrototype StandardDefects::NOISY (15, SERIOUS, "NOISY", "Noise is > %g*chip average", 1.15); 00018 const DefectPrototype StandardDefects::MEAN_ERROR (16, SERIOUS, "MEAN_ERROR", "Error in the mean", 0); 00019 const DefectPrototype StandardDefects::SIG_ERROR (17, SERIOUS, "SIG_ERROR", "Error in the sigma", 0); 00020 const DefectPrototype StandardDefects::NOINIT (18, SERIOUS, "NOINIT", "Couldn't initialize fit", 0); 00021 const DefectPrototype StandardDefects::NO_HI (19, SERIOUS, "NO_HI", "High noise occupancy", 0.0005); 00022 const DefectPrototype StandardDefects::DEAD_CELL (20, SERIOUS, "DEAD_CELL","Dead cell in the pipeline",0.); 00023 const DefectPrototype StandardDefects::STUCK_CELL (21, SERIOUS, "STUCK_CELL","Stuck cell in the pipeline",0.); 00024 const DefectPrototype StandardDefects::TR_RANGE (22, UNUSEABLE, "TR_RANGE","Unusual chip trim step size",0.); 00025 const DefectPrototype StandardDefects::TR_STEP (23, DODGY, "TR_STEP","Channel trim step size different from chip",4.); 00026 const DefectPrototype StandardDefects::TR_OFFSET (24, DODGY, "TR_OFFSET","Channel trim range offset different from chip",4.); 00027 const DefectPrototype StandardDefects::TR_NOTRIM (25, UNUSEABLE, "TR_NOTRIM","Untrimmable channel",0.); 00028 const DefectPrototype StandardDefects::TOKEN (26, DODGY, "TOKEN","Direct token fails",0.); 00029 const DefectPrototype StandardDefects::RTOKEN (27, DODGY, "RTOKEN","Bypass token fails",0.); 00030 const DefectPrototype StandardDefects::TW_HI (28, DODGY, "TW_HI","Time walk too big",16.); 00031 const DefectPrototype StandardDefects::TW_LO (29, DODGY, "TW_LO","Time walk too small",5.); 00032 const DefectPrototype StandardDefects::SD_LO (30, SERIOUS, "SD_LO", "Strobe delay rise < 0 or fall < %i", 28); 00033 const DefectPrototype StandardDefects::SD_HI (31, SERIOUS, "SD_HI", "Strobe delay rise > %i or fall > 63", 35); 00034 const DefectPrototype StandardDefects::VLO_GAIN (32, UNUSEABLE, "VLO_GAIN", "Gain is less than %g*chip average", 0.3); 00035 const DefectPrototype StandardDefects::V_NOISY (33, UNUSEABLE, "V_NOISY", "Noise is > %g*chip average", 1.25); 00036 00037 const DefectPrototype StandardDefects::NOISE_SLOPE(34, DODGY, "NOISE_SLOPE", "Noise slope/chan > %g", 1.); 00038 const DefectPrototype StandardDefects::OFFSET_SLOPE(35, DODGY, "OFFSET_SLOPE", "Offset Slope/chan > %g", 0.07); 00039 const DefectPrototype StandardDefects::GAIN_SLOPE (36, DODGY, "GAIN_SLOPE", "Gain slope/chan > %g", 0.04); 00040 const DefectPrototype StandardDefects::BAD_OPE (37, DODGY, "BAD_OPE", "Occupancy per event variance/binomial variance > %g", 2.0); 00041 const DefectPrototype StandardDefects::DOUBTR_HI (38, DODGY, "DOUBTR_HI", "High double trigger noise occupancy > %g", 5.0); 00042 00043 const DefectPrototype StandardDefects::L1_COUNTER (39, SERIOUS, "L1_COUNTER", "Level 1 counter defect", 0.0); 00044 const DefectPrototype StandardDefects::BC_COUNTER (40, SERIOUS, "BC_COUNTER", "Bunch crossing counter defect", 0.0); 00045 00046 00047 }