1 #ifndef L1GCTELECTRONSORTER_H_ 2 #define L1GCTELECTRONSORTER_H_ 46 unsigned rank()
const {
return emCand.
rank(); }
static bool rankByGt(const prioritisedEmCand &x, const prioritisedEmCand &y)
void setupObjects() override
Initialise inputs with null objects for the correct bunch crossing if required.
std::vector< L1GctEmCand > m_outputCands
output data
bool m_isolation
type of electron to sort (isolated = 0 or non isolated = 1)
std::vector< L1GctEmCand > getOutputCands()
get output candidates
L1GctElectronSorter(int nInputs, bool iso)
constructor; set type (isolated or non-isolated)
void resetPipelines() override
Level-1 Region Calorimeter Trigger EM candidate.
~L1GctElectronSorter() override
std::vector< L1CaloEmCand > m_inputCands
input data
Level-1 Trigger EM candidate at output of GCT.
ABC for a GCT trigger data processing unit.
unsigned rank() const override
get rank bits
std::vector< L1CaloEmCand > getInputCands()
void process() override
process the data, fill output buffers
Class that sorts electron candidates.
void resetProcessor() override
Separate reset methods for the processor itself and any data stored in pipelines. ...
void fetchInput() override
get input data from sources
void setInputEmCand(const L1CaloEmCand &cand)
set input candidate
friend std::ostream & operator<<(std::ostream &s, const L1GctElectronSorter &card)
overload of cout operator
int m_id
algo ID (is it FPGA 1 or 2 processing)
prioritisedEmCand(L1CaloEmCand &c, unsigned short p)
prioritisedEmCand(L1GctEmCand &c, unsigned short p)