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 23 of file CaloRecHitAuxSetter.h.

References mitigatedMETSequence_cff::U.

24  {if (!b) {*u &= ~(1U << bitnum);}}
double b
Definition: hdecay.h:120
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 20 of file CaloRecHitAuxSetter.h.

References mitigatedMETSequence_cff::U.

Referenced by SimplePlan1RechitCombiner::combineAuxInfo().

21  {if (b) {*u |= (1U << bitnum);}}
double b
Definition: hdecay.h:120
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.

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