Emulates a leaf card programmed for electron sorting. More...
#include <L1GctEmLeafCard.h>
Public Member Functions | |
void | fetchInput () override |
fetch input data More... | |
L1GctElectronSorter * | getIsoElectronSorterU1 () |
L1GctElectronSorter * | getIsoElectronSorterU2 () |
L1GctElectronSorter * | getNonIsoElectronSorterU1 () |
L1GctElectronSorter * | getNonIsoElectronSorterU2 () |
std::vector< L1GctEmCand > | getOutputIsoEmCands (int fpga) |
get the output candidates More... | |
std::vector< L1GctEmCand > | getOutputNonIsoEmCands (int fpga) |
get the output candidates More... | |
int | id () |
get ID More... | |
L1GctEmLeafCard (int id) | |
construct with ID More... | |
void | process () override |
process the event More... | |
void | reset () |
clear internal trigger data buffers 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... | |
~L1GctEmLeafCard () override | |
destruct 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 | N_SORTERS = 4 |
Protected Member Functions | |
void | resetPipelines () override |
void | resetProcessor () override |
Separate reset methods for the processor itself and any data stored in pipelines. More... | |
void | setupObjects () override |
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 |
card ID (0 or 1) More... | |
std::vector< L1GctElectronSorter * > | m_sorters |
Friends | |
std::ostream & | operator<< (std::ostream &s, const L1GctEmLeafCard &card) |
overload of cout operator More... | |
Additional Inherited Members | |
Protected Attributes inherited from L1GctProcessor | |
bool | m_verbose |
Flag to control output messages. More... | |
Emulates a leaf card programmed for electron sorting.
L1GctEmLeafCard This class does the 1st stage sorting of the electron candidates.
Definition at line 20 of file L1GctEmLeafCard.h.
L1GctEmLeafCard::L1GctEmLeafCard | ( | int | id | ) |
construct with ID
Definition at line 10 of file L1GctEmLeafCard.cc.
References m_sorters.
|
override |
destruct
Definition at line 25 of file L1GctEmLeafCard.cc.
References m_sorters.
|
overridevirtual |
fetch input data
Implements L1GctProcessor.
Definition at line 59 of file L1GctEmLeafCard.cc.
References mps_fire::i, m_sorters, and N_SORTERS.
|
inline |
Definition at line 58 of file L1GctEmLeafCard.h.
References m_sorters.
Referenced by L1GctElectronFinalSort::fetchInput().
|
inline |
Definition at line 60 of file L1GctEmLeafCard.h.
References m_sorters.
Referenced by L1GctElectronFinalSort::fetchInput().
|
inline |
Definition at line 59 of file L1GctEmLeafCard.h.
References m_sorters.
Referenced by L1GctElectronFinalSort::fetchInput().
|
inline |
Definition at line 61 of file L1GctEmLeafCard.h.
References m_sorters.
Referenced by L1GctElectronFinalSort::fetchInput().
vector< L1GctEmCand > L1GctEmLeafCard::getOutputIsoEmCands | ( | int | fpga | ) |
get the output candidates
Definition at line 73 of file L1GctEmLeafCard.cc.
References m_sorters.
Referenced by id().
vector< L1GctEmCand > L1GctEmLeafCard::getOutputNonIsoEmCands | ( | int | fpga | ) |
get the output candidates
Definition at line 83 of file L1GctEmLeafCard.cc.
References m_sorters.
Referenced by id().
|
inline |
get ID
Definition at line 47 of file L1GctEmLeafCard.h.
References getOutputIsoEmCands(), getOutputNonIsoEmCands(), m_id, operator<<, and alignCSCRings::s.
|
overridevirtual |
process the event
Implements L1GctProcessor.
Definition at line 66 of file L1GctEmLeafCard.cc.
References mps_fire::i, m_sorters, and N_SORTERS.
void L1GctEmLeafCard::reset | ( | void | ) |
clear internal trigger data buffers
clear buffers
Definition at line 35 of file L1GctEmLeafCard.cc.
References mps_fire::i, m_sorters, N_SORTERS, and L1GctProcessor::reset().
|
inlineoverrideprotectedvirtual |
|
inlineoverrideprotectedvirtual |
Separate reset methods for the processor itself and any data stored in pipelines.
Implements L1GctProcessor.
Definition at line 66 of file L1GctEmLeafCard.h.
void L1GctEmLeafCard::setBxRange | ( | const int | firstBx, |
const int | numberOfBx | ||
) |
define the bunch crossing range to process
partially clear buffers
Definition at line 43 of file L1GctEmLeafCard.cc.
References mps_fire::i, m_sorters, N_SORTERS, and L1GctProcessor::setBxRange().
void L1GctEmLeafCard::setNextBx | ( | const int | bxnum | ) |
clear input data buffers and process a new bunch crossing
partially clear buffers
Definition at line 51 of file L1GctEmLeafCard.cc.
References mps_fire::i, m_sorters, N_SORTERS, and L1GctProcessor::setNextBx().
|
inlineoverrideprotectedvirtual |
Initialise inputs with null objects for the correct bunch crossing if required.
Implements L1GctProcessor.
Definition at line 70 of file L1GctEmLeafCard.h.
|
friend |
overload of cout operator
Referenced by id().
|
private |
card ID (0 or 1)
Definition at line 74 of file L1GctEmLeafCard.h.
Referenced by id(), and operator<<().
|
private |
processing - 0,2 are iso sorters, 1,3 are non-iso
Definition at line 77 of file L1GctEmLeafCard.h.
Referenced by fetchInput(), getIsoElectronSorterU1(), getIsoElectronSorterU2(), getNonIsoElectronSorterU1(), getNonIsoElectronSorterU2(), getOutputIsoEmCands(), getOutputNonIsoEmCands(), L1GctEmLeafCard(), operator<<(), process(), reset(), setBxRange(), setNextBx(), and ~L1GctEmLeafCard().
|
static |
Definition at line 22 of file L1GctEmLeafCard.h.
Referenced by fetchInput(), process(), reset(), setBxRange(), and setNextBx().