Go to the documentation of this file. 1 #ifndef L1GCTGLOBALENERGYALGOS_H_
2 #define L1GCTGLOBALENERGYALGOS_H_
50 const std::vector<L1GctWheelJetFpga*>& WheelJetFpga);
67 void setBxRange(
const int firstBx,
const int numberOfBx);
void resetPipelines() override
const L1GctHtMissLut * getHtMissLut() const
void setInputWheelEt(unsigned wheel, unsigned energy, bool overflow)
set input Et value per wheel (0 or 1); not used in normal operation
Pipeline< etComponentType > m_hyVlMinusPipe
L1GctMet::etmiss_vec etmiss_vec
Pipeline< etComponentType > m_hxVlMinusPipe
void reset()
clear internal buffers
std::vector< etComponentType > getInputHyValPlusWheel() const
std::vector< etComponentType > getInputHxValPlusWheel() const
return input Ht component values wheel 1
void setInputWheelEx(unsigned wheel, int energy, bool overflow)
set input Ex value per wheel (0 or 1); not used in normal operation
Emulates the GCT summing and packing of Hf Et sums and tower-over-threshold counts.
friend std::ostream & operator<<(std::ostream &os, const L1GctGlobalEnergyAlgos &fpga)
Overload << operator.
Pipeline< etTotalType > m_etVlMinusPipe
L1GctGlobalHfSumAlgos * getHfSumProcessor() const
provide access to hf sum processor
Emulates the GCT global energy algorithms.
etTotalType m_etValPlusWheel
void setJetFinderParams(const L1GctJetFinderParams *const jfpars)
etComponentType m_exValPlusWheel
std::vector< etTotalType > getInputEtValPlusWheel() const
return input Et value wheel 1
L1GctWheelJetFpga * getMinusWheelJetFpga() const
provide access to input pointer, Wheel Jet Fpga 0
Pipeline< etComponentType > m_exValPlusPipe
std::vector< etComponentType > getInputExVlMinusWheel() const
return input Ey value wheel 0
L1GctMet::etMissType etMissType
void fetchInput() override
get input data from sources
Pipeline< etMissPhiType > m_outputHtMissPhi
L1GctGlobalHfSumAlgos * m_hfSumProcessor
std::vector< etMissType > getHtMissColl() const
return output missing Ht magnitude
Pipeline< etMissType > m_outputHtMiss
std::vector< etComponentType > getInputHyVlMinusWheel() const
etComponentType m_eyVlMinusWheel
L1GctUnsignedInt< L1GctEtTotal::kEtTotalNBits > etTotalType
Pipeline< etComponentType > m_eyVlMinusPipe
Pipeline< etHadType > m_outputEtHad
std::vector< etComponentType > getInputExValPlusWheel() const
return input Ex value wheel 1
etComponentType m_hxValPlusWheel
L1GctWheelJetFpga * m_minusWheelJetFpga
L1GctWheelEnergyFpga * getPlusWheelFpga() const
provide access to input pointer, Wheel Energy Fpga 1
std::vector< etComponentType > getInputHxVlMinusWheel() const
return input Ht value wheel 0
void setInputWheelHy(unsigned wheel, unsigned energy, bool overflow)
L1GctGlobalEnergyAlgos(const std::vector< L1GctWheelEnergyFpga * > &WheelFpga, const std::vector< L1GctWheelJetFpga * > &WheelJetFpga)
Constructor needs the Wheel card Fpgas set up first.
L1GctWheelJetFpga * getPlusWheelJetFpga() const
provide access to input pointer, Wheel Jet Fpga 1
etHadType m_htVlMinusWheel
L1GctWheelEnergyFpga * m_minusWheelFpga
etHadType m_htValPlusWheel
L1GctWheelEnergyFpga * m_plusWheelFpga
Pipeline< etComponentType > m_hyValPlusPipe
L1GctUnsignedInt< L1GctEtHad::kEtHadNBits > etHadType
std::vector< etHadType > getEtHadColl() const
return std::vector< output calibrated jet Et
std::vector< etTotalType > getInputEtVlMinusWheel() const
return input Et value wheel 0
L1GctWheelJetFpga * m_plusWheelJetFpga
Pipeline< etTotalType > m_etValPlusPipe
etTotalType m_etVlMinusWheel
Emulates the energy summing on a GCT Wheel card.
std::vector< etMissPhiType > getHtMissPhiColl() const
return output missing Ht value
bool setupOk() const
check setup
Pipeline< etMissPhiType > m_outputEtMissPhi
void setupObjects() override
Initialise inputs with null objects for the correct bunch crossing if required.
L1GctMet::etMissPhiType etMissPhiType
void setInputWheelEy(unsigned wheel, int energy, bool overflow)
set input Ey value per wheel (0 or 1); not used in normal operation
std::vector< etComponentType > getInputEyValPlusWheel() const
return input Ex value wheel 1
void setInputWheelHx(unsigned wheel, unsigned energy, bool overflow)
set input Ht component values per wheel (0 or 1); not used in normal operation
void setHtMissScale(const L1CaloEtScale *const scale)
Pipeline< etComponentType > m_exVlMinusPipe
Represents a GCT Wheel Jet FPGA.
void setBxRange(const int firstBx, const int numberOfBx)
define the bunch crossing range to process
Pipeline< etHadType > m_htValPlusPipe
L1GctWheelEnergyFpga * getMinusWheelFpga() const
provide access to input pointer, Wheel Energy Fpga 0
etComponentType m_hyValPlusWheel
void setInputWheelHt(unsigned wheel, unsigned energy, bool overflow)
set input Ht value per wheel (0 or 1); not used in normal operation
Pipeline< etComponentType > m_eyValPlusPipe
void resetProcessor() override
Separate reset methods for the processor itself and any data stored in pipelines.
Stores Level-1 missing Et in (Ex, Ey) form, allowing it to be retrieved as (magnitude,...
LUT for conversion of Ht components x and y to magnitude and angle.
etComponentType m_exVlMinusWheel
std::vector< etHadType > getInputHtValPlusWheel() const
return input Ht value wheel 1
std::vector< etTotalType > getEtSumColl() const
return output total scalar Et
void setInputWheelJc(unsigned wheel, unsigned jcnum, unsigned count)
set input jet count (number 0-11) per wheel (0 or 1); not used in normal operation
std::vector< etHadType > getInputHtVlMinusWheel() const
return input Ht value wheel 0
Pipeline< etMissType > m_outputEtMiss
void process() override
process the data, fill output buffers
std::vector< etMissPhiType > getEtMissPhiColl() const
return output missing Et value
~L1GctGlobalEnergyAlgos() override
Destructor.
std::vector< etComponentType > getInputEyVlMinusWheel() const
return input Ey value wheel 0
std::vector< etMissType > getEtMissColl() const
Pipeline< etHadType > m_htVlMinusPipe
void setNextBx(const int bx)
partially clear buffers
L1GctWheelEnergyFpga::etComponentType etComponentType
etComponentType m_hyVlMinusWheel
const L1GctHtMissLut * getHtMissLut() const
ABC for a GCT trigger data processing unit.
etComponentType m_hxVlMinusWheel
Pipeline< etTotalType > m_outputEtSum
std::ostream & operator<<(std::ostream &os, const L1GctGlobalEnergyAlgos &fpga)
etComponentType m_eyValPlusWheel
Pipeline< etComponentType > m_hxValPlusPipe