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
HcalCaloFlagLabels::HBHETS4TS5Noise
Definition: HcalCaloFlagLabels.h:25
HcalCaloFlagLabels::TimingErrorBit
Definition: HcalCaloFlagLabels.h:52
HcalCaloFlagLabels::TimingSubtractedBit
Definition: HcalCaloFlagLabels.h:50
HcalCaloFlagLabels::AddedSimHcalNoise
Definition: HcalCaloFlagLabels.h:57
HcalCaloFlagLabels::HFTimingTrustBits
Definition: HcalCaloFlagLabels.h:32
HcalCaloFlagLabels::HBHETimingShapedCutsBits
Definition: HcalCaloFlagLabels.h:20
HcalCaloFlagLabels::UserDefinedBit0
Definition: HcalCaloFlagLabels.h:59
HcalCaloFlagLabels::HFS8S1Ratio
Definition: HcalCaloFlagLabels.h:40
HcalCaloFlagLabels::HSCP_FracLeader
Definition: HcalCaloFlagLabels.h:16
HcalCaloFlagLabels::ZDCBit
Definition: HcalCaloFlagLabels.h:44
HcalCaloFlagLabels::HOStatusFlag
HOStatusFlag
Definition: HcalCaloFlagLabels.h:34
HcalCaloFlagLabels::HSCP_R1R2
Definition: HcalCaloFlagLabels.h:15
HcalCaloFlagLabels::HSCP_ExpFit
Definition: HcalCaloFlagLabels.h:18
HcalCaloFlagLabels::CommonFlag
CommonFlag
Definition: HcalCaloFlagLabels.h:49
HcalCaloFlagLabels::ADCSaturationBit
Definition: HcalCaloFlagLabels.h:53
HcalCaloFlagLabels::HBHESpikeNoise
Definition: HcalCaloFlagLabels.h:23
HcalCaloFlagLabels::HFStatusFlag
HFStatusFlag
Definition: HcalCaloFlagLabels.h:36
HcalCaloFlagLabels::HFDigiTime
Definition: HcalCaloFlagLabels.h:38
HcalCaloFlagLabels::ZDCStatusFlag
ZDCStatusFlag
Definition: HcalCaloFlagLabels.h:44
HcalCaloFlagLabels::HBHEIsolatedNoise
Definition: HcalCaloFlagLabels.h:21
HcalCaloFlagLabels::HBHEHpdHitMultiplicity
Definition: HcalCaloFlagLabels.h:13
HcalCaloFlagLabels::HBHEOOTPU
Definition: HcalCaloFlagLabels.h:28
HcalCaloFlagLabels::HSCP_OuterEnergy
Definition: HcalCaloFlagLabels.h:17
HcalCaloFlagLabels::HBHETimingTrustBits
Definition: HcalCaloFlagLabels.h:19
HcalCaloFlagLabels
Definition: HcalCaloFlagLabels.h:10
HcalCaloFlagLabels::HBHETriangleNoise
Definition: HcalCaloFlagLabels.h:24
HcalCaloFlagLabels::HBHENegativeNoise
Definition: HcalCaloFlagLabels.h:26
HFTimingTrustFlag
Definition: HFTimingTrustFlag.h:14
HcalCaloFlagLabels::HOBit
Definition: HcalCaloFlagLabels.h:34
HcalSubdetector.h
HcalCaloFlagLabels::HFInTimeWindow
Definition: HcalCaloFlagLabels.h:39
HcalCaloFlagLabels::HBHEPulseFitBit
Definition: HcalCaloFlagLabels.h:27
HcalCaloFlagLabels::Fraction2TS
Definition: HcalCaloFlagLabels.h:54
HcalCaloFlagLabels::HFLongShort
Definition: HcalCaloFlagLabels.h:37
HcalCaloFlagLabels::PresampleADC
Definition: HcalCaloFlagLabels.h:55
HcalCaloFlagLabels::HBHEStatusFlag
HBHEStatusFlag
Definition: HcalCaloFlagLabels.h:12
HcalCaloFlagLabels::HBHEPulseShape
Definition: HcalCaloFlagLabels.h:14
HcalCaloFlagLabels::CalibrationFlag
CalibrationFlag
Definition: HcalCaloFlagLabels.h:46
HcalCaloFlagLabels::HFPET
Definition: HcalCaloFlagLabels.h:41
HcalCaloFlagLabels::TimingAddedBit
Definition: HcalCaloFlagLabels.h:51
HcalCaloFlagLabels::CalibrationBit
Definition: HcalCaloFlagLabels.h:46
HcalCaloFlagLabels::HBHEFlatNoise
Definition: HcalCaloFlagLabels.h:22