CMS 3D CMS Logo

HcalCaloFlagLabels.h
Go to the documentation of this file.
1 #ifndef DataFormats_METReco_HcalCaloFlagLabels_h
2 #define DataFormats_METReco_HcalCaloFlagLabels_h
3 
5 #include <string>
6 
7 // Create alias names for all status bits
8 // These aliases are valid for only the _current release_
9 // Use the HcalCaloFlagTool for full interpretation
10 namespace HcalCaloFlagLabels {
11  //subdetector-specific bits defined here (bits 0-15, 27, 29-30)
15  HSCP_R1R2 = 2,
19  HBHETimingTrustBits = 6, // 2-bit counter; not yet in use
20  HBHETimingShapedCutsBits = 8, // 3-bit counter
28  HBHEOOTPU = 30
29 
30  };
31 
33 
34  enum HOStatusFlag { HOBit = 0 };
35 
36  enum HFStatusFlag {
39  HFInTimeWindow = 2, // requires hit be within certain time window
41  HFPET = 4
42  };
43 
44  enum ZDCStatusFlag { ZDCBit = 0 };
45 
47 
48  // Bit definitions that apply to all subdetectors (bits 16-31)
49  enum CommonFlag {
50  TimingSubtractedBit = 16, // latency shift correction, recovered
51  TimingAddedBit = 17, // latency shift correction, recovered
52  TimingErrorBit = 18, // latency shift error, unrecovered
54  Fraction2TS = 20, // should deprecate this at some point
55  PresampleADC = 20, // uses 7 bits to store ADC from presample
56  // 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
58  // The following bits are all user-defined; reverse-order them so that UserDefinedBit0 will be the last removed
60  };
61 
62 } // namespace HcalCaloFlagLabels
63 
64 #endif //DataFormats_METReco_HcalCaloFlagLabels_h