CMS 3D CMS Logo

Functions
CaloRecHitAuxSetter Namespace Reference

Functions

constexpr void andBit (uint32_t *u, const unsigned bitnum, const bool b)
 
constexpr bool getBit (const uint32_t u, const unsigned bitnum)
 
constexpr unsigned getField (const uint32_t u, const unsigned mask, const unsigned offset)
 
constexpr void orBit (uint32_t *u, const unsigned bitnum, const bool b)
 
constexpr void setBit (uint32_t *u, const unsigned bitnum, const bool b)
 
constexpr void setField (uint32_t *u, const unsigned mask, const unsigned offset, const unsigned value)
 

Function Documentation

◆ andBit()

constexpr void CaloRecHitAuxSetter::andBit ( uint32_t *  u,
const unsigned  bitnum,
const bool  b 
)
inlineconstexpr

Definition at line 31 of file CaloRecHitAuxSetter.h.

31  {
32  if (!b) {
33  *u &= ~(1U << bitnum);
34  }
35  }

References b, and mitigatedMETSequence_cff::U.

◆ getBit()

constexpr bool CaloRecHitAuxSetter::getBit ( const uint32_t  u,
const unsigned  bitnum 
)
inlineconstexpr

◆ getField()

constexpr unsigned CaloRecHitAuxSetter::getField ( const uint32_t  u,
const unsigned  mask,
const unsigned  offset 
)
inlineconstexpr

◆ orBit()

constexpr void CaloRecHitAuxSetter::orBit ( uint32_t *  u,
const unsigned  bitnum,
const bool  b 
)
inlineconstexpr

Definition at line 25 of file CaloRecHitAuxSetter.h.

25  {
26  if (b) {
27  *u |= (1U << bitnum);
28  }
29  }

References b, and mitigatedMETSequence_cff::U.

Referenced by SimplePlan1RechitCombiner::combineAuxInfo().

◆ setBit()

constexpr void CaloRecHitAuxSetter::setBit ( uint32_t *  u,
const unsigned  bitnum,
const bool  b 
)
inlineconstexpr

Definition at line 17 of file CaloRecHitAuxSetter.h.

17  {
18  if (b) {
19  *u |= (1U << bitnum);
20  } else {
21  *u &= ~(1U << bitnum);
22  }
23  }

References b, and mitigatedMETSequence_cff::U.

◆ setField()

constexpr void CaloRecHitAuxSetter::setField ( uint32_t *  u,
const unsigned  mask,
const unsigned  offset,
const unsigned  value 
)
inlineconstexpr

Definition at line 8 of file CaloRecHitAuxSetter.h.

8  {
9  *u &= ~(mask << offset);
10  *u |= ((value & mask) << offset);
11  }

References hltrates_dqm_sourceclient-live_cfg::offset.

Referenced by SimplePlan1RechitCombiner::combineAuxInfo(), HFRecHitAuxSetter::setAux(), and HBHERecHitAuxSetter::setAux().

b
double b
Definition: hdecay.h:118
mitigatedMETSequence_cff.U
U
Definition: mitigatedMETSequence_cff.py:36
value
Definition: value.py:1
hltrates_dqm_sourceclient-live_cfg.offset
offset
Definition: hltrates_dqm_sourceclient-live_cfg.py:78