ATLAS Offline Software
EnergySumRoI_v1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
6 // xAOD include(s):
8 
9 // Local include(s):
11 
12 namespace xAOD {
13 
15  : SG::AuxElement() {
16 
17  }
18 
26  void EnergySumRoI_v1::initialize( uint32_t roiword0, uint32_t roiword1,
27  uint32_t roiword2,
28  float energyX, float energyY,
29  float energyT ) {
30 
31  setRoIWord0( roiword0 );
32  setRoIWord1( roiword1 );
33  setRoIWord2( roiword2 );
34 
38 
39  return;
40  }
41 
43  //
44  // Implementation for the RoI word accessor functions
45  //
46 
48  setRoIWord0 )
50  setRoIWord1 )
52  setRoIWord2 )
53 
54  //
56 
58  //
59  // Implementation of the threshold pattern helper functions
60  //
61 
62  uint32_t EnergySumRoI_v1::thrPatSumET() const {
63 
64  return ( ( roiWord0() >> 16 ) & 0xff );
65  }
66 
68 
69  return ( ( roiWord1() >> 16 ) & 0xff );
70  }
71 
73 
74  return ( ( roiWord2() >> 16 ) & 0xff );
75  }
76 
77  //
79 
81  //
82  // Implementation of the overflow helper functions
83  //
84 
85  bool EnergySumRoI_v1::overflowX() const {
86 
87  return ( ( roiWord0() >> 15 ) & 0x1 );
88  }
89 
90  bool EnergySumRoI_v1::overflowY() const {
91 
92  return ( ( roiWord1() >> 15 ) & 0x1 );
93  }
94 
95  bool EnergySumRoI_v1::overflowT() const {
96 
97  return ( ( roiWord2() >> 15 ) & 0x1 );
98  }
99 
100  //
102 
104  //
105  // Implementation of the threshold accessor functions
106  //
107 
110  names( "thrNames" );
111 
112  void EnergySumRoI_v1::addThreshold( const std::string& name ) {
113 
114  names( *this ).push_back( name );
115  return;
116  }
117 
119 
120  names( *this ).clear();
121  return;
122  }
123 
124  const std::vector< std::string >& EnergySumRoI_v1::thrNames() const {
125 
126  return names( *this );
127  }
128 
129  //
131 
133  //
134  // Implementation for the energy accessor functions
135  //
136 
138  setEnergyX )
140  setEnergyY )
142  setEnergyT )
143 
144  //
146 
147 } // namespace xAOD
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
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
xAOD::name
name
Definition: TriggerMenuJson_v1.cxx:29
xAOD::EnergySumRoI_v1::setEnergyT
void setEnergyT(float value)
Set the deposited total transverse energy.
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
xAOD::EnergySumRoI_v1::overflowY
bool overflowY() const
The overflow flag for the EY calculation.
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:68
AuxStoreAccessorMacros.h
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
xAOD::EnergySumRoI_v1
Class describing a LVL1 energy-sum "RoI".
Definition: EnergySumRoI_v1.h:35
EnergySumRoI_v1.h
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::EnergySumRoI_v1::thrNames
const std::vector< std::string > & thrNames() const
The names of the thresholds passed.
Definition: EnergySumRoI_v1.cxx:124
xAOD::EnergySumRoI_v1::energyX
float energyX() const
The total energy deposited in the X direction.
xAOD::energyY
energyY
Definition: EnergySumRoI_v1.cxx:139
xAOD::EnergySumRoI_v1::initialize
void initialize(uint32_t roiword0, uint32_t roiword1, uint32_t roiword2, float energyX, float energyY, float energyT)
Initialise the object with its most important properties.
Definition: EnergySumRoI_v1.cxx:26
xAOD::EnergySumRoI_v1::EnergySumRoI_v1
EnergySumRoI_v1()
Default constructor.
Definition: EnergySumRoI_v1.cxx:14
xAOD::EnergySumRoI_v1::setRoIWord2
void setRoIWord2(uint32_t value)
Set the third "raw" RoI word describing the energy-sum RoI.
xAOD::EnergySumRoI_v1::energyY
float energyY() const
The total energy deposited in the Y direction.
python.subdetectors.mmg.names
names
Definition: mmg.py:8
xAOD::EnergySumRoI_v1::overflowX
bool overflowX() const
The overflow flag for the EX calculation.
xAOD::EnergySumRoI_v1::clearThresholds
void clearThresholds()
Remove all the passed thresholds.
Definition: EnergySumRoI_v1.cxx:118
xAOD::EnergySumRoI_v1::roiWord1
uint32_t roiWord1() const
The second RoI word produced by the L1Calo hardware.
xAOD::EnergySumRoI_v1::thrPatMETSig
uint32_t thrPatMETSig() const
The bit-pattern describing the passed missing-ET significance thresholds.
xAOD::EnergySumRoI_v1::addThreshold
void addThreshold(const std::string &name)
Add a new threshold that was passed.
xAOD::EnergySumRoI_v1::overflowT
bool overflowT() const
The overflow flag for the ET calculation.
xAOD::EnergySumRoI_v1::roiWord0
uint32_t roiWord0() const
The first RoI word produced by the L1Calo hardware.
xAOD::EnergySumRoI_v1::energyT
float energyT() const
The deposited total transverse energy.
xAOD::EnergySumRoI_v1::setRoIWord0
void setRoIWord0(uint32_t value)
Set the first "raw" RoI word describing the energy-sum RoI.
xAOD::EnergySumRoI_v1::setEnergyY
void setEnergyY(float value)
Set the total energy deposited in the Y direction.
xAOD::EnergySumRoI_v1::setEnergyX
void setEnergyX(float value)
Set the total energy deposited in the X direction.
xAOD::EnergySumRoI_v1::setRoIWord1
void setRoIWord1(uint32_t value)
Set the second "raw" RoI word describing the energy-sum RoI.
xAOD::EnergySumRoI_v1::roiWord2
uint32_t roiWord2() const
The third RoI word produced by the L1Calo hardware.
xAOD::EnergySumRoI_v1::thrPatMET
uint32_t thrPatMET() const
The bit-pattern describing the passed missing-ET thresholds.
xAOD::roiWord1
roiWord1
Definition: EnergySumRoI_v1.cxx:49