Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:44

0001 #ifndef DataFormats_METReco_HcalCaloFlagLabels_h
0002 #define DataFormats_METReco_HcalCaloFlagLabels_h
0003 
0004 #include "DataFormats/HcalDetId/interface/HcalSubdetector.h"
0005 #include <string>
0006 
0007 // Create alias names for all status bits
0008 // These aliases are valid for only the _current release_
0009 // Use the HcalCaloFlagTool for full interpretation
0010 namespace HcalCaloFlagLabels {
0011   //subdetector-specific bits defined here (bits 0-15, 27, 29-30)
0012   enum HBHEStatusFlag {
0013     HBHEHpdHitMultiplicity = 0,
0014     HBHEPulseShape = 1,
0015     HSCP_R1R2 = 2,
0016     HSCP_FracLeader = 3,
0017     HSCP_OuterEnergy = 4,
0018     HSCP_ExpFit = 5,
0019     HBHETimingTrustBits = 6,       // 2-bit counter; not yet in use
0020     HBHETimingShapedCutsBits = 8,  // 3-bit counter
0021     HBHEIsolatedNoise = 11,
0022     HBHEFlatNoise = 12,
0023     HBHESpikeNoise = 13,
0024     HBHETriangleNoise = 14,
0025     HBHETS4TS5Noise = 15,
0026     HBHENegativeNoise = 27,
0027     HBHEPulseFitBit = 29,
0028     HBHEOOTPU = 30
0029 
0030   };
0031 
0032   enum HFTimingTrustFlag { HFTimingTrustBits = 6 };
0033 
0034   enum HOStatusFlag { HOBit = 0 };
0035 
0036   enum HFStatusFlag {
0037     HFLongShort = 0,
0038     HFDigiTime = 1,
0039     HFInTimeWindow = 2,  // requires hit be within certain time window
0040     HFS8S1Ratio = 3,
0041     HFPET = 4
0042   };
0043 
0044   enum ZDCStatusFlag { ZDCBit = 0 };
0045 
0046   enum CalibrationFlag { CalibrationBit = 0 };
0047 
0048   // Bit definitions that apply to all subdetectors (bits 16-31)
0049   enum CommonFlag {
0050     TimingSubtractedBit = 16,  // latency shift correction, recovered
0051     TimingAddedBit = 17,       // latency shift correction, recovered
0052     TimingErrorBit = 18,       // latency shift error, unrecovered
0053     ADCSaturationBit = 19,
0054     Fraction2TS = 20,   // should deprecate this at some point
0055     PresampleADC = 20,  // uses 7 bits to store ADC from presample
0056     // This bit is not yet in use (as of March 2012), but can be used to mark sim hits to which noise has been intentionally added
0057     AddedSimHcalNoise = 28,
0058     // The following bits are all user-defined; reverse-order them so that UserDefinedBit0 will be the last removed
0059     UserDefinedBit0 = 31
0060   };
0061 
0062 }  // namespace HcalCaloFlagLabels
0063 
0064 #endif  //DataFormats_METReco_HcalCaloFlagLabels_h