ATLAS Offline Software
JetRoI_v2.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 
19  void JetRoI_v2::initialize( uint32_t roiword, float eta, float phi ) {
20 
21  setRoIWord( roiword );
22  setEta( eta );
23  setPhi( phi );
24 
25  return;
26  }
27 
31  setRoIWord )
32 
33  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( JetRoI_v2, float, etScale, setEtScale )
34 
35 
36  float JetRoI_v2::etLarge() const {
39  if ( (roiWord() & 0xe0000000) == 0 ) {
40  if (etScale() == 0) return ( roiWord() & 0x3ff );
41  return ( (roiWord() & 0x3ff)*etScale() );
42  }
43  return 0;
44  }
45 
46  float JetRoI_v2::etSmall() const {
47  if ( (roiWord() & 0xe0000000) == 0 ) {
48  if (etScale() == 0) return ( (roiWord()>>10) & 0x1ff );
49  return ( ((roiWord()>>10) & 0x1ff)*etScale() );
50  }
51  return 0;
52  }
53 
56  setThrPattern )
57 
58  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( JetRoI_v2, float, et4x4, setEt4x4 )
59  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( JetRoI_v2, float, et6x6, setEt6x6 )
60  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( JetRoI_v2, float, et8x8, setEt8x8 )
61 
62 
64  names( "thrNames" );
67  values( "thrValues" );
68 
72  void JetRoI_v2::addThreshold( const std::string& name, float value ) {
73 
74  names( *this ).push_back( name );
75  values( *this ).push_back( value );
76 
77  return;
78  }
79 
84 
85  names( *this ).clear();
86  values( *this ).clear();
87 
88  return;
89  }
90 
91  AUXSTORE_OBJECT_GETTER( JetRoI_v2, std::vector< std::string >, thrNames )
92  AUXSTORE_OBJECT_GETTER( JetRoI_v2, std::vector< float >, thrValues )
93 
94 } // namespace xAOD
xAOD::JetRoI_v2::etSmall
float etSmall() const
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::name
name
Definition: TriggerMenuJson_v1.cxx:29
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:66
AuxStoreAccessorMacros.h
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
xAOD::JetRoI_v2::etLarge
float etLarge() const
The ET values stored in the RoI.
xAOD::JetRoI_v2::setRoIWord
void setRoIWord(uint32_t value)
Set the "raw" RoI word, describing the jet candidate.
athena.value
value
Definition: athena.py:122
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::JetRoI_v2::initialize
void initialize(uint32_t roiword, float eta, float phi)
Initialise the object with its most important properties.
Definition: JetRoI_v2.cxx:19
Amg::setPhi
Amg::RotationMatrix3D setPhi(Amg::RotationMatrix3D mat, double angle, int convention=0)
Definition: EulerAnglesHelpers.h:102
python.Bindings.values
values
Definition: Control/AthenaPython/python/Bindings.py:797
xAOD::phi
setEt phi
Definition: TrigEMCluster_v1.cxx:29
xAOD::roiWord
roiWord
Definition: TrigMissingET_v1.cxx:36
xAOD::JetRoI_v2::clearThresholds
void clearThresholds()
Remove all the passed thresholds from the RoI.
Definition: JetRoI_v2.cxx:83
xAOD::JetRoI_v2::etScale
float etScale() const
The ET scale for RoI digits.
JetRoI_v2.h
xAOD::JetRoI_v2::eta
float eta() const
The pseudorapidity ( ) of the jet candidate.
python.subdetectors.mmg.names
names
Definition: mmg.py:8
xAOD::JetRoI_v2::phi
float phi() const
The azimuthal angle ( ) of the jet candidate.
xAOD::JetRoI_v2::JetRoI_v2
JetRoI_v2()
Default constructor.
Definition: JetRoI_v2.cxx:14
xAOD::JetRoI_v2
Class describing a LVL1 jet region of interest.
Definition: JetRoI_v2.h:35
xAOD::JetRoI_v2::roiWord
uint32_t roiWord() const
The "raw" RoI word describing the jet candidate.
xAOD::thrPattern
thrPattern
Definition: EmTauRoI_v2.cxx:60
xAOD::AUXSTORE_OBJECT_GETTER
AUXSTORE_OBJECT_GETTER(TrigComposite_v1, std::vector< std::string >, linkColNames) AUXSTORE_OBJECT_GETTER(TrigComposite_v1
xAOD::JetRoI_v2::setPhi
void setPhi(float v)
Set the azimuthal angle of the jet candidate.
xAOD::JetRoI_v2::addThreshold
void addThreshold(const std::string &name, float value)
Add a new threshold that was passed by the RoI.
Definition: JetRoI_v2.cxx:72
xAOD::JetRoI_v2::setEta
void setEta(float v)
Set the pseudorapidity of the jet candidate.