#include <L1GctElectronFinalSort.h>
Public Types | |
typedef L1GctElectronSorter::prioritisedEmCand | prioritisedEmCand |
Use some definitions from the ElectronSorter in the leaf cards. More... | |
typedef L1GctElectronSorter::rank_gt | rank_gt |
Public Member Functions | |
virtual void | fetchInput () |
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) | |
virtual void | process () |
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 () | |
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 | |
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 | |
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 29 of file L1GctElectronFinalSort.h.
Use some definitions from the ElectronSorter in the leaf cards.
Definition at line 33 of file L1GctElectronFinalSort.h.
Definition at line 34 of file L1GctElectronFinalSort.h.
L1GctElectronFinalSort::L1GctElectronFinalSort | ( | bool | iso, |
L1GctEmLeafCard * | posEtaCard, | ||
L1GctEmLeafCard * | negEtaCard | ||
) |
constructor
Definition at line 9 of file L1GctElectronFinalSort.cc.
References m_setupOk, m_theNegEtaLeafCard, m_thePosEtaLeafCard, and L1GctProcessor::m_verbose.
L1GctElectronFinalSort::~L1GctElectronFinalSort | ( | ) |
destructor
Definition at line 41 of file L1GctElectronFinalSort.cc.
References m_inputCands, and m_outputCands.
|
virtual |
get input data from sources
loop over candidates from four electron sorter FPGAs
Implements L1GctProcessor.
Definition at line 55 of file L1GctElectronFinalSort.cc.
References L1GctEmLeafCard::getIsoElectronSorterU1(), L1GctEmLeafCard::getIsoElectronSorterU2(), L1GctEmLeafCard::getNonIsoElectronSorterU1(), L1GctEmLeafCard::getNonIsoElectronSorterU2(), L1GctElectronSorter::getOutputCands(), relval_steps::k, m_emCandsType, m_setupOk, m_theNegEtaLeafCard, m_thePosEtaLeafCard, and setInputEmCand().
Referenced by L1GlobalCaloTrigger::bxProcess().
|
inline |
return input data
Definition at line 53 of file L1GctElectronFinalSort.h.
References m_inputCands.
|
inline |
return output data
Definition at line 56 of file L1GctElectronFinalSort.h.
References m_outputCands.
Referenced by L1GlobalCaloTrigger::getIsoElectrons(), and L1GlobalCaloTrigger::getNonIsoElectrons().
|
virtual |
process the data, fill output buffers
Implements L1GctProcessor.
Definition at line 74 of file L1GctElectronFinalSort.cc.
References L1GctProcessor::bxRel(), EnergyCorrector::c, data, i, m_inputCands, m_outputCands, m_setupOk, python.multivaluedict::sort(), and groupFilesInBlocks::temp.
Referenced by ConfigBuilder.ConfigBuilder::addExtraStream(), L1GlobalCaloTrigger::bxProcess(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_PATFILTER(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder::scheduleSequence().
|
protectedvirtual |
Implements L1GctProcessor.
Definition at line 51 of file L1GctElectronFinalSort.cc.
References m_outputCands, and L1GctProcessor::numOfBx().
|
protectedvirtual |
Separate reset methods for the processor itself and any data stored in pipelines.
Implements L1GctProcessor.
Definition at line 46 of file L1GctElectronFinalSort.cc.
References m_inputCands.
void L1GctElectronFinalSort::setInputEmCand | ( | unsigned | i, |
const L1GctEmCand & | cand | ||
) |
set input data
Definition at line 97 of file L1GctElectronFinalSort.cc.
References L1GctEmCand::bx(), L1GctProcessor::bxAbs(), and m_inputCands.
Referenced by fetchInput().
|
inlineprotectedvirtual |
Initialise inputs with null objects for the correct bunch crossing if required.
Implements L1GctProcessor.
Definition at line 71 of file L1GctElectronFinalSort.h.
|
inline |
check setup
Definition at line 62 of file L1GctElectronFinalSort.h.
References m_setupOk.
Referenced by L1GlobalCaloTrigger::setupOk().
|
friend |
overload of cout operator
Definition at line 104 of file L1GctElectronFinalSort.cc.
|
private |
type of electron candidate (iso(0) or non-iso(1))
Definition at line 76 of file L1GctElectronFinalSort.h.
Referenced by fetchInput(), and operator<<().
|
private |
input data
Definition at line 83 of file L1GctElectronFinalSort.h.
Referenced by getInputCands(), operator<<(), process(), resetProcessor(), setInputEmCand(), and ~L1GctElectronFinalSort().
|
private |
output data
Definition at line 86 of file L1GctElectronFinalSort.h.
Referenced by getOutputCands(), operator<<(), process(), resetPipelines(), and ~L1GctElectronFinalSort().
|
private |
Check the setup.
Definition at line 89 of file L1GctElectronFinalSort.h.
Referenced by fetchInput(), L1GctElectronFinalSort(), process(), and setupOk().
|
private |
Definition at line 80 of file L1GctElectronFinalSort.h.
Referenced by fetchInput(), L1GctElectronFinalSort(), and operator<<().
|
private |
the 1st stage electron sorters
Definition at line 79 of file L1GctElectronFinalSort.h.
Referenced by fetchInput(), L1GctElectronFinalSort(), and operator<<().