CMS 3D CMS Logo

HBHERecHitAuxSetter.h
Go to the documentation of this file.
1 #ifndef DataFormats_HcalRecHit_HBHERecHitAuxSetter_h_
2 #define DataFormats_HcalRecHit_HBHERecHitAuxSetter_h_
3 
6 
7 //
8 // Set rechit "auxiliary words" for the Phase 1 HBHE reco.
9 //
10 // The standars CaloRecHit "aux" word contains ADC values 0-3.
11 //
12 // The "auxHBHE" word of HBHERecHit contains ADC values 4-7.
13 //
14 // The "auxPhase1" word of HBHERecHit contains ADC values 8-9
15 // and other info, as specified by the masks and offsets below.
16 //
18 {
19  static const unsigned MASK_ADC = 0xffff;
20  static const unsigned OFF_ADC = 0;
21 
22  // How many ADC values are actually stored
23  static const unsigned MASK_NSAMPLES = 0xf;
24  static const unsigned OFF_NSAMPLES = 16;
25 
26  // Which ADC corresponds to the sample of interest.
27  static const unsigned MASK_SOI = 0xf;
28  static const unsigned OFF_SOI = 20;
29 
30  // CAPID for the sample of interest.
31  static const unsigned MASK_CAPID = 0x3;
32  static const unsigned OFF_CAPID = 24;
33 
34  // Various status bits (pack bools from HBHEChannelInfo)
35  static const unsigned OFF_TDC_TIME = 26;
36  static const unsigned OFF_DROPPED = 27;
37  static const unsigned OFF_LINK_ERR = 28;
38  static const unsigned OFF_CAPID_ERR = 29;
39 
40  // Flag identifying combined "Plan 1" rechits
41  static const unsigned OFF_COMBINED = 30;
42 
43  // Main function for setting the aux words.
44  static void setAux(const HBHEChannelInfo& info,
45  HBHERecHit* rechit);
46 };
47 
48 #endif // DataFormats_HcalRecHit_HBHERecHitAuxSetter_h_
static const TGPicture * info(bool iBackgroundIsBlack)
static const unsigned MASK_NSAMPLES
static const unsigned OFF_SOI
static const unsigned MASK_CAPID
static const unsigned OFF_NSAMPLES
static const unsigned OFF_DROPPED
static const unsigned OFF_CAPID
static const unsigned OFF_TDC_TIME
static const unsigned OFF_CAPID_ERR
static const unsigned OFF_LINK_ERR
static const unsigned OFF_ADC
static const unsigned MASK_ADC
static const unsigned MASK_SOI
static void setAux(const HBHEChannelInfo &info, HBHERecHit *rechit)
static const unsigned OFF_COMBINED