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