|
|
Go to the documentation of this file.
18 m_inputLeafCards(leafCards),
19 m_inputEx(MAX_LEAF_CARDS),
20 m_inputEy(MAX_LEAF_CARDS),
21 m_inputEt(MAX_LEAF_CARDS),
22 m_inputHt(MAX_LEAF_CARDS),
36 edm::LogWarning(
"L1GctSetupError") <<
"L1GctWheelEnergyFpga::L1GctWheelEnergyFpga() : Wheel Energy Fpga ID "
37 <<
m_id <<
" has been incorrectly constructed!\n"
38 <<
"ID number should be 0 or 1.\n";
45 edm::LogWarning(
"L1GctSetupError") <<
"L1GctWheelEnergyFpga::L1GctWheelEnergyFpga() : Wheel Energy Fpga ID "
46 <<
m_id <<
" has been incorrectly constructed!\n"
47 <<
"This class needs " <<
MAX_LEAF_CARDS <<
" leaf card pointers, yet only "
56 edm::LogWarning(
"L1GctSetupError") <<
"L1GctWheelEnergyFpga::L1GctWheelEnergyFpga() : Wheel Energy Fpga ID "
57 <<
m_id <<
" has been incorrectly constructed!\n"
58 <<
"Input Leaf card pointer " <<
i <<
" has not been set!\n";
63 edm::LogError(
"L1GctSetupError") <<
"L1GctWheelEnergyFpga has been incorrectly constructed";
70 os <<
"===L1GctWheelEnergyFPGA===" << endl;
71 os <<
"ID : " << fpga.
m_id << endl;
76 os <<
"Input Ex " << endl;
80 os <<
"Input Ey " << endl;
84 os <<
"Input Et " << endl;
88 os <<
"Input Ht " << endl;
164 std::vector<L1GctInternEtSum>
result;
168 static_cast<int16_t>(
bx -
bxMin())));
171 static_cast<int16_t>(
bx -
bxMin())));
174 static_cast<int16_t>(
bx -
bxMin())));
177 static_cast<int16_t>(
bx -
bxMin())));
ostream & operator<<(ostream &os, const L1GctWheelEnergyFpga &fpga)
void setValue(unsigned value)
Set value from unsigned.
static L1GctInternEtSum fromEmulatorMissEtxOrEty(int missEtxOrEty, bool overFlow, int16_t bx)
std::vector< L1GctInternEtSum > getInternalEtSums() const
get the Et sums in internal component format
Pipeline< etComponentType > m_outputEyPipe
std::vector< L1GctJetLeafCard * > m_inputLeafCards
the jet leaf card
Log< level::Warning, false > LogWarning
static const unsigned int MAX_LEAF_CARDS
Max number of leaf card pointers.
void setInputEnergy(unsigned i, int ex, int ey, unsigned et, unsigned ht)
set input data; not used in normal operation
~L1GctWheelEnergyFpga() override
Destructor.
Pipeline< etTotalType > m_outputEtPipe
etComponentType m_outputEx
output data
void process() override
process the data, fill output buffers
static L1GctInternEtSum fromEmulatorTotalEtOrHt(unsigned totEtOrHt, bool overFlow, int16_t bx)
bool m_setupOk
check the setup
Emulates the energy summing on a GCT Wheel card.
std::vector< etComponentType > m_inputEx
the input components from each input card
bool m_verbose
Flag to control output messages.
int bxMin() const
Support for multiple beam crossing operation.
std::vector< etTotalType > m_inputEt
Log< level::Error, false > LogError
std::vector< etComponentType > m_inputEy
etComponentType m_outputEy
static const unsigned int MAX_LEAF_CARDS
Max number of leaf card pointers.
L1GctWheelEnergyFpga(int id, const std::vector< L1GctJetLeafCard * > &leafCards)
Constructor, needs the Leaf cards to be set up first. id should be 0 or 1.
Pipeline< etComponentType > m_outputExPipe
record the output data history
void reset()
reset value and overflow to zero
bool overFlow() const
access overflow
std::vector< etHadType > m_inputHt
void fetchInput() override
get input data from sources; this is the standard way to provide input
void resetProcessor() override
Separate reset methods for the processor itself and any data stored in pipelines.
Pipeline< etHadType > m_outputHtPipe
ABC for a GCT trigger data processing unit.
void resetPipelines() override
void reset()
reset value and overflow to zero