![]() |
![]() |
Represents the final stage of L1 jet processing. More...
#include <L1GctJetFinalStage.h>
Public Types | |
typedef Pipeline< L1GctJetCand > | JetPipeline |
typedef std::vector< L1GctJetCand > | JetVector |
Public Member Functions | |
void | fetchInput () override |
get input data from sources More... | |
JetVector | getCentralJets () const |
get the central jets output data More... | |
JetVector | getForwardJets () const |
get the forward jets output data More... | |
JetVector | getInputCentralJets () const |
get the central jets input data More... | |
JetVector | getInputForwardJets () const |
get the forward jets input data More... | |
JetVector | getInputTauJets () const |
get the tau jets input data More... | |
JetVector | getTauJets () const |
get the tau jets output data More... | |
L1GctJetFinalStage (const std::vector< L1GctWheelJetFpga * > &m_wheelFpgas) | |
Takes a vector of 2 wheel jet FPGA pointers, with which to get input data from. More... | |
void | process () override |
process the data, fill output buffers More... | |
void | setInputCentralJet (int i, const L1GctJetCand &jet) |
set the central jets input data More... | |
void | setInputForwardJet (int i, const L1GctJetCand &jet) |
set the forward jets input data More... | |
void | setInputTauJet (int i, const L1GctJetCand &jet) |
set the tau jets input data More... | |
bool | setupOk () const |
~L1GctJetFinalStage () override | |
![]() | |
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 () |
Static Public Attributes | |
static const unsigned int | MAX_WHEEL_FPGAS = 2 |
Max number of wheel FPGA pointers. More... | |
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... | |
![]() | |
int | bxAbs () const |
int | bxMax () const |
int | bxMin () const |
Support for multiple beam crossing operation. More... | |
int | bxRel () const |
int | numOfBx () const |
Private Member Functions | |
void | storeJets (JetVector &storageVector, const JetVector &jets, unsigned short iWheel) |
Enters jets into the specified storageVector, according to which wheel card we are taking them from. More... | |
Private Attributes | |
JetPipeline | m_centralJets |
L1GctJetSorter * | m_centralJetSorter |
Jet sorters. More... | |
JetPipeline | m_forwardJets |
L1GctJetSorter * | m_forwardJetSorter |
JetVector | m_inputCentralJets |
JetVector | m_inputForwardJets |
JetVector | m_inputTauJets |
bool | m_setupOk |
JetPipeline | m_tauJets |
L1GctJetSorter * | m_tauJetSorter |
std::vector< L1GctWheelJetFpga * > | m_wheelFpgas |
wheel jet FPGAs More... | |
Static Private Attributes | |
static const int | MAX_JETS_IN = L1GctJetFinalStage::MAX_WHEEL_FPGAS*L1GctWheelJetFpga::MAX_JETS_OUT |
Max number of jets of each type coming in. More... | |
static const int | MAX_JETS_OUT = 4 |
Max number of jets of each type going out. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const L1GctJetFinalStage &fpga) |
Overload << operator. More... | |
Additional Inherited Members | |
![]() | |
bool | m_verbose |
Flag to control output messages. More... | |
Represents the final stage of L1 jet processing.
Takes as input the jet data from the two Wheel Jet FPGAs and outputs the top four of each type of jet - central, forward, and tau - for the whole of the CMS detector.
Definition at line 25 of file L1GctJetFinalStage.h.
typedef Pipeline<L1GctJetCand> L1GctJetFinalStage::JetPipeline |
Definition at line 29 of file L1GctJetFinalStage.h.
typedef std::vector<L1GctJetCand> L1GctJetFinalStage::JetVector |
Definition at line 28 of file L1GctJetFinalStage.h.
L1GctJetFinalStage::L1GctJetFinalStage | ( | const std::vector< L1GctWheelJetFpga * > & | m_wheelFpgas | ) |
Takes a vector of 2 wheel jet FPGA pointers, with which to get input data from.
Definition at line 16 of file L1GctJetFinalStage.cc.
References mps_fire::i, m_setupOk, L1GctProcessor::m_verbose, m_wheelFpgas, and MAX_WHEEL_FPGAS.
|
override |
Definition at line 58 of file L1GctJetFinalStage.cc.
References m_centralJetSorter, m_forwardJetSorter, and m_tauJetSorter.
|
overridevirtual |
get input data from sources
Implements L1GctProcessor.
Definition at line 124 of file L1GctJetFinalStage.cc.
References m_inputCentralJets, m_inputForwardJets, m_inputTauJets, m_setupOk, m_wheelFpgas, MAX_WHEEL_FPGAS, and storeJets().
Referenced by L1GlobalCaloTrigger::bxProcess().
|
inline |
get the central jets output data
Definition at line 53 of file L1GctJetFinalStage.h.
References m_centralJets.
Referenced by L1GlobalCaloTrigger::getCentralJets().
|
inline |
get the forward jets output data
Definition at line 54 of file L1GctJetFinalStage.h.
References m_forwardJets.
Referenced by L1GlobalCaloTrigger::getForwardJets().
|
inline |
get the central jets input data
Definition at line 49 of file L1GctJetFinalStage.h.
References m_inputCentralJets.
|
inline |
get the forward jets input data
Definition at line 50 of file L1GctJetFinalStage.h.
References m_inputForwardJets.
|
inline |
get the tau jets input data
Definition at line 51 of file L1GctJetFinalStage.h.
References m_inputTauJets.
|
inline |
get the tau jets output data
Definition at line 55 of file L1GctJetFinalStage.h.
References m_tauJets.
Referenced by L1GlobalCaloTrigger::getTauJets().
|
overridevirtual |
process the data, fill output buffers
Implements L1GctProcessor.
Definition at line 138 of file L1GctJetFinalStage.cc.
References L1GctProcessor::bxRel(), L1GctJetSorter::getSortedJets(), m_centralJets, m_centralJetSorter, m_forwardJets, m_forwardJetSorter, m_inputCentralJets, m_inputForwardJets, m_inputTauJets, m_setupOk, m_tauJets, m_tauJetSorter, L1GctJetSorter::setJets(), and L1GctProcessor::Pipeline< T >::store().
Referenced by L1GlobalCaloTrigger::bxProcess().
|
overrideprotectedvirtual |
Implements L1GctProcessor.
Definition at line 118 of file L1GctJetFinalStage.cc.
References m_centralJets, m_forwardJets, m_tauJets, L1GctProcessor::numOfBx(), and L1GctProcessor::Pipeline< T >::reset().
Referenced by setupOk().
|
overrideprotectedvirtual |
Separate reset methods for the processor itself and any data stored in pipelines.
Implements L1GctProcessor.
Definition at line 107 of file L1GctJetFinalStage.cc.
References m_inputCentralJets, m_inputForwardJets, m_inputTauJets, and MAX_JETS_IN.
Referenced by setupOk().
void L1GctJetFinalStage::setInputCentralJet | ( | int | i, |
const L1GctJetCand & | jet | ||
) |
set the central jets input data
Definition at line 152 of file L1GctJetFinalStage.cc.
References L1GctJetCand::bx(), L1GctProcessor::bxAbs(), L1GctJetCand::empty(), L1GctJetCand::isCentral(), metsig::jet, m_inputCentralJets, and MAX_JETS_IN.
void L1GctJetFinalStage::setInputForwardJet | ( | int | i, |
const L1GctJetCand & | jet | ||
) |
set the forward jets input data
Definition at line 161 of file L1GctJetFinalStage.cc.
References L1GctJetCand::bx(), L1GctProcessor::bxAbs(), L1GctJetCand::empty(), L1GctJetCand::isForward(), metsig::jet, m_inputForwardJets, and MAX_JETS_IN.
void L1GctJetFinalStage::setInputTauJet | ( | int | i, |
const L1GctJetCand & | jet | ||
) |
set the tau jets input data
Definition at line 170 of file L1GctJetFinalStage.cc.
References L1GctJetCand::bx(), L1GctProcessor::bxAbs(), L1GctJetCand::empty(), L1GctJetCand::isTau(), metsig::jet, m_inputTauJets, and MAX_JETS_IN.
|
inlineoverrideprotectedvirtual |
Initialise inputs with null objects for the correct bunch crossing if required.
Implements L1GctProcessor.
Definition at line 65 of file L1GctJetFinalStage.h.
|
inline |
Definition at line 57 of file L1GctJetFinalStage.h.
References m_setupOk, resetPipelines(), and resetProcessor().
Referenced by L1GlobalCaloTrigger::setupOk().
|
private |
Enters jets into the specified storageVector, according to which wheel card we are taking them from.
Definition at line 179 of file L1GctJetFinalStage.cc.
References L1GctProcessor::bxAbs(), and L1GctWheelJetFpga::MAX_JETS_OUT.
Referenced by fetchInput().
|
friend |
Overload << operator.
Definition at line 65 of file L1GctJetFinalStage.cc.
|
private |
Definition at line 85 of file L1GctJetFinalStage.h.
Referenced by getCentralJets(), operator<<(), process(), and resetPipelines().
|
private |
Jet sorters.
Definition at line 75 of file L1GctJetFinalStage.h.
Referenced by process(), and ~L1GctJetFinalStage().
|
private |
Definition at line 86 of file L1GctJetFinalStage.h.
Referenced by getForwardJets(), operator<<(), process(), and resetPipelines().
|
private |
Definition at line 76 of file L1GctJetFinalStage.h.
Referenced by process(), and ~L1GctJetFinalStage().
|
private |
Definition at line 80 of file L1GctJetFinalStage.h.
Referenced by fetchInput(), getInputCentralJets(), operator<<(), process(), resetProcessor(), and setInputCentralJet().
|
private |
Definition at line 81 of file L1GctJetFinalStage.h.
Referenced by fetchInput(), getInputForwardJets(), operator<<(), process(), resetProcessor(), and setInputForwardJet().
|
private |
Definition at line 82 of file L1GctJetFinalStage.h.
Referenced by fetchInput(), getInputTauJets(), operator<<(), process(), resetProcessor(), and setInputTauJet().
|
private |
Definition at line 90 of file L1GctJetFinalStage.h.
Referenced by fetchInput(), L1GctJetFinalStage(), process(), and setupOk().
|
private |
Definition at line 87 of file L1GctJetFinalStage.h.
Referenced by getTauJets(), operator<<(), process(), and resetPipelines().
|
private |
Definition at line 77 of file L1GctJetFinalStage.h.
Referenced by process(), and ~L1GctJetFinalStage().
|
private |
wheel jet FPGAs
Definition at line 72 of file L1GctJetFinalStage.h.
Referenced by fetchInput(), L1GctJetFinalStage(), and operator<<().
|
staticprivate |
Max number of jets of each type coming in.
Definition at line 68 of file L1GctJetFinalStage.h.
Referenced by resetProcessor(), setInputCentralJet(), setInputForwardJet(), and setInputTauJet().
|
staticprivate |
Max number of jets of each type going out.
Definition at line 69 of file L1GctJetFinalStage.h.
|
static |
Max number of wheel FPGA pointers.
Definition at line 30 of file L1GctJetFinalStage.h.
Referenced by fetchInput(), and L1GctJetFinalStage().