Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 10:51:21

0001 #ifndef DataFormats_SiStripCommon_ConstantsForMonitorable_H
0002 #define DataFormats_SiStripCommon_ConstantsForMonitorable_H
0003 
0004 #include "DataFormats/SiStripCommon/interface/Constants.h"
0005 #include <string>
0006 
0007 /** 
0008     @file ConstantsForMonitorable.h
0009 
0010     @brief Constants and enumerated types for sistrip::Monitorable
0011 */
0012 
0013 namespace sistrip {
0014 
0015   // ---------- Constants ----------
0016 
0017   // misc monitorables
0018   static const char unknownMonitorable_[] = "UnknownMonitorable";
0019   static const char undefinedMonitorable_[] = "UndefinedMonitorable";
0020 
0021   // fed cabling
0022   static const char fedCablingFedId_[] = "FedId";
0023   static const char fedCablingFedCh_[] = "FedCh";
0024   static const char fedCablingAdcLevel_[] = "AdcLevel";
0025 
0026   // fast cabling
0027   static const char fastCablingDcuId_[] = "DcuId";
0028   static const char fastCablingLldCh_[] = "LldCh";
0029   static const char fastCablingHighLevel_[] = "HighLightLevel";
0030   static const char fastCablingHighRms_[] = "SpreadInHighLightLevel";
0031   static const char fastCablingLowLevel_[] = "LowLightLevel";
0032   static const char fastCablingLowRms_[] = "SpreadInLowLightLevel";
0033   static const char fastCablingAdcRange_[] = "AdcRangeInLightLevel";
0034   static const char fastCablingMax_[] = "MaximumLightLevel";
0035   static const char fastCablingMin_[] = "MinimumLightLevel";
0036   static const char fastCablingConnsPerFed_[] = "ConnectionsPerFed";
0037 
0038   // timing
0039   static const char apvTimingTime_[] = "TimeOfTickMarkEdge";
0040   static const char apvTimingMax_[] = "MaxSamplingPoint";
0041   static const char apvTimingDelay_[] = "RequiredDelayAdjustment";
0042   static const char apvTimingError_[] = "ErrorOnTickMarkEdge";
0043   static const char apvTimingBase_[] = "TickMarkBase";
0044   static const char apvTimingPeak_[] = "TickMarkPeak";
0045   static const char apvTimingHeight_[] = "TickMarkHeight";
0046 
0047   // timing
0048   static const char fedTimingTime_[] = "TimeOfTickMarkEdge";
0049   static const char fedTimingMax_[] = "MaxSamplingPoint";
0050   static const char fedTimingDelay_[] = "RequiredDelayAdjustment";
0051   static const char fedTimingError_[] = "ErrorOnTickMarkEdge";
0052   static const char fedTimingBase_[] = "TickMarkBase";
0053   static const char fedTimingPeak_[] = "TickMarkPeak";
0054   static const char fedTimingHeight_[] = "TickMarkHeight";
0055 
0056   // opto scan
0057   static const char optoScanLldBias_[] = "LldBiasSetting";
0058   static const char optoScanLldGain_[] = "LldGainSetting";
0059   static const char optoScanMeasGain_[] = "MeasuredGain";
0060   static const char optoScanZeroLight_[] = "ZeroLightLevel";
0061   static const char optoScanLinkNoise_[] = "LinkNoise";
0062   static const char optoScanBaseLiftOff_[] = "BaselineLiftOff";
0063   static const char optoScanLaserThresh_[] = "LaserThreshold";
0064   static const char optoScanTickHeight_[] = "TickHeight";
0065 
0066   // vpsp scan
0067   static const char vpspScanBothApvs_[] = "ApvVpspSettings";
0068   static const char vpspScanApv0_[] = "Apv0VpspSetting";
0069   static const char vpspScanApv1_[] = "Apv1VpspSetting";
0070   static const char vpspScanAdcLevel_[] = "BaselineLevel";
0071   static const char vpspScanDigitalHigh_[] = "DigitalHigh";
0072   static const char vpspScanDigitalLow_[] = "DigitalLow";
0073 
0074   // pedestals
0075   static const char pedestalsAllStrips_[] = "StripPedestals";
0076   static const char pedestalsMean_[] = "PedestalMean";
0077   static const char pedestalsSpread_[] = "PedestalRmsSpread";
0078   static const char pedestalsMax_[] = "PedestalMax";
0079   static const char pedestalsMin_[] = "PedestalMin";
0080 
0081   // noise
0082   static const char noiseAllStrips_[] = "StripNoise";
0083   static const char noiseMean_[] = "NoiseMean";
0084   static const char noiseSpread_[] = "NoiseRmsSpread";
0085   static const char noiseMax_[] = "NoiseMax";
0086   static const char noiseMin_[] = "NoiseMin";
0087 
0088   static const char numOfDeadStrips_[] = "NumOfDeadStrips";
0089   static const char numOfNoisy_[] = "NumOfNoisyStrips";
0090   static const char numOfBadStrips_[] = "NumOfBadStrips";
0091   static const char numOfBadADProbabStrips_[] = "NumOfBadADProbabStrips";
0092   static const char numOfBadKSProbabStrips_[] = "NumOfBadKSProbabStrips";
0093   static const char numOfBadJBProbabStrips_[] = "NumOfBadJBProbabStrips";
0094   static const char numOfBadChi2ProbabStrips_[] = "NumOfBadChi2ProbabStrips";
0095   static const char numOfBadShiftedStrips_[] = "NumOfBadShfitedStrips";
0096   static const char numOfBadLowNoiseStrips_[] = "NumOfBadLowNoiseStrips";
0097   static const char numOfBadLargeNoiseStrips_[] = "NumOfBadLargeNoiseStrips";
0098   static const char numOfBadLargeNoiseSignificanceStrips_[] = "NumOfBadLargeNoiseSignificanceStrips";
0099   static const char numOfBadTailStrips_[] = "NumOfBadTailStrips";
0100   static const char numOfBadFitStatusStrips_[] = "NumOfBadFitStatusStrips";
0101   static const char numOfBadDoublePeakStrips_[] = "NumOfBadDoublePeakStrips";
0102 
0103   static const char badStripBit_[] = "badStripBit";
0104   static const char deadStripBit_[] = "deadStripBit";
0105   static const char adProbabAllStrips_[] = "adProbabStrips";
0106   static const char ksProbabAllStrips_[] = "ksProbabStrips";
0107   static const char jbProbabAllStrips_[] = "jbProbabStrips";
0108   static const char chi2ProbabAllStrips_[] = "chi2ProbabStrips";
0109   static const char residualRMSAllStrips_[] = "residualRMSStrips";
0110   static const char residualSigmaGausAllStrips_[] = "residualSigmaGausStrips";
0111   static const char noiseSignificanceAllStrips_[] = "noiseSignificanceStrips";
0112   static const char residualMeanAllStrips_[] = "residualMeanStrips";
0113   static const char residualSkewnessAllStrips_[] = "residualSkewnessStrips";
0114   static const char residualKurtosisAllStrips_[] = "residualKurtosisStrips";
0115   static const char residualIntegralNsigmaAllStrips_[] = "residualIntegralNsigmaStrips";
0116   static const char residualIntegralAllStrips_[] = "residualIntegralStrips";
0117 
0118   // Fine Delay
0119   static const char fineDelayPos_[] = "FineDelayPosition";
0120   static const char fineDelayErr_[] = "FineDelayError";
0121 
0122   // Calibration
0123   // Calibration
0124   static const char calibrationAmplitude_[] = "CalibrationAmplitude";
0125   static const char calibrationBaseline_[] = "CalibrationBaseline";
0126   static const char calibrationTurnOn_[] = "CalibrationTurnOn";
0127   static const char calibrationRiseTime_[] = "CalibrationRiseTime";
0128   static const char calibrationDecayTime_[] = "CalibrationDecayTime";
0129   static const char calibrationPeakTime_[] = "CalibrationPeakTime";
0130   static const char calibrationUndershoot_[] = "CalibrationUndershoot";
0131   static const char calibrationTail_[] = "CalibrationTail";
0132   static const char calibrationSmearing_[] = "CalibrationSmearing";
0133   static const char calibrationChi2_[] = "CalibrationChi2";
0134 
0135   static const char calibrationAmplitudeMean_[] = "MeanCalibrationAmplitude";
0136   static const char calibrationTurnOnMean_[] = "MeanCalibrationTurnOn";
0137   static const char calibrationRiseTimeMean_[] = "MeanCalibrationRiseTime";
0138   static const char calibrationDecayTimeMean_[] = "MeanCalibrationDecayTime";
0139   static const char calibrationPeakTimeMean_[] = "MeanCalibrationPeakTime";
0140   static const char calibrationBaselineMean_[] = "MeanCalibrationBaseline";
0141   static const char calibrationUndershootMean_[] = "MeanCalibrationUndershoot";
0142   static const char calibrationTailMean_[] = "MeanCalibrationTail";
0143   static const char calibrationSmearingMean_[] = "MeanCalibrationSmearing";
0144   static const char calibrationChi2Mean_[] = "MeanCalibrationChi2";
0145 
0146   static const char calibrationAmplitudeMin_[] = "MinCalibrationAmplitude";
0147   static const char calibrationTailMin_[] = "MinCalibrationTail";
0148   static const char calibrationRiseTimeMin_[] = "MinCalibrationRiseTime";
0149   static const char calibrationDecayTimeMin_[] = "MinCalibrationDecayTime";
0150   static const char calibrationPeakTimeMin_[] = "MinCalibrationPeakTime";
0151   static const char calibrationSmearingMin_[] = "MinCalibrationSmearing";
0152   static const char calibrationTurnOnMin_[] = "MinCalibrationTurnOn";
0153   static const char calibrationUndershootMin_[] = "MinCalibrationUndershoot";
0154   static const char calibrationChi2Min_[] = "MinCalibrationChi2";
0155   static const char calibrationBaselineMin_[] = "MinCalibrationBaseline";
0156 
0157   static const char calibrationAmplitudeMax_[] = "MaxCalibrationAmplitude";
0158   static const char calibrationTailMax_[] = "MaxCalibrationTail";
0159   static const char calibrationRiseTimeMax_[] = "MaxCalibrationRiseTime";
0160   static const char calibrationDecayTimeMax_[] = "MaxCalibrationDecayTime";
0161   static const char calibrationPeakTimeMax_[] = "MaxCalibrationPeakTime";
0162   static const char calibrationSmearingMax_[] = "MaxCalibrationSmearing";
0163   static const char calibrationTurnOnMax_[] = "MaxCalibrationTurnOn";
0164   static const char calibrationUndershootMax_[] = "MaxCalibrationUndershoot";
0165   static const char calibrationChi2Max_[] = "MaxCalibrationChi2";
0166   static const char calibrationBaselineMax_[] = "MaxCalibrationBaseline";
0167 
0168   static const char calibrationAmplitudeSpread_[] = "SpreadCalibrationAmplitude";
0169   static const char calibrationTailSpread_[] = "SpreadCalibrationTail";
0170   static const char calibrationRiseTimeSpread_[] = "SpreadCalibrationRiseTime";
0171   static const char calibrationDecayTimeSpread_[] = "SpreadCalibrationDecayTime";
0172   static const char calibrationPeakTimeSpread_[] = "SpreadCalibrationPeakTime";
0173   static const char calibrationSmearingSpread_[] = "SpreadCalibrationSmearing";
0174   static const char calibrationTurnOnSpread_[] = "SpreadCalibrationTurnOn";
0175   static const char calibrationUndershootSpread_[] = "SpreadCalibrationUndershoot";
0176   static const char calibrationChi2Spread_[] = "SpreadCalibrationChi2";
0177   static const char calibrationBaselineSpread_[] = "SpreadCalibrationBaseline";
0178 
0179   static const char calibrationAmplitudeTuned_[] = "TunedCalibrationAmplitude";
0180   static const char calibrationTailTuned_[] = "TunedCalibrationTail";
0181   static const char calibrationRiseTimeTuned_[] = "TunedCalibrationRiseTime";
0182   static const char calibrationDecayTimeTuned_[] = "TunedCalibrationDecayTime";
0183   static const char calibrationPeakTimeTuned_[] = "TunedCalibrationPeakTime";
0184   static const char calibrationSmearingTuned_[] = "TunedCalibrationSmearing";
0185   static const char calibrationTurnOnTuned_[] = "TunedCalibrationTurnOn";
0186   static const char calibrationUndershootTuned_[] = "TunedCalibrationUndershoot";
0187   static const char calibrationChi2Tuned_[] = "TunedCalibrationChi2";
0188   static const char calibrationBaselineTuned_[] = "TunedCalibrationBaseline";
0189   static const char calibrationISHATuned_[] = "TunedCalibrationISHA";
0190   static const char calibrationVFSTuned_[] = "TunedCalibrationVFS";
0191   static const char calibrationISHABest_[] = "BestCalibrationISHA";
0192   static const char calibrationVFSBest_[] = "BestCalibrationVFS";
0193 
0194   // daq scope mode
0195   static const char daqScopeModeMeanSignal_[] = "DaqScopeMode_MeanSignal";
0196 
0197   // ---------- Enumerated type ----------
0198 
0199   /** Defines the monitorable for the summary histogram. */
0200   enum Monitorable {
0201     UNKNOWN_MONITORABLE = sistrip::unknown_,
0202     UNDEFINED_MONITORABLE = sistrip::invalid_,
0203 
0204     FED_CABLING_FED_ID = 1301,
0205     FED_CABLING_FED_CH = 1302,
0206     FED_CABLING_ADC_LEVEL = 1303,
0207 
0208     FAST_CABLING_DCU_ID = 2101,
0209     FAST_CABLING_LLD_CH = 2102,
0210     FAST_CABLING_HIGH_LEVEL = 2103,
0211     FAST_CABLING_LOW_LEVEL = 2104,
0212     FAST_CABLING_HIGH_RMS = 2105,
0213     FAST_CABLING_LOW_RMS = 2106,
0214     FAST_CABLING_MAX = 2107,
0215     FAST_CABLING_MIN = 2108,
0216     FAST_CABLING_CONNS_PER_FED = 2109,
0217 
0218     APV_TIMING_TIME = 501,
0219     APV_TIMING_MAX_TIME = 502,
0220     APV_TIMING_DELAY = 503,
0221     APV_TIMING_ERROR = 504,
0222     APV_TIMING_BASE = 505,
0223     APV_TIMING_PEAK = 506,
0224     APV_TIMING_HEIGHT = 507,
0225 
0226     FED_TIMING_TIME = 1201,
0227     FED_TIMING_MAX_TIME = 1202,
0228     FED_TIMING_DELAY = 1203,
0229     FED_TIMING_ERROR = 1204,
0230     FED_TIMING_BASE = 1205,
0231     FED_TIMING_PEAK = 1206,
0232     FED_TIMING_HEIGHT = 1207,
0233     OPTO_SCAN_LLD_GAIN_SETTING = 401,
0234     OPTO_SCAN_LLD_BIAS_SETTING = 402,
0235     OPTO_SCAN_MEASURED_GAIN = 403,
0236     OPTO_SCAN_ZERO_LIGHT_LEVEL = 404,
0237     OPTO_SCAN_LINK_NOISE = 405,
0238     OPTO_SCAN_BASELINE_LIFT_OFF = 406,
0239     OPTO_SCAN_LASER_THRESHOLD = 407,
0240     OPTO_SCAN_TICK_HEIGHT = 408,
0241 
0242     VPSP_SCAN_APV_SETTINGS = 1401,
0243     VPSP_SCAN_APV0_SETTING = 1402,
0244     VPSP_SCAN_APV1_SETTING = 1403,
0245     VPSP_SCAN_ADC_LEVEL = 1404,
0246     VPSP_SCAN_DIGITAL_HIGH = 1405,
0247     VPSP_SCAN_DIGITAL_LOW = 1406,
0248 
0249     PEDESTALS_ALL_STRIPS = 201,
0250     PEDESTALS_MEAN = 202,
0251     PEDESTALS_SPREAD = 203,
0252     PEDESTALS_MAX = 204,
0253     PEDESTALS_MIN = 205,
0254 
0255     NOISE_ALL_STRIPS = 206,
0256     NOISE_MEAN = 207,
0257     NOISE_SPREAD = 208,
0258     NOISE_MAX = 209,
0259     NOISE_MIN = 210,
0260 
0261     /// Bad strip
0262     NUM_OF_DEAD = 211,
0263     NUM_OF_BAD = 212,
0264     NUM_OF_NOISY = 213,
0265     NUM_OF_BAD_SHIFTED = 214,
0266     NUM_OF_BAD_LOW_NOISE = 215,
0267     NUM_OF_BAD_LARGE_NOISE = 216,
0268     NUM_OF_BAD_LARGE_SIGNIF = 217,
0269     NUM_OF_BAD_FIT_STATUS = 218,
0270     NUM_OF_BAD_AD_PROBAB = 219,
0271     NUM_OF_BAD_KS_PROBAB = 220,
0272     NUM_OF_BAD_JB_PROBAB = 221,
0273     NUM_OF_BAD_CHI2_PROBAB = 222,
0274     NUM_OF_BAD_TAIL = 223,
0275     NUM_OF_BAD_DOUBLE_PEAK = 224,
0276     //
0277     BAD_STRIP_BIT_ALL_STRIPS = 225,
0278     DEAD_STRIP_BIT_ALL_STRIPS = 226,
0279     AD_PROBAB_ALL_STRIPS = 227,
0280     KS_PROBAB_ALL_STRIPS = 228,
0281     JB_PROBAB_ALL_STRIPS = 229,
0282     CHI2_PROBAB_ALL_STRIPS = 230,
0283     RESIDUAL_RMS_ALL_STRIPS = 231,
0284     RESIDUAL_GAUS_ALL_STRIPS = 232,
0285     NOISE_SIGNIFICANCE_ALL_STRIPS = 233,
0286     RESIDUAL_MEAN_ALL_STRIPS = 234,
0287     RESIDUAL_SKEWNESS_ALL_STRIPS = 235,
0288     RESIDUAL_KURTOSIS_ALL_STRIPS = 236,
0289     RESIDUAL_INTEGRALNSIGMA_ALL_STRIPS = 237,
0290     RESIDUAL_INTEGRAL_ALL_STRIPS = 238,
0291 
0292     FINE_DELAY_POS = 601,
0293     FINE_DELAY_ERROR = 602,
0294 
0295     CALIBRATION_AMPLITUDE_MEAN = 701,
0296     CALIBRATION_BASELINE_MEAN = 702,
0297     CALIBRATION_TURNON_MEAN = 703,
0298     CALIBRATION_RISETIME_MEAN = 704,
0299     CALIBRATION_DECAYTIME_MEAN = 705,
0300     CALIBRATION_PEAKTIME_MEAN = 706,
0301     CALIBRATION_UNDERSHOOT_MEAN = 707,
0302     CALIBRATION_TAIL_MEAN = 708,
0303     CALIBRATION_SMEARING_MEAN = 709,
0304     CALIBRATION_CHI2_MEAN = 710,
0305 
0306     CALIBRATION_AMPLITUDE_ALL_STRIPS = 711,
0307     CALIBRATION_BASELINE_ALL_STRIPS = 712,
0308     CALIBRATION_TURNON_ALL_STRIPS = 713,
0309     CALIBRATION_RISETIME_ALL_STRIPS = 714,
0310     CALIBRATION_DECAYTIME_ALL_STRIPS = 715,
0311     CALIBRATION_PEAKTIME_ALL_STRIPS = 716,
0312     CALIBRATION_UNDERSHOOT_ALL_STRIPS = 717,
0313     CALIBRATION_TAIL_ALL_STRIPS = 718,
0314     CALIBRATION_SMEARING_ALL_STRIPS = 719,
0315     CALIBRATION_CHI2_ALL_STRIPS = 720,
0316 
0317     CALIBRATION_AMPLITUDE_MIN = 721,
0318     CALIBRATION_BASELINE_MIN = 722,
0319     CALIBRATION_TURNON_MIN = 723,
0320     CALIBRATION_RISETIME_MIN = 724,
0321     CALIBRATION_DECAYTIME_MIN = 725,
0322     CALIBRATION_PEAKTIME_MIN = 726,
0323     CALIBRATION_UNDERSHOOT_MIN = 727,
0324     CALIBRATION_TAIL_MIN = 728,
0325     CALIBRATION_SMEARING_MIN = 729,
0326     CALIBRATION_CHI2_MIN = 730,
0327 
0328     CALIBRATION_AMPLITUDE_MAX = 731,
0329     CALIBRATION_BASELINE_MAX = 732,
0330     CALIBRATION_TURNON_MAX = 733,
0331     CALIBRATION_RISETIME_MAX = 734,
0332     CALIBRATION_DECAYTIME_MAX = 735,
0333     CALIBRATION_PEAKTIME_MAX = 736,
0334     CALIBRATION_UNDERSHOOT_MAX = 737,
0335     CALIBRATION_TAIL_MAX = 738,
0336     CALIBRATION_SMEARING_MAX = 739,
0337     CALIBRATION_CHI2_MAX = 740,
0338 
0339     CALIBRATION_AMPLITUDE_SPREAD = 741,
0340     CALIBRATION_BASELINE_SPREAD = 742,
0341     CALIBRATION_TURNON_SPREAD = 743,
0342     CALIBRATION_RISETIME_SPREAD = 744,
0343     CALIBRATION_DECAYTIME_SPREAD = 745,
0344     CALIBRATION_PEAKTIME_SPREAD = 746,
0345     CALIBRATION_UNDERSHOOT_SPREAD = 747,
0346     CALIBRATION_TAIL_SPREAD = 748,
0347     CALIBRATION_SMEARING_SPREAD = 749,
0348     CALIBRATION_CHI2_SPREAD = 750,
0349 
0350     CALIBRATION_AMPLITUDE_TUNED = 751,
0351     CALIBRATION_BASELINE_TUNED = 752,
0352     CALIBRATION_TURNON_TUNED = 753,
0353     CALIBRATION_RISETIME_TUNED = 754,
0354     CALIBRATION_DECAYTIME_TUNED = 755,
0355     CALIBRATION_PEAKTIME_TUNED = 756,
0356     CALIBRATION_UNDERSHOOT_TUNED = 757,
0357     CALIBRATION_TAIL_TUNED = 758,
0358     CALIBRATION_SMEARING_TUNED = 759,
0359     CALIBRATION_CHI2_TUNED = 760,
0360     CALIBRATION_ISHA_TUNED = 761,
0361     CALIBRATION_VFS_TUNED = 762,
0362     CALIBRATION_ISHA_BEST = 763,
0363     CALIBRATION_VFS_BEST = 764,
0364 
0365     DAQ_SCOPE_MODE_MEAN_SIGNAL = 1501
0366   };
0367 
0368 }  // namespace sistrip
0369 
0370 #endif  // DataFormats_SiStripCommon_ConstantsForMonitorable_H