Class that sorts electron candidates. More...
#include <L1GctElectronSorter.h>
Classes | |
struct | prioritisedEmCand |
struct | rank_gt |
Public Member Functions | |
virtual void | fetchInput () |
get input data from sources More... | |
std::vector< L1CaloEmCand > | getInputCands () |
std::vector< L1GctEmCand > | getOutputCands () |
get output candidates More... | |
L1GctElectronSorter (int nInputs, bool iso) | |
constructor; set type (isolated or non-isolated) More... | |
virtual void | process () |
process the data, fill output buffers More... | |
void | setInputEmCand (const L1CaloEmCand &cand) |
set input candidate More... | |
~L1GctElectronSorter () | |
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 | |
int | m_id |
algo ID (is it FPGA 1 or 2 processing) More... | |
std::vector< L1CaloEmCand > | m_inputCands |
input data More... | |
bool | m_isolation |
type of electron to sort (isolated = 0 or non isolated = 1) More... | |
std::vector< L1GctEmCand > | m_outputCands |
output data More... | |
Friends | |
std::ostream & | operator<< (std::ostream &s, const L1GctElectronSorter &card) |
overload of cout operator More... | |
Additional Inherited Members | |
Protected Attributes inherited from L1GctProcessor | |
bool | m_verbose |
Flag to control output messages. More... | |
Class that sorts electron candidates.
L1GctElectronSorter This class can be constructed to sort iso or non-iso electron candidates. The electrons are sorted in ascending order and the 4 highest in rank will be returned. It represents the 1st stage sorter FPGA's on the electron leaf cards.
Definition at line 27 of file L1GctElectronSorter.h.
L1GctElectronSorter::L1GctElectronSorter | ( | int | nInputs, |
bool | iso | ||
) |
constructor; set type (isolated or non-isolated)
Definition at line 4 of file L1GctElectronSorter.cc.
L1GctElectronSorter::~L1GctElectronSorter | ( | ) |
Definition at line 12 of file L1GctElectronSorter.cc.
|
virtual |
get input data from sources
Implements L1GctProcessor.
Definition at line 37 of file L1GctElectronSorter.cc.
|
inline |
get input candidates
Definition at line 73 of file L1GctElectronSorter.h.
References m_inputCands.
|
inline |
get output candidates
Definition at line 76 of file L1GctElectronSorter.h.
References m_outputCands.
Referenced by L1GctElectronFinalSort::fetchInput().
|
virtual |
process the data, fill output buffers
Implements L1GctProcessor.
Definition at line 42 of file L1GctElectronSorter.cc.
References EnergyCorrector::c, data, i, m_inputCands, and m_outputCands.
|
inlineprotectedvirtual |
|
protectedvirtual |
Separate reset methods for the processor itself and any data stored in pipelines.
Implements L1GctProcessor.
Definition at line 17 of file L1GctElectronSorter.cc.
References m_id, m_inputCands, and m_outputCands.
void L1GctElectronSorter::setInputEmCand | ( | const L1CaloEmCand & | cand | ) |
set input candidate
Definition at line 62 of file L1GctElectronSorter.cc.
References i, L1CaloEmCand::index(), input, m_id, m_inputCands, and L1CaloEmCand::rctCrate().
|
protectedvirtual |
Initialise inputs with null objects for the correct bunch crossing if required.
Initialise inputs with null objects for the correct bunch crossing If no other input candidates "arrive", we have the correct bunch crossing to propagate through the processing.
Create a null input electron with the right bunch crossing, and fill the input candidates with copies of this.
Implements L1GctProcessor.
Definition at line 28 of file L1GctElectronSorter.cc.
References L1GctProcessor::bxAbs(), m_id, m_inputCands, L1CaloEmCand::setBx(), and groupFilesInBlocks::temp.
|
friend |
|
private |
algo ID (is it FPGA 1 or 2 processing)
Definition at line 92 of file L1GctElectronSorter.h.
Referenced by resetProcessor(), setInputEmCand(), and setupObjects().
|
private |
input data
Definition at line 98 of file L1GctElectronSorter.h.
Referenced by getInputCands(), operator<<(), process(), resetProcessor(), setInputEmCand(), and setupObjects().
|
private |
type of electron to sort (isolated = 0 or non isolated = 1)
Definition at line 95 of file L1GctElectronSorter.h.
Referenced by operator<<().
|
private |
output data
Definition at line 101 of file L1GctElectronSorter.h.
Referenced by getOutputCands(), operator<<(), process(), and resetProcessor().