ATLAS Offline Software
JetRoI_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 
19  void JetRoI_v1::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 
37 
38  return ( roiWord() & 0xfff );
39  }
40 
41  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( JetRoI_v1, float, et4x4, setEt4x4 )
42  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( JetRoI_v1, float, et6x6, setEt6x6 )
43  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( JetRoI_v1, float, et8x8, setEt8x8 )
44 
45 
47  names( "thrNames" );
50  values( "thrValues" );
51 
55  void JetRoI_v1::addThreshold( const std::string& name, float value ) {
56 
57  names( *this ).push_back( name );
58  values( *this ).push_back( value );
59 
60  return;
61  }
62 
67 
68  names( *this ).clear();
69  values( *this ).clear();
70 
71  return;
72  }
73 
74  AUXSTORE_OBJECT_GETTER( JetRoI_v1, std::vector< std::string >, thrNames )
75  AUXSTORE_OBJECT_GETTER( JetRoI_v1, std::vector< float >, thrValues )
76 
77 } // namespace xAOD
xAOD::JetRoI_v1::clearThresholds
void clearThresholds()
Remove all the passed thresholds from the RoI.
Definition: JetRoI_v1.cxx:66
xAOD::JetRoI_v1::phi
float phi() const
The azimuthal angle ( ) of the jet candidate.
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
xAOD::JetRoI_v1::roiWord
uint32_t roiWord() const
The "raw" RoI word describing the jet candidate.
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
xAOD::JetRoI_v1::setRoIWord
void setRoIWord(uint32_t value)
Set the "raw" RoI word, describing the jet candidate.
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
JetRoI_v1.h
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_v1::JetRoI_v1
JetRoI_v1()
Default constructor.
Definition: JetRoI_v1.cxx:14
Amg::setPhi
Amg::RotationMatrix3D setPhi(Amg::RotationMatrix3D mat, double angle, int convention=0)
Definition: EulerAnglesHelpers.h:102
xAOD::phi
setEt phi
Definition: TrigEMCluster_v1.cxx:29
xAOD::roiWord
roiWord
Definition: TrigMissingET_v1.cxx:36
xAOD::JetRoI_v1::eta
float eta() const
The pseudorapidity ( ) of the jet candidate.
xAOD::JetRoI_v1::initialize
void initialize(uint32_t roiword, float eta, float phi)
Initialise the object with its most important properties.
Definition: JetRoI_v1.cxx:19
xAOD::JetRoI_v1::addThreshold
void addThreshold(const std::string &name, float value)
Add a new threshold that was passed by the RoI.
Definition: JetRoI_v1.cxx:55
xAOD::JetRoI_v1::thrPattern
uint32_t thrPattern() const
The pattern describing which thresholds were passed by the jet.
xAOD::JetRoI_v1::setEta
void setEta(float v)
Set the pseudorapidity of the jet candidate.
xAOD::AUXSTORE_OBJECT_GETTER
AUXSTORE_OBJECT_GETTER(TrigComposite_v1, std::vector< std::string >, linkColNames) AUXSTORE_OBJECT_GETTER(TrigComposite_v1
xAOD::JetRoI_v1
Class describing a LVL1 jet region of interest.
Definition: JetRoI_v1.h:35
xAOD::JetRoI_v1::setPhi
void setPhi(float v)
Set the azimuthal angle of the jet candidate.