CMS 3D CMS Logo

Functions
CaloRecHitAuxSetter Namespace Reference

Functions

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

Function Documentation

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
bool CaloRecHitAuxSetter::getBit ( const uint32_t  u,
const unsigned  bitnum 
)
inline
unsigned CaloRecHitAuxSetter::getField ( const uint32_t  u,
const unsigned  mask,
const unsigned  offset 
)
inline
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
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
void CaloRecHitAuxSetter::setField ( uint32_t *  u,
const unsigned  mask,
const unsigned  offset,
const unsigned  value 
)
inline