Emulates the energy summing on a GCT Wheel card. More...
#include <L1GctWheelEnergyFpga.h>
Public Types | |
typedef L1GctTwosComplement < L1GctInternEtSum::kMissExOrEyNBits > | etComponentType |
typedef L1GctUnsignedInt < L1GctInternEtSum::kTotEtOrHtNBits > | etHadType |
typedef L1GctUnsignedInt < L1GctInternEtSum::kTotEtOrHtNBits > | etTotalType |
typedefs for energy values in fixed numbers of bits More... | |
enum | maxValues { etTotalMaxValue = L1GctInternEtSum::kTotEtOrHtMaxValue, htTotalMaxValue = L1GctInternEtSum::kTotEtOrHtMaxValue } |
Public Member Functions | |
virtual void | fetchInput () |
get input data from sources; this is the standard way to provide input More... | |
etTotalType | getInputEt (unsigned leafnum) const |
get input Et value from a Leaf card (0-2) More... | |
etComponentType | getInputEx (unsigned leafnum) const |
get input Ex value from a Leaf card (0-2) More... | |
etComponentType | getInputEy (unsigned leafnum) const |
get input Ey value from a Leaf card (0-2) More... | |
L1GctJetLeafCard * | getinputLeafCard (unsigned leafnum) const |
provide access to input Leaf card pointer (0-2) More... | |
std::vector< L1GctInternEtSum > | getInternalEtSums () const |
get the Et sums in internal component format More... | |
etTotalType | getOutputEt () const |
get output Et value More... | |
etComponentType | getOutputEx () const |
get output Ex value More... | |
etComponentType | getOutputEy () const |
get output Ey value More... | |
etHadType | getOutputHt () const |
get the output Ht More... | |
etHadType | inputHt (unsigned leafnum) const |
get input Ht value from a Leaf card (0-2) More... | |
L1GctWheelEnergyFpga (int id, const std::vector< L1GctJetLeafCard * > &leafCards) | |
Constructor, needs the Leaf cards to be set up first. id should be 0 or 1. More... | |
virtual void | process () |
process the data, fill output buffers More... | |
void | setInputEnergy (unsigned i, int ex, int ey, unsigned et, unsigned ht) |
set input data; not used in normal operation More... | |
bool | setupOk () const |
check the setup More... | |
~L1GctWheelEnergyFpga () | |
Destructor. More... | |
Public Member Functions inherited from L1GctProcessor | |
L1GctProcessor () | |
void | reset () |
complete reset of processor More... | |
void | setBxRange (const int firstBx, const int numberOfBx) |
define the bunch crossing range to process More... | |
void | setNextBx (const int bxnum) |
clear input data buffers and process a new bunch crossing More... | |
void | setTerse () |
bool | setupOk () const |
Method to check the setup for this processor. Returns true by default. More... | |
void | setVerbose () |
control output messages More... | |
virtual | ~L1GctProcessor () |
Static Public Attributes | |
static const unsigned int | MAX_LEAF_CARDS = L1GctWheelJetFpga::MAX_LEAF_CARDS |
Max number of leaf card pointers. More... | |
Protected Member Functions | |
virtual void | resetPipelines () |
virtual void | resetProcessor () |
Separate reset methods for the processor itself and any data stored in pipelines. More... | |
virtual void | setupObjects () |
Initialise inputs with null objects for the correct bunch crossing if required. More... | |
Protected Member Functions inherited from L1GctProcessor | |
int | bxAbs () const |
int | bxMax () const |
int | bxMin () const |
Support for multiple beam crossing operation. More... | |
int | bxRel () const |
int | numOfBx () const |
Private Attributes | |
int | m_id |
algo ID More... | |
std::vector< etTotalType > | m_inputEt |
std::vector< etComponentType > | m_inputEx |
the input components from each input card More... | |
std::vector< etComponentType > | m_inputEy |
std::vector< etHadType > | m_inputHt |
std::vector< L1GctJetLeafCard * > | m_inputLeafCards |
the jet leaf card More... | |
etTotalType | m_outputEt |
Pipeline< etTotalType > | m_outputEtPipe |
etComponentType | m_outputEx |
output data More... | |
Pipeline< etComponentType > | m_outputExPipe |
record the output data history More... | |
etComponentType | m_outputEy |
Pipeline< etComponentType > | m_outputEyPipe |
etHadType | m_outputHt |
Pipeline< etHadType > | m_outputHtPipe |
bool | m_setupOk |
check the setup More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const L1GctWheelEnergyFpga &fpga) |
Overload << operator. More... | |
Additional Inherited Members | |
Protected Attributes inherited from L1GctProcessor | |
bool | m_verbose |
Flag to control output messages. More... | |
Emulates the energy summing on a GCT Wheel card.
This class carries out the summing of total Et, and missing Et components Ex and Ey, for a single Wheel. The inputs come from the three Leaf cards and the outputs are sent to the L1GctGlobalEnergyAlgos class.
Definition at line 30 of file L1GctWheelEnergyFpga.h.
typedef L1GctTwosComplement< L1GctInternEtSum::kMissExOrEyNBits > L1GctWheelEnergyFpga::etComponentType |
Definition at line 36 of file L1GctWheelEnergyFpga.h.
Definition at line 35 of file L1GctWheelEnergyFpga.h.
typedefs for energy values in fixed numbers of bits
Definition at line 34 of file L1GctWheelEnergyFpga.h.
L1GctWheelEnergyFpga::L1GctWheelEnergyFpga | ( | int | id, |
const std::vector< L1GctJetLeafCard * > & | leafCards | ||
) |
Constructor, needs the Leaf cards to be set up first. id should be 0 or 1.
Definition at line 15 of file L1GctWheelEnergyFpga.cc.
L1GctWheelEnergyFpga::~L1GctWheelEnergyFpga | ( | ) |
Destructor.
Definition at line 66 of file L1GctWheelEnergyFpga.cc.
|
virtual |
get input data from sources; this is the standard way to provide input
Implements L1GctProcessor.
Definition at line 129 of file L1GctWheelEnergyFpga.cc.
|
inline |
get input Et value from a Leaf card (0-2)
Definition at line 71 of file L1GctWheelEnergyFpga.h.
References m_inputEt.
|
inline |
get input Ex value from a Leaf card (0-2)
Definition at line 67 of file L1GctWheelEnergyFpga.h.
References m_inputEx.
|
inline |
get input Ey value from a Leaf card (0-2)
Definition at line 69 of file L1GctWheelEnergyFpga.h.
References m_inputEy.
|
inline |
provide access to input Leaf card pointer (0-2)
Definition at line 64 of file L1GctWheelEnergyFpga.h.
References m_inputLeafCards.
std::vector< L1GctInternEtSum > L1GctWheelEnergyFpga::getInternalEtSums | ( | ) | const |
get the Et sums in internal component format
Definition at line 175 of file L1GctWheelEnergyFpga.cc.
|
inline |
|
inline |
get output Ex value
Definition at line 76 of file L1GctWheelEnergyFpga.h.
References m_outputEx.
|
inline |
|
inline |
|
inline |
get input Ht value from a Leaf card (0-2)
Definition at line 73 of file L1GctWheelEnergyFpga.h.
References m_inputHt.
|
virtual |
process the data, fill output buffers
Implements L1GctProcessor.
Definition at line 142 of file L1GctWheelEnergyFpga.cc.
|
protectedvirtual |
Implements L1GctProcessor.
Definition at line 121 of file L1GctWheelEnergyFpga.cc.
|
protectedvirtual |
Separate reset methods for the processor itself and any data stored in pipelines.
Implements L1GctProcessor.
Definition at line 107 of file L1GctWheelEnergyFpga.cc.
void L1GctWheelEnergyFpga::setInputEnergy | ( | unsigned | i, |
int | ex, | ||
int | ey, | ||
unsigned | et, | ||
unsigned | ht | ||
) |
set input data; not used in normal operation
set input data
Definition at line 162 of file L1GctWheelEnergyFpga.cc.
|
inlineprotectedvirtual |
Initialise inputs with null objects for the correct bunch crossing if required.
Implements L1GctProcessor.
Definition at line 97 of file L1GctWheelEnergyFpga.h.
|
inline |
|
friend |
Overload << operator.
|
private |
algo ID
Definition at line 103 of file L1GctWheelEnergyFpga.h.
|
private |
Definition at line 111 of file L1GctWheelEnergyFpga.h.
Referenced by getInputEt().
|
private |
the input components from each input card
Definition at line 109 of file L1GctWheelEnergyFpga.h.
Referenced by getInputEx().
|
private |
Definition at line 110 of file L1GctWheelEnergyFpga.h.
Referenced by getInputEy().
|
private |
Definition at line 112 of file L1GctWheelEnergyFpga.h.
Referenced by inputHt().
|
private |
the jet leaf card
Definition at line 106 of file L1GctWheelEnergyFpga.h.
Referenced by getinputLeafCard().
|
private |
Definition at line 117 of file L1GctWheelEnergyFpga.h.
Referenced by getOutputEt().
|
private |
Definition at line 126 of file L1GctWheelEnergyFpga.h.
|
private |
|
private |
record the output data history
Definition at line 124 of file L1GctWheelEnergyFpga.h.
|
private |
Definition at line 116 of file L1GctWheelEnergyFpga.h.
Referenced by getOutputEy().
|
private |
Definition at line 125 of file L1GctWheelEnergyFpga.h.
|
private |
Definition at line 118 of file L1GctWheelEnergyFpga.h.
Referenced by getOutputHt().
Definition at line 127 of file L1GctWheelEnergyFpga.h.
|
private |
|
static |
Max number of leaf card pointers.
Definition at line 44 of file L1GctWheelEnergyFpga.h.