#include <HFRecHitAuxSetter.h>
Definition at line 10 of file HFRecHitAuxSetter.h.
◆ setAux()
void HFRecHitAuxSetter::setAux |
( |
const HFPreRecHit & |
prehit, |
|
|
const unsigned |
anodeStates[2], |
|
|
unsigned |
soiPhase, |
|
|
HFRecHit * |
rechit |
|
) |
| |
|
static |
Definition at line 9 of file HFRecHitAuxSetter.cc.
15 const int wantedPhase = u_soiPhase < 2
U ? u_soiPhase : 2
U;
17 for (
unsigned ianode = 0; ianode < 2; ++ianode) {
21 const int nRaw = anodeInfo->
nRaw();
22 const int soiStored = anodeInfo->
soi();
23 if (soiStored < nRaw) {
30 if (soiStored > wantedPhase)
31 shift = soiStored - wantedPhase;
32 if (
shift + nStore > nRaw)
33 shift = nRaw - nStore;
37 for (
int iadc = 0; iadc < nStore; ++iadc) {
38 const int istored = iadc +
shift;
41 if (istored == soiStored)
51 "Possible states enum must fit into the bit field");
References printConversionInfo::aux, HFPreRecHit::getHFQIE10Info(), HFQIE10Info::getRaw(), MASK_CAPID, MASK_SOI, MASK_STATUS, HFAnodeStatus::N_POSSIBLE_STATES, HFQIE10Info::nRaw(), OFF_CAPID, OFF_SOI, OFF_STATUS, CaloRecHit::setAux(), HFRecHit::setAuxHF(), CaloRecHitAuxSetter::setField(), edm::shift, HFQIE10Info::soi(), and mitigatedMETSequence_cff::U.
Referenced by HFSimpleTimeCheck::reconstruct().
◆ MASK_ADC
const unsigned HFRecHitAuxSetter::MASK_ADC = 0xffffff |
|
static |
◆ MASK_CAPID
const unsigned HFRecHitAuxSetter::MASK_CAPID = 0x3 |
|
static |
◆ MASK_SOI
const unsigned HFRecHitAuxSetter::MASK_SOI = 0x3 |
|
static |
◆ MASK_STATUS
const unsigned HFRecHitAuxSetter::MASK_STATUS = 0xf |
|
static |
◆ OFF_ADC
const unsigned HFRecHitAuxSetter::OFF_ADC = 0 |
|
static |
◆ OFF_CAPID
const unsigned HFRecHitAuxSetter::OFF_CAPID = 26 |
|
static |
◆ OFF_SOI
const unsigned HFRecHitAuxSetter::OFF_SOI = 24 |
|
static |
◆ OFF_STATUS
const unsigned HFRecHitAuxSetter::OFF_STATUS = 28 |
|
static |