Emulates the GCT global energy algorithms. More...
#include <L1GctGlobalEnergyAlgos.h>
Public Types | |
typedef L1GctWheelEnergyFpga::etComponentType | etComponentType |
typedef L1GctUnsignedInt < L1GctEtHad::kEtHadNBits > | etHadType |
typedef L1GctMet::etmiss_vec | etmiss_vec |
typedef L1GctMet::etMissPhiType | etMissPhiType |
typedef L1GctMet::etMissType | etMissType |
typedef L1GctUnsignedInt < L1GctEtTotal::kEtTotalNBits > | etTotalType |
enum | maxValues { etTotalMaxValue = L1GctEtTotal::kEtTotalMaxValue, etHadMaxValue = L1GctEtHad::kEtHadMaxValue, etMissMaxValue = L1GctEtMiss::kEtMissMaxValue } |
Public Member Functions | |
virtual void | fetchInput () |
get input data from sources More... | |
std::vector< etHadType > | getEtHadColl () const |
return std::vector< output calibrated jet Et More... | |
std::vector< etMissType > | getEtMissColl () const |
return output missing Et magnitude More... | |
std::vector< etMissPhiType > | getEtMissPhiColl () const |
return output missing Et value More... | |
std::vector< etTotalType > | getEtSumColl () const |
return output total scalar Et More... | |
L1GctGlobalHfSumAlgos * | getHfSumProcessor () const |
provide access to hf sum processor More... | |
std::vector< etMissType > | getHtMissColl () const |
return output missing Ht magnitude More... | |
const L1GctHtMissLut * | getHtMissLut () const |
std::vector< etMissPhiType > | getHtMissPhiColl () const |
return output missing Ht value More... | |
std::vector< etTotalType > | getInputEtValPlusWheel () const |
return input Et value wheel 1 More... | |
std::vector< etTotalType > | getInputEtVlMinusWheel () const |
return input Et value wheel 0 More... | |
std::vector< etComponentType > | getInputExValPlusWheel () const |
return input Ex value wheel 1 More... | |
std::vector< etComponentType > | getInputExVlMinusWheel () const |
return input Ey value wheel 0 More... | |
std::vector< etComponentType > | getInputEyValPlusWheel () const |
return input Ex value wheel 1 More... | |
std::vector< etComponentType > | getInputEyVlMinusWheel () const |
return input Ey value wheel 0 More... | |
std::vector< etHadType > | getInputHtValPlusWheel () const |
return input Ht value wheel 1 More... | |
std::vector< etHadType > | getInputHtVlMinusWheel () const |
return input Ht value wheel 0 More... | |
std::vector< etComponentType > | getInputHxValPlusWheel () const |
return input Ht component values wheel 1 More... | |
std::vector< etComponentType > | getInputHxVlMinusWheel () const |
return input Ht value wheel 0 More... | |
std::vector< etComponentType > | getInputHyValPlusWheel () const |
std::vector< etComponentType > | getInputHyVlMinusWheel () const |
L1GctWheelEnergyFpga * | getMinusWheelFpga () const |
provide access to input pointer, Wheel Energy Fpga 0 More... | |
L1GctWheelJetFpga * | getMinusWheelJetFpga () const |
provide access to input pointer, Wheel Jet Fpga 0 More... | |
L1GctWheelEnergyFpga * | getPlusWheelFpga () const |
provide access to input pointer, Wheel Energy Fpga 1 More... | |
L1GctWheelJetFpga * | getPlusWheelJetFpga () const |
provide access to input pointer, Wheel Jet Fpga 1 More... | |
L1GctGlobalEnergyAlgos (const std::vector< L1GctWheelEnergyFpga * > &WheelFpga, const std::vector< L1GctWheelJetFpga * > &WheelJetFpga) | |
Constructor needs the Wheel card Fpgas set up first. More... | |
virtual void | process () |
process the data, fill output buffers More... | |
void | reset () |
clear internal buffers More... | |
void | setBxRange (const int firstBx, const int numberOfBx) |
define the bunch crossing range to process More... | |
void | setHtMissScale (const L1CaloEtScale *const scale) |
void | setInputWheelEt (unsigned wheel, unsigned energy, bool overflow) |
set input Et value per wheel (0 or 1); not used in normal operation More... | |
void | setInputWheelEx (unsigned wheel, int energy, bool overflow) |
set input Ex value per wheel (0 or 1); not used in normal operation More... | |
void | setInputWheelEy (unsigned wheel, int energy, bool overflow) |
set input Ey value per wheel (0 or 1); not used in normal operation More... | |
void | setInputWheelHt (unsigned wheel, unsigned energy, bool overflow) |
set input Ht value per wheel (0 or 1); not used in normal operation More... | |
void | setInputWheelHx (unsigned wheel, unsigned energy, bool overflow) |
set input Ht component values per wheel (0 or 1); not used in normal operation More... | |
void | setInputWheelHy (unsigned wheel, unsigned energy, bool overflow) |
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 More... | |
void | setJetFinderParams (const L1GctJetFinderParams *const jfpars) |
void | setNextBx (const int bx) |
partially clear buffers More... | |
bool | setupOk () const |
check setup More... | |
~L1GctGlobalEnergyAlgos () | |
Destructor. More... | |
Public Member Functions inherited from L1GctProcessor | |
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 () |
Protected Member Functions | |
virtual void | resetPipelines () |
virtual void | resetProcessor () |
Separate reset methods for the processor itself and any data stored in pipelines. More... | |
virtual void | setupObjects () |
Initialise inputs with null objects for the correct bunch crossing if required. More... | |
Protected Member Functions inherited from L1GctProcessor | |
int | bxAbs () const |
int | bxMax () const |
int | bxMin () const |
Support for multiple beam crossing operation. More... | |
int | bxRel () const |
int | numOfBx () const |
Friends | |
std::ostream & | operator<< (std::ostream &os, const L1GctGlobalEnergyAlgos &fpga) |
Overload << operator. More... | |
Additional Inherited Members | |
Protected Attributes inherited from L1GctProcessor | |
bool | m_verbose |
Flag to control output messages. More... | |
Emulates the GCT global energy algorithms.
This class carries out the final stage of summing of total Et, missing Et components Ex and Ey, calibrated jet energy Ht, and jet counts. It converts the final missing Ex and Ey sums to magnitude and direction. The inputs come from the two Wheel cards and the outputs are sent to the Global Trigger.
Definition at line 34 of file L1GctGlobalEnergyAlgos.h.
Definition at line 43 of file L1GctGlobalEnergyAlgos.h.
Definition at line 39 of file L1GctGlobalEnergyAlgos.h.
Definition at line 42 of file L1GctGlobalEnergyAlgos.h.
Definition at line 41 of file L1GctGlobalEnergyAlgos.h.
Definition at line 40 of file L1GctGlobalEnergyAlgos.h.
Definition at line 38 of file L1GctGlobalEnergyAlgos.h.
Enumerator | |
---|---|
etTotalMaxValue | |
etHadMaxValue | |
etMissMaxValue |
Definition at line 45 of file L1GctGlobalEnergyAlgos.h.
L1GctGlobalEnergyAlgos::L1GctGlobalEnergyAlgos | ( | const std::vector< L1GctWheelEnergyFpga * > & | WheelFpga, |
const std::vector< L1GctWheelJetFpga * > & | WheelJetFpga | ||
) |
Constructor needs the Wheel card Fpgas set up first.
Definition at line 16 of file L1GctGlobalEnergyAlgos.cc.
L1GctGlobalEnergyAlgos::~L1GctGlobalEnergyAlgos | ( | ) |
Destructor.
Definition at line 114 of file L1GctGlobalEnergyAlgos.cc.
|
virtual |
get input data from sources
Implements L1GctProcessor.
Definition at line 202 of file L1GctGlobalEnergyAlgos.cc.
|
inline |
return std::vector< output calibrated jet Et
Definition at line 132 of file L1GctGlobalEnergyAlgos.h.
|
inline |
return output missing Et magnitude
Access to output quantities for all bunch crossings
Definition at line 126 of file L1GctGlobalEnergyAlgos.h.
|
inline |
return output missing Et value
Definition at line 128 of file L1GctGlobalEnergyAlgos.h.
|
inline |
return output total scalar Et
Definition at line 130 of file L1GctGlobalEnergyAlgos.h.
|
inline |
provide access to hf sum processor
Definition at line 99 of file L1GctGlobalEnergyAlgos.h.
|
inline |
return output missing Ht magnitude
Definition at line 134 of file L1GctGlobalEnergyAlgos.h.
|
inline |
Definition at line 142 of file L1GctGlobalEnergyAlgos.h.
|
inline |
return output missing Ht value
Definition at line 136 of file L1GctGlobalEnergyAlgos.h.
|
inline |
return input Et value wheel 1
Definition at line 110 of file L1GctGlobalEnergyAlgos.h.
|
inline |
return input Et value wheel 0
Definition at line 117 of file L1GctGlobalEnergyAlgos.h.
|
inline |
return input Ex value wheel 1
Definition at line 102 of file L1GctGlobalEnergyAlgos.h.
|
inline |
return input Ey value wheel 0
Definition at line 106 of file L1GctGlobalEnergyAlgos.h.
|
inline |
return input Ex value wheel 1
Definition at line 104 of file L1GctGlobalEnergyAlgos.h.
|
inline |
return input Ey value wheel 0
Definition at line 108 of file L1GctGlobalEnergyAlgos.h.
|
inline |
return input Ht value wheel 1
Definition at line 112 of file L1GctGlobalEnergyAlgos.h.
|
inline |
return input Ht value wheel 0
Definition at line 119 of file L1GctGlobalEnergyAlgos.h.
|
inline |
return input Ht component values wheel 1
Definition at line 114 of file L1GctGlobalEnergyAlgos.h.
|
inline |
return input Ht value wheel 0
Definition at line 121 of file L1GctGlobalEnergyAlgos.h.
|
inline |
Definition at line 115 of file L1GctGlobalEnergyAlgos.h.
|
inline |
Definition at line 122 of file L1GctGlobalEnergyAlgos.h.
|
inline |
provide access to input pointer, Wheel Energy Fpga 0
Definition at line 93 of file L1GctGlobalEnergyAlgos.h.
|
inline |
provide access to input pointer, Wheel Jet Fpga 0
Definition at line 97 of file L1GctGlobalEnergyAlgos.h.
|
inline |
provide access to input pointer, Wheel Energy Fpga 1
Definition at line 91 of file L1GctGlobalEnergyAlgos.h.
|
inline |
provide access to input pointer, Wheel Jet Fpga 1
Definition at line 95 of file L1GctGlobalEnergyAlgos.h.
|
virtual |
process the data, fill output buffers
Implements L1GctProcessor.
Definition at line 225 of file L1GctGlobalEnergyAlgos.cc.
void L1GctGlobalEnergyAlgos::reset | ( | void | ) |
|
protectedvirtual |
Implements L1GctProcessor.
Definition at line 178 of file L1GctGlobalEnergyAlgos.cc.
|
protectedvirtual |
Separate reset methods for the processor itself and any data stored in pipelines.
Implements L1GctProcessor.
Definition at line 163 of file L1GctGlobalEnergyAlgos.cc.
void L1GctGlobalEnergyAlgos::setBxRange | ( | const int | firstBx, |
const int | numberOfBx | ||
) |
define the bunch crossing range to process
partially clear buffers
Definition at line 153 of file L1GctGlobalEnergyAlgos.cc.
void L1GctGlobalEnergyAlgos::setHtMissScale | ( | const L1CaloEtScale *const | scale | ) |
Definition at line 316 of file L1GctGlobalEnergyAlgos.cc.
void L1GctGlobalEnergyAlgos::setInputWheelEt | ( | unsigned | wheel, |
unsigned | energy, | ||
bool | overflow | ||
) |
set input Et value per wheel (0 or 1); not used in normal operation
Definition at line 362 of file L1GctGlobalEnergyAlgos.cc.
void L1GctGlobalEnergyAlgos::setInputWheelEx | ( | unsigned | wheel, |
int | energy, | ||
bool | overflow | ||
) |
set input Ex value per wheel (0 or 1); not used in normal operation
Definition at line 334 of file L1GctGlobalEnergyAlgos.cc.
void L1GctGlobalEnergyAlgos::setInputWheelEy | ( | unsigned | wheel, |
int | energy, | ||
bool | overflow | ||
) |
set input Ey value per wheel (0 or 1); not used in normal operation
Definition at line 348 of file L1GctGlobalEnergyAlgos.cc.
void L1GctGlobalEnergyAlgos::setInputWheelHt | ( | unsigned | wheel, |
unsigned | energy, | ||
bool | overflow | ||
) |
set input Ht value per wheel (0 or 1); not used in normal operation
Definition at line 376 of file L1GctGlobalEnergyAlgos.cc.
void L1GctGlobalEnergyAlgos::setInputWheelHx | ( | unsigned | wheel, |
unsigned | energy, | ||
bool | overflow | ||
) |
set input Ht component values per wheel (0 or 1); not used in normal operation
Definition at line 391 of file L1GctGlobalEnergyAlgos.cc.
void L1GctGlobalEnergyAlgos::setInputWheelHy | ( | unsigned | wheel, |
unsigned | energy, | ||
bool | overflow | ||
) |
Definition at line 406 of file L1GctGlobalEnergyAlgos.cc.
void L1GctGlobalEnergyAlgos::setInputWheelJc | ( | unsigned | wheel, |
unsigned | jcnum, | ||
unsigned | count | ||
) |
set input jet count (number 0-11) per wheel (0 or 1); not used in normal operation
void L1GctGlobalEnergyAlgos::setJetFinderParams | ( | const L1GctJetFinderParams *const | jfpars | ) |
Definition at line 309 of file L1GctGlobalEnergyAlgos.cc.
void L1GctGlobalEnergyAlgos::setNextBx | ( | const int | bx | ) |
partially clear buffers
Definition at line 158 of file L1GctGlobalEnergyAlgos.cc.
|
inlineprotectedvirtual |
Initialise inputs with null objects for the correct bunch crossing if required.
Implements L1GctProcessor.
Definition at line 153 of file L1GctGlobalEnergyAlgos.h.
bool L1GctGlobalEnergyAlgos::setupOk | ( | ) | const |
check setup
Definition at line 324 of file L1GctGlobalEnergyAlgos.cc.
|
friend |
Overload << operator.
|
private |
Definition at line 187 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 172 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 194 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 179 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 185 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 170 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 192 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 177 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 186 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 171 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 193 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 178 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 163 of file L1GctGlobalEnergyAlgos.h.
Definition at line 188 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 173 of file L1GctGlobalEnergyAlgos.h.
Definition at line 195 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 180 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 189 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 174 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 196 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 181 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 190 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 175 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 197 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 182 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 166 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 167 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 158 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 160 of file L1GctGlobalEnergyAlgos.h.
Definition at line 203 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 200 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 201 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 202 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 204 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 205 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 157 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 159 of file L1GctGlobalEnergyAlgos.h.
|
private |
Definition at line 207 of file L1GctGlobalEnergyAlgos.h.