ATLAS Offline Software
jFexSumETRoI_v1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
6 // System include(s):
7 #include <stdexcept>
8 
9 // xAOD include(s):
11 
12 // Local include(s):
14 
15 namespace xAOD {
16 
18  : SG::AuxElement() {
19  }
20  void jFexSumETRoI_v1::initialize( uint8_t jFexNumber,uint8_t fpgaNumber, uint32_t tobWord, int resolution) {
21 
22  setTobWord ( tobWord );
30 
31  //include in future when xTOB in jFEX has been implemented.
32 
33  // If the object is a TOB then the isTOB should be true.
34  // For xTOB default is false, but should be set if a matching TOB is found
35  // if (type() == TOB) setIsTOB(1);
36  // else setIsTOB(0);
37 
38  return;
39  }
40 
41  //----------------
43  //----------------
44 
46  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( jFexSumETRoI_v1, uint8_t , jFexNumber, setjFexNumber)
47  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( jFexSumETRoI_v1, uint8_t , fpgaNumber, setfpgaNumber)
49 
51  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( jFexSumETRoI_v1, uint16_t, tobEt_lower , setTobEt_lower )
52  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( jFexSumETRoI_v1, uint16_t, tobEt_upper , setTobEt_upper )
53  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( jFexSumETRoI_v1, uint8_t , tobSat_lower, setTobSat_lower)
54  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( jFexSumETRoI_v1, uint8_t , tobSat_upper, setTobSat_upper)
55 
56 
58 
59 
60  //-----------------
62  //-----------------
63 
64  //include in future when xTOB in jFEX has been implemented.
65 
66 
67  //jFexSumETRoI_v1::ObjectType jFexSumETRoI_v1::type() const {
68  //if (Word1() == 0) return TOB;
69  //else return xTOB;
70  //}
71 
72  //Raw ET_lower on TOB scale (200 MeV/count)
73  uint16_t jFexSumETRoI_v1::unpackEt_lower() const {
74  return (tobWord() >> s_Et_lowerBit) & s_Et_lowerMask;
75  }
76 
77  //Raw ET_upper on TOB scale (200 MeV/count)
79  return (tobWord() >> s_Et_upperBit) & s_Et_upperMask;
80  }
81 
82  //Return sat Et_lower flag
84  return (tobWord() >> s_Sat_lowerBit) & s_Sat_lowerMask;
85  }
86  //Return sat Et_upper flag
88  return (tobWord() >> s_Sat_upperBit) & s_Sat_upperMask;
89  }
90 
92 
95  return tobEt_lower()*tobEtScale();
96  }
97 
100  return tobEt_upper()*tobEtScale();
101  }
102 
103 
104 } // namespace xAOD
105 
xAOD::AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
xAOD::jFexSumETRoI_v1::setTobSat_lower
void setTobSat_lower(uint8_t value)
xAOD::jFexSumETRoI_v1::unpackSat_upper
uint8_t unpackSat_upper() const
Definition: jFexSumETRoI_v1.cxx:87
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
xAOD::jFexSumETRoI_v1::unpackSat_lower
uint8_t unpackSat_lower() const
Definition: jFexSumETRoI_v1.cxx:83
AuxStoreAccessorMacros.h
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
xAOD::jFexSumETRoI_v1::tobEtScale
int tobEtScale() const
xAOD::jFexSumETRoI_v1::s_Et_upperMask
static const int s_Et_upperMask
Definition: jFexSumETRoI_v1.h:77
xAOD::jFexSumETRoI_v1::s_Sat_upperMask
static const int s_Sat_upperMask
Definition: jFexSumETRoI_v1.h:76
xAOD::jFexSumETRoI_v1::setTobEt_lower
void setTobEt_lower(uint16_t value)
xAOD::jFexSumETRoI_v1::s_Et_upperBit
static const int s_Et_upperBit
Definition: jFexSumETRoI_v1.h:71
xAOD::jFexSumETRoI_v1::setjFexNumber
void setjFexNumber(uint8_t jFexNumber)
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::jFexSumETRoI_v1::s_Sat_lowerBit
static const int s_Sat_lowerBit
Definition: jFexSumETRoI_v1.h:73
xAOD::jFexSumETRoI_v1::s_Sat_upperBit
static const int s_Sat_upperBit
Definition: jFexSumETRoI_v1.h:70
Dedxcorrection::resolution
double resolution[nGasTypes][nParametersResolution]
Definition: TRT_ToT_Corrections.h:46
xAOD::jFexSumETRoI_v1::setTobEt_upper
void setTobEt_upper(uint16_t value)
xAOD::jFexSumETRoI_v1::setResolution
void setResolution(int value)
xAOD::jFexSumETRoI_v1::initialize
void initialize(uint8_t jFexNumber, uint8_t fpgaNumber, uint32_t tobWord, int resolution)
In future initialze the xTOB as well, word1.
Definition: jFexSumETRoI_v1.cxx:20
xAOD::jFexSumETRoI_v1::s_Sat_lowerMask
static const int s_Sat_lowerMask
Definition: jFexSumETRoI_v1.h:79
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
xAOD::jFexSumETRoI_v1::Et_upper
int Et_upper() const
Et_upper in 1 MeV scale.
Definition: jFexSumETRoI_v1.cxx:99
jFexSumETRoI.h
xAOD::jFexSumETRoI_v1::jFexSumETRoI_v1
jFexSumETRoI_v1()
Default constructor.
Definition: jFexSumETRoI_v1.cxx:17
xAOD::jFexSumETRoI_v1::setTobWord
void setTobWord(uint32_t tobWord)
Set the "raw" 32-bit words describing the object candidate.
xAOD::jFexSumETRoI_v1
Class describing properties of a LVL1 jFEX global Trigger Object (TOB) in the xAOD format.
Definition: jFexSumETRoI_v1.h:22
xAOD::jFexSumETRoI_v1::jFexNumber
uint8_t jFexNumber() const
xAOD::jFexSumETRoI_v1::tobEt_upper
uint16_t tobEt_upper() const
xAOD::jFexSumETRoI_v1::setfpgaNumber
void setfpgaNumber(uint8_t fpgaNumber)
xAOD::jFexSumETRoI_v1::fpgaNumber
uint8_t fpgaNumber() const
xAOD::jFexSumETRoI_v1::unpackEt_lower
uint16_t unpackEt_lower() const
Raw data words.
Definition: jFexSumETRoI_v1.cxx:73
xAOD::tobEtScale
tobEtScale
Definition: gFexJetRoI_v1.cxx:64
xAOD::jFexSumETRoI_v1::tobWord
uint32_t tobWord() const
The "raw" 32-bit word describing the object candidate.
xAOD::jFexSumETRoI_v1::tobEt_lower
uint16_t tobEt_lower() const
xAOD::jFexSumETRoI_v1::unpackEt_upper
uint16_t unpackEt_upper() const
Definition: jFexSumETRoI_v1.cxx:78
xAOD::jFexSumETRoI_v1::Et_lower
int Et_lower() const
Methods that require combining results or applying scales.
Definition: jFexSumETRoI_v1.cxx:94
xAOD::jFexSumETRoI_v1::setTobSat_upper
void setTobSat_upper(uint8_t value)