20 using std::numbers::pi;
24 -2.9, -2.7, -2.5, -2.2, -2.0, -1.8, -1.6, -1.4, -1.2, -1.0,
25 -0.8, -0.6, -0.4, -0.2, 0.0, 0.2, 0.4, 0.6, 0.8, 1.0,
26 1.2, 1.4, 1.6, 1.8, 2.0, 2.2, 2.5, 2.7, 2.9,
27 3.1,3.25, 3.3, 3.5, 4.1, 4.9 };
30 -2.8, -2.6, -2.35, -2.1, -1.9, -1.7, -1.5, -1.3, -1.1, -0.9,
31 -0.7, -0.5, -0.3, -0.1, 0.1, 0.3, 0.5, 0.7, 0.9, 1.1,
32 1.3, 1.5, 1.7, 1.9, 2.1, 2.35, 2.6, 2.8, 3.0,
33 3.15, 3.18, 3.38, 3.8, 4.5};
57 return static_cast<int>(
eta()*40)/4;
83 static const Accessor< uint8_t >
acc(
"gFexJetStatus" );
102 else if (tobID == 1 || tobID == 2) {
105 else if (tobID == 3 || tobID == 4 ) {
108 else if (tobID == 5 || tobID == 6) {
173 new_iEtaFR = (
int(
iPhi())%2 == 0) ? 0 : 1 ;
176 new_iEtaFR = (
int(
iPhi())%2 == 0) ? 2 : 3 ;
179 new_iEtaFR = (
int(
iPhi())%2 == 0) ? 37 : 36 ;
182 new_iEtaFR = (
int(
iPhi())%2 == 0) ? 39 : 38 ;
201 new_iEtaFR = (
int(
iPhi())%2 == 0) ? 0 : 1 ;
204 new_iEtaFR = (
int(
iPhi())%2 == 0) ? 2 : 3 ;
207 new_iEtaFR = (
int(
iPhi())%2 == 0) ? 37 : 36 ;
210 new_iEtaFR = (
int(
iPhi())%2 == 0) ? 39 : 38 ;
228 new_iEtaFR = (
int(
iPhi())%2 == 0) ? 0 : 1 ;
231 new_iEtaFR = (
int(
iPhi())%2 == 0) ? 2 : 3 ;
234 new_iEtaFR = (
int(
iPhi())%2 == 0) ? 37 : 36 ;
237 new_iEtaFR = (
int(
iPhi())%2 == 0) ? 39 : 38 ;
260 if (
int(
iPhi()%2) == 0 ){
266 phi_idx = (
iPhi()-1)/2;
335 if ((
iEta() <= 3 ) || ( (
iEta() >= 36) )){
336 phi_out = ( 8 *
iPhi() ) + 4;
339 phi_out = ( 4 *
iPhi() ) + 2;
#define AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of primitive auxiliary properties.
SG::Accessor< T, ALLOC > Accessor
AuxElement()
Default constructor.
Class describing properties of a LVL1 gFEX jet Trigger Object (TOB) in the xAOD format.
float phi() const
High value of phi corresponding to phi index (using gFex convention, phi in [0, 2pi]).
float phiMin() const
Central value of phi corresponding to phi index (using ATLAS convention, phi in [-pi,...
void setScale(int value)
Set the "raw" 32-bit words describing the object candidate.
static const int s_saturMask
static const int s_tobIDMask
static const int s_tobIDBit
void setPhi(uint8_t value)
Getter for integer phi index (0-32) --> check numbers for gFEX.
static const float s_PhiWidth
Constants used in converting to ATLAS units.
float phi_gFex() const
retrieves the phi index from the 32-bit word
void setgFexType(int type)
float etaMin() const
Floating point.
float etaMax() const
Floating point.
void setTobEt(int16_t value)
getter for integer ET on TOB scale (3.2 GeV/count)
unsigned int unpackPhiIndex() const
Setter for the above.
uint8_t iEta() const
floating point value (GeV, TOB scale)
unsigned int unpackEtaIndex() const
setter for the above
int menuEta() const
the eta index to use for looking up thresholds in the menu
bool isgBlockLead() const
Identification of object type with flags.
void setSaturated(uint8_t value)
int16_t gFexTobEt() const
TOB ET (decoded from TOB, stored for convenience)
uint8_t iPhi() const
Floating point.
int iPhiTopo() const
High value of phi corresponding to phi index (using ATLAS convention, phi in [-pi,...
static const std::vector< float > s_EtaEdge
uint32_t word() const
The "raw" 32-bit word describing the object candidate.
void setEta(uint8_t value)
getter for integer eta index (0-63)
static const std::vector< float > s_EtaCenter
static const int s_etaBit
unsigned int unpackStatus() const
float eta() const
retrieves the Eta index from the 32-bit word
void setWord(uint32_t value)
Set the "raw" 32-bit words describing the object candidate.
float et() const
retrieves the Et index from the 32-bit word
static const int s_phiMask
void setStatus(uint8_t value)
@ gBlockLead
This object is a TOB (32 bit word)
@ gBlockSub
This object is a TOB (32 bit word)
@ gJet
This object is a TOB (32 bit word)
unsigned int unpackSaturated() const
static const int s_statusMask
int16_t unpackEt() const
setter for the above
gFexJetRoI_v1()
Default constructor.
float phiMax_gFex() const
Low value of phi corresponding to phi index (using gFex convention, phi in [0, 2pi]).
static const int s_saturBit
Constants used in decoding TOB words For TOB word format changes these can be replaced by arrays in t...
static const int s_statusBit
void initialize(uint32_t word, int tobEtScale)
Initialise the object with its most important properties: only the word for gFEX.
static const int s_etMask
static const int s_etaMask
int gFexType() const
retrieves the Saturated info from the 32-bit word
static const float s_PhiWidthFR
float phiMin_gFex() const
Central value of phi corresponding to phi index (using gFex convention, phi in [0,...
static const int s_phiBit
float phiMax() const
Low value of phi corresponding to phi index (using ATLAS convention, phi in [-pi, pi]).
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setScale setgFexType iEta
setScaleOne setStatusOne saturated
setScaleOne setStatusOne setSaturated int16_t
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
static const SG::AuxElement::Accessor< ElementLink< IParticleContainer > > acc("originalObjectLink")
Object used for setting/getting the dynamic decoration in question.