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

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

Definition at line 31 of file CaloRecHitAuxSetter.h.

References mitigatedMETSequence_cff::U.

31  {
32  if (!b) {
33  *u &= ~(1U << bitnum);
34  }
35  }
double b
Definition: hdecay.h:118
constexpr bool CaloRecHitAuxSetter::getBit ( const uint32_t  u,
const unsigned  bitnum 
)
inline
constexpr unsigned CaloRecHitAuxSetter::getField ( const uint32_t  u,
const unsigned  mask,
const unsigned  offset 
)
inline
constexpr void CaloRecHitAuxSetter::orBit ( uint32_t *  u,
const unsigned  bitnum,
const bool  b 
)
inline

Definition at line 25 of file CaloRecHitAuxSetter.h.

References mitigatedMETSequence_cff::U.

Referenced by SimplePlan1RechitCombiner::combineAuxInfo().

25  {
26  if (b) {
27  *u |= (1U << bitnum);
28  }
29  }
double b
Definition: hdecay.h:118
constexpr void CaloRecHitAuxSetter::setBit ( uint32_t *  u,
const unsigned  bitnum,
const bool  b 
)
inline

Definition at line 17 of file CaloRecHitAuxSetter.h.

References mitigatedMETSequence_cff::U.

17  {
18  if (b) {
19  *u |= (1U << bitnum);
20  } else {
21  *u &= ~(1U << bitnum);
22  }
23  }
double b
Definition: hdecay.h:118
constexpr void CaloRecHitAuxSetter::setField ( uint32_t *  u,
const unsigned  mask,
const unsigned  offset,
const unsigned  value 
)
inline