#include <L1GctElectronFinalSort.h>
Public Types | |
typedef L1GctElectronSorter::prioritisedEmCand | prioritisedEmCand |
Use some definitions from the ElectronSorter in the leaf cards. More... | |
Public Member Functions | |
void | fetchInput () override |
get input data from sources More... | |
std::vector< L1GctEmCand > | getInputCands () const |
return input data More... | |
std::vector< L1GctEmCand > | getOutputCands () const |
return output data More... | |
L1GctElectronFinalSort (bool iso, L1GctEmLeafCard *posEtaCard, L1GctEmLeafCard *negEtaCard) | |
constructor More... | |
void | process () override |
process the data, fill output buffers More... | |
void | setInputEmCand (unsigned i, const L1GctEmCand &cand) |
set input data More... | |
bool | setupOk () const |
check setup More... | |
~L1GctElectronFinalSort () override | |
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 () |
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 | |
bool | m_emCandsType |
type of electron candidate (iso(0) or non-iso(1)) More... | |
std::vector< L1GctEmCand > | m_inputCands |
input data More... | |
Pipeline< L1GctEmCand > | m_outputCands |
output data More... | |
bool | m_setupOk |
Check the setup. More... | |
L1GctEmLeafCard * | m_theNegEtaLeafCard |
L1GctEmLeafCard * | m_thePosEtaLeafCard |
the 1st stage electron sorters More... | |
Friends | |
std::ostream & | operator<< (std::ostream &s, const L1GctElectronFinalSort &cand) |
overload of cout operator More... | |
Additional Inherited Members | |
Protected Attributes inherited from L1GctProcessor | |
bool | m_verbose |
Flag to control output messages. More... | |
Definition at line 28 of file L1GctElectronFinalSort.h.
Use some definitions from the ElectronSorter in the leaf cards.
Definition at line 31 of file L1GctElectronFinalSort.h.
L1GctElectronFinalSort::L1GctElectronFinalSort | ( | bool | iso, |
L1GctEmLeafCard * | posEtaCard, | ||
L1GctEmLeafCard * | negEtaCard | ||
) |
constructor
Definition at line 8 of file L1GctElectronFinalSort.cc.
References m_setupOk, m_theNegEtaLeafCard, m_thePosEtaLeafCard, and L1GctProcessor::m_verbose.
|
override |
destructor
Definition at line 37 of file L1GctElectronFinalSort.cc.
References m_inputCands, and m_outputCands.
|
overridevirtual |
get input data from sources
loop over candidates from four electron sorter FPGAs
Implements L1GctProcessor.
Definition at line 49 of file L1GctElectronFinalSort.cc.
References L1GctEmLeafCard::getIsoElectronSorterU1(), L1GctEmLeafCard::getIsoElectronSorterU2(), L1GctEmLeafCard::getNonIsoElectronSorterU1(), L1GctEmLeafCard::getNonIsoElectronSorterU2(), L1GctElectronSorter::getOutputCands(), dqmdumpme::k, m_emCandsType, m_setupOk, m_theNegEtaLeafCard, m_thePosEtaLeafCard, and setInputEmCand().
Referenced by L1GlobalCaloTrigger::bxProcess().
|
inline |
return input data
Definition at line 49 of file L1GctElectronFinalSort.h.
References m_inputCands.
|
inline |
return output data
Definition at line 52 of file L1GctElectronFinalSort.h.
References m_outputCands.
Referenced by L1GlobalCaloTrigger::getIsoElectrons(), and L1GlobalCaloTrigger::getNonIsoElectrons().
|
overridevirtual |
process the data, fill output buffers
Implements L1GctProcessor.
Definition at line 67 of file L1GctElectronFinalSort.cc.
References L1GctProcessor::bxRel(), c, data, mps_fire::i, m_inputCands, m_outputCands, m_setupOk, L1GctElectronSorter::rankByGt(), jetUpdater_cfi::sort, and groupFilesInBlocks::temp.
Referenced by L1GlobalCaloTrigger::bxProcess().
|
overrideprotectedvirtual |
Implements L1GctProcessor.
Definition at line 47 of file L1GctElectronFinalSort.cc.
References m_outputCands, and L1GctProcessor::numOfBx().
|
overrideprotectedvirtual |
Separate reset methods for the processor itself and any data stored in pipelines.
Implements L1GctProcessor.
Definition at line 42 of file L1GctElectronFinalSort.cc.
References m_inputCands.
void L1GctElectronFinalSort::setInputEmCand | ( | unsigned | i, |
const L1GctEmCand & | cand | ||
) |
set input data
Definition at line 89 of file L1GctElectronFinalSort.cc.
References L1GctProcessor::bxAbs(), mps_fire::i, and m_inputCands.
Referenced by fetchInput().
|
inlineoverrideprotectedvirtual |
Initialise inputs with null objects for the correct bunch crossing if required.
Implements L1GctProcessor.
Definition at line 66 of file L1GctElectronFinalSort.h.
|
inline |
check setup
Definition at line 58 of file L1GctElectronFinalSort.h.
References m_setupOk.
Referenced by L1GlobalCaloTrigger::setupOk().
|
friend |
overload of cout operator
Definition at line 95 of file L1GctElectronFinalSort.cc.
|
private |
type of electron candidate (iso(0) or non-iso(1))
Definition at line 71 of file L1GctElectronFinalSort.h.
Referenced by fetchInput().
|
private |
input data
Definition at line 78 of file L1GctElectronFinalSort.h.
Referenced by getInputCands(), process(), resetProcessor(), setInputEmCand(), and ~L1GctElectronFinalSort().
|
private |
output data
Definition at line 81 of file L1GctElectronFinalSort.h.
Referenced by getOutputCands(), process(), resetPipelines(), and ~L1GctElectronFinalSort().
|
private |
Check the setup.
Definition at line 84 of file L1GctElectronFinalSort.h.
Referenced by fetchInput(), L1GctElectronFinalSort(), process(), and setupOk().
|
private |
Definition at line 75 of file L1GctElectronFinalSort.h.
Referenced by fetchInput(), and L1GctElectronFinalSort().
|
private |
the 1st stage electron sorters
Definition at line 74 of file L1GctElectronFinalSort.h.
Referenced by fetchInput(), and L1GctElectronFinalSort().