30 using std::numbers::pi;
44 float phiVal =
iPhi() *
pi/32. +
pi/64.;
45 if (phiVal >
pi) phiVal = phiVal - 2.*
pi;
60 using std::numbers::pi;
71 float phiVal =
iPhi() *
pi/32. +
pi/64.;
72 if (phiVal >
pi) phiVal = phiVal - 2.*
pi;
102 setWstotDenominator )
214 if (sum > 0)
return (1. -
RetaCore()/sum);
220 if (sum > 0)
return (
RhadHad()/sum);
Scalar eta() const
pseudorapidity method
#define AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of primitive auxiliary properties.
AuxElement()
Default constructor.
Class describing a LVL1 eFEX EM region of interest.
void setEt(float value)
floating point value (MeV, TOB scale)
static const int s_numPhi
static const int s_updownMask
unsigned int shelfNumber() const
static const float s_xTobEtScale
uint16_t WstotDenominator() const
uint32_t word0() const
The "raw" 32-bit words describing the e/gamma candidate.
void setPhi(float value)
Floating point, ATLAS phi convention (-pi -> pi)
static const float s_tobEtScale
Constants used in converting to ATLAS units.
static const int s_fpgaMask
static const int s_seedMask
static const int s_seedBit
unsigned int eFexNumber() const
Methods to decode data from the TOB/RoI and return to the user.
uint16_t WstotNumerator() const
void setWord1(uint32_t value)
uint16_t RetaCore() const
Actual values used in algorithm (setters and getters)
static const int s_etaBit
static const int s_veto3Mask
unsigned int bcn4() const
static const int s_phiMask
unsigned int RetaThresholds() const
Jet Discriminant 1 (R_eta) results.
unsigned int WstotThresholds() const
Jet Discriminant 3 (W_stot) results.
float Reta() const
Jet Discriminants Derived floating point values (not used in actual algorithm)
static const int s_etBitXTOB
static const int s_etFullMask
unsigned int fpga() const
FPGA number.
unsigned int fpgaPhi() const
phi index within FPGA
static const int s_fpgaBit
Constants used in decoding TOB words For TOB word format changes these can be replaced by arrays in t...
static const int s_veto2Mask
static const int s_eFexPhiOffset
static const int s_bcn4Bit
void setWord0(uint32_t value)
Set the "raw" 32-bit words describing the e/gamma candidate.
unsigned int fpgaEta() const
eta index within FPGA
static const int s_minEta
int iPhi() const
Setter for the above.
static const int s_shelfPhiWidth
static const int s_etaMask
static const int s_shelfBit
static const int s_phiBit
void initialize(unsigned int eFexNumber, unsigned int shelf, uint32_t word0)
Initialise the object with its most important properties TOB initialiser.
static const int s_updownBit
static const int s_eFexPhiWidth
static const int s_maxMask
unsigned int RhadThresholds() const
Jet Discriminant 2 (R_had) results.
static const int s_shelfMask
unsigned int etTOB() const
Cluster ET (TOB ET scale, 100 MeV/count)
static const int s_veto3Bit
static const int s_veto1Bit
static const int s_veto2Bit
unsigned int seedMax() const
Seed = max flag. Is this really useful?
static const int s_veto1Mask
unsigned int UpNotDown() const
Cluster up/down flag (1 = up, 0 = down)
static const int s_etMask
int iEta() const
setter for the above
static const int s_fpgaEtaWidth
static const int s_bcn4Mask
int iEtaTopo() const
Getter for integer phi index (0-63)
static const int s_eFexMask
void setEta(float value)
Getter for floating point, full precision (0.025) eta.
static const int s_eFexBit
unsigned int seed() const
getter for integer eta index (-25->+24)
static const float s_towerEtaWidth
static const int s_maxBit
ObjectType type() const
Data decoded from the TOB/RoI word and eFEX number.
@ xTOB
This object is an xTOB (2*32 bit words)
@ TOB
This object is a TOB (1*32 bit word)
eFexEMRoI_v1()
Default constructor.
static const int s_eFexEtaWidth
unsigned int etXTOB() const
Cluster ET (xTOB ET scale, 25 MeV/count)
uint32_t tobWord() const
Return TOB word corresponding to this TOB or xTOB.
int iPhiTopo() const
Return phi index in the range used by L1Topo (0->127)
void setIsTOB(char value)
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setWord1 setRetaEnv RhadHad
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
setWord1 setRetaEnv setRhadHad WstotDenominator