1 #ifndef L1GCTELECTRONSORTER_H_
2 #define L1GCTELECTRONSORTER_H_
52 struct rank_gt :
public std::binary_function<prioritisedEmCand, prioritisedEmCand, bool> {
virtual void resetProcessor()
Separate reset methods for the processor itself and any data stored in pipelines. ...
std::vector< L1GctEmCand > m_outputCands
output data
bool m_isolation
type of electron to sort (isolated = 0 or non isolated = 1)
unsigned rank() const
get rank bits
std::vector< L1GctEmCand > getOutputCands()
get output candidates
L1GctElectronSorter(int nInputs, bool iso)
constructor; set type (isolated or non-isolated)
virtual void setupObjects()
Initialise inputs with null objects for the correct bunch crossing if required.
Level-1 Region Calorimeter Trigger EM candidate.
bool operator()(const prioritisedEmCand &x, const prioritisedEmCand &y)
std::vector< L1CaloEmCand > m_inputCands
input data
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Level-1 Trigger EM candidate at output of GCT.
ABC for a GCT trigger data processing unit.
virtual void process()
process the data, fill output buffers
std::vector< L1CaloEmCand > getInputCands()
virtual void fetchInput()
get input data from sources
Class that sorts electron candidates.
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)
virtual void resetPipelines()
prioritisedEmCand(L1GctEmCand &c, unsigned short p)