ATLAS Offline Software
Loading...
Searching...
No Matches
EnergyCorrelatorTool Class Reference

#include <EnergyCorrelatorTool.h>

Inheritance diagram for EnergyCorrelatorTool:
Collaboration diagram for EnergyCorrelatorTool:

Classes

struct  moments_t
 ECF moments structure. More...

Public Member Functions

 EnergyCorrelatorTool (const std::string &name)
 Constructor.
virtual StatusCode initialize () override
 Dummy implementation of the initialisation function.
StatusCode modify (xAOD::JetContainer &jets) const override
 Loop over calls to modifyJet.
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const
Additional helper functions, not directly mimicking Athena
template<class T>
const T * getProperty (const std::string &name) const
 Get one of the tool's properties.
const std::string & msg_level_name () const __attribute__((deprecated))
 A deprecated function for getting the message level's name.
const std::string & getName (const void *ptr) const
 Get the name of an object that is / should be in the event store.
SG::sgkey_t getKey (const void *ptr) const
 Get the (hashed) key of an object that is in the event store.

Protected Member Functions

bool SetupDecoration (fastjet::PseudoJet &pseudojet, const xAOD::Jet &jet, bool requireJetStructure=false) const
bool checkForConstituents (const xAOD::Jet &jet) const
fastjet::PseudoJet buildPseudoJet (const xAOD::Jet &jet, bool requireJetStructure=false) const
fastjet::PseudoJet buildPseudoJet (const std::vector< const xAOD::IParticle * > &iparticles) const
virtual void print () const
 Print the state of the tool.
virtual int modifyJet (xAOD::Jet &jet) const
 Modify a single jet. This is obsolete and set to be removed.
void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Protected Attributes

std::string m_inputContainer
std::string m_prefix

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

Gaudi::Property< std::string > m_jetContainerName
float m_Beta
 Configurable as properties.
bool m_doC3
bool m_doC4
std::vector< float > m_rawBetaVals
bool m_doDichroic
 Vector of input values before cleaning.
std::vector< std::pair< float, moments_t > > m_moments
 Map of moment calculators and decorators using beta as the key.
SG::WriteDecorHandleKeyArray< xAOD::JetContainerm_ECF1_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainerm_ECF2_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainerm_ECF3_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainerm_ECF4_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainerm_ECF5_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainerm_ECF1_ungroomed_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainerm_ECF2_ungroomed_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainerm_ECF3_ungroomed_Keys
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description


The default behavior of this tool is to use beta = 1.0, but multiple values of beta can be used simultaneously. The property BetaList should be passed a list of floats. Values of < 0 or > 10 may result in problematic output variable names and all values will be rounded to the nearest 0.1. No suffix will be added to the outputs for beta = 1.0 and for other values a suffix of _BetaN will be added where N = int(10*beta).

The DoDichroic option adds dichroic energy correlator ratios described

on page 120 in https://arxiv.org/abs/1803.07977

Definition at line 29 of file EnergyCorrelatorTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ EnergyCorrelatorTool()

EnergyCorrelatorTool::EnergyCorrelatorTool ( const std::string & name)

Constructor.

Definition at line 9 of file EnergyCorrelatorTool.cxx.

9 :
11{
12 declareProperty("Beta", m_Beta = 1.0);
13 declareProperty("BetaList", m_rawBetaVals = {});
14 declareProperty("DoC3", m_doC3 = false);
15 declareProperty("DoC4", m_doC4 = false);
16 declareProperty("DoDichroic", m_doDichroic = false);
17}
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
float m_Beta
Configurable as properties.
std::vector< float > m_rawBetaVals
bool m_doDichroic
Vector of input values before cleaning.
JetSubStructureMomentToolsBase(const std::string &name)

Member Function Documentation

◆ buildPseudoJet() [1/2]

fastjet::PseudoJet JetSubStructureMomentToolsBase::buildPseudoJet ( const std::vector< const xAOD::IParticle * > & iparticles) const
protectedinherited

Definition at line 59 of file JetSubStructureMomentToolsBase.cxx.

59 {
60 std::vector<fastjet::PseudoJet> pjs;
61 pjs.reserve(iparticles.size());
62 for (const auto *iparticle : iparticles)
63 pjs.emplace_back(iparticle->p4());
64 return fastjet::join(pjs);
65}

◆ buildPseudoJet() [2/2]

fastjet::PseudoJet JetSubStructureMomentToolsBase::buildPseudoJet ( const xAOD::Jet & jet,
bool requireJetStructure = false ) const
protectedinherited

Definition at line 54 of file JetSubStructureMomentToolsBase.cxx.

54 {
55 std::vector<fastjet::PseudoJet> constit_pseudojets = jet::JetConstituentFiller::constituentPseudoJets(jet,true,requireJetStructure);
56 return fastjet::join(constit_pseudojets);
57}
static PseudoJetVector constituentPseudoJets(const xAOD::Jet &jet, bool ignoreGhosts=true, bool requireJetStructure=false)
Returns the jet's constituents as a vector of PseudoJet if ignoreGhosts==true, ghost constituents are...

◆ checkForConstituents()

bool JetSubStructureMomentToolsBase::checkForConstituents ( const xAOD::Jet & jet) const
inlineprotectedinherited

Definition at line 33 of file JetSubStructureMomentToolsBase.h.

33 {
34 if(jet.numConstituents() == 0) {
35 ATH_MSG_WARNING("Attempting to use a substructure tool on a jet that has no constituent");
36 return false;
37 } else {
38 return true;
39 }
40 }
#define ATH_MSG_WARNING(x)
size_t numConstituents() const
Number of constituents in this jets (this is valid even when reading a file where the constituents ha...
Definition Jet_v1.cxx:153

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ getKey()

SG::sgkey_t asg::AsgTool::getKey ( const void * ptr) const
inherited

Get the (hashed) key of an object that is in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::TEvent both provide ways for getting the SG::sgkey_t key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getName
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The hashed key of the object in the store. If not found, an invalid (zero) key.

Definition at line 119 of file AsgTool.cxx.

119 {
120
121#ifdef XAOD_STANDALONE
122 // In case we use @c xAOD::TEvent, we have a direct function call
123 // for this.
124 return evtStore()->event()->getKey( ptr );
125#else
126 const SG::DataProxy* proxy = evtStore()->proxy( ptr );
127 return ( proxy == nullptr ? 0 : proxy->sgkey() );
128#endif // XAOD_STANDALONE
129 }
ServiceHandle< StoreGateSvc > & evtStore()

◆ getName()

const std::string & asg::AsgTool::getName ( const void * ptr) const
inherited

Get the name of an object that is / should be in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::TEvent both provide ways for getting the std::string name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getKey
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The string name of the object in the store. If not found, an empty string.

Definition at line 106 of file AsgTool.cxx.

106 {
107
108#ifdef XAOD_STANDALONE
109 // In case we use @c xAOD::TEvent, we have a direct function call
110 // for this.
111 return evtStore()->event()->getName( ptr );
112#else
113 const SG::DataProxy* proxy = evtStore()->proxy( ptr );
114 static const std::string dummy = "";
115 return ( proxy == nullptr ? dummy : proxy->name() );
116#endif // XAOD_STANDALONE
117 }

◆ getProperty()

template<class T>
const T * asg::AsgTool::getProperty ( const std::string & name) const
inherited

Get one of the tool's properties.

◆ initialize()

StatusCode EnergyCorrelatorTool::initialize ( void )
overridevirtual

Dummy implementation of the initialisation function.

It's here to allow the dual-use tools to skip defining an initialisation function. Since many are doing so...

Call base class initialize to fix up m_prefix

Add beta = 1.0 by default

Add beta = m_Beta by default to keep backwards compatibility

Give warning about deprecation

Use m_Beta to not break analysis code

Clean up input list of beta values

Round to the nearest 0.1

Skip negative values of beta

Store value. std::map::emplace prevents duplicate entries

Print out list of beta values to debug stream

If DoC4 is set to true, set DoC3 to true by default since it won't add any additional computational overhead

Reimplemented from asg::AsgTool.

Definition at line 19 of file EnergyCorrelatorTool.cxx.

19 {
20 if(m_jetContainerName.empty()){
21 ATH_MSG_ERROR("EnergyCorrelatorTool needs to have its input jet container name configured!");
22 return StatusCode::FAILURE;
23 }
24
27
29 m_moments.emplace_back( 1.0, moments_t(1.0, m_prefix) );
30
32 if( std::abs(m_Beta-1.0) > 1.0e-5 ) {
33
35 ATH_MSG_WARNING( "The Beta property is deprecated, please use the BetaList property to provide a list of values");
36
38 m_moments.emplace_back( m_Beta, moments_t(m_Beta, m_prefix) );
39
40 }
41
43 for( float beta : m_rawBetaVals ) {
44
46 float betaFix = round( beta * 10.0 ) / 10.0;
47 if( std::abs(beta-betaFix) > 1.0e-5 ) ATH_MSG_DEBUG( "beta = " << beta << " has been rounded to " << betaFix );
48
50 if( betaFix < 0.0 ) {
51 ATH_MSG_WARNING( "beta must be positive. Skipping beta = " << beta );
52 continue;
53 }
54
56 m_moments.emplace_back( betaFix, moments_t(betaFix, m_prefix) );
57
58 }
59
61 for( auto const& moment : m_moments ) {
62 ATH_MSG_DEBUG( "Including beta = " << moment.first );
63 }
64
67 if( m_doC4 ) m_doC3 = true;
68
69 // Initialise WriteDecorHandleKeys
70 for( const auto& [beta, moment] : m_moments ) {
71 m_ECF1_Keys.emplace_back(m_jetContainerName + "." + moment.prefix +
72 "ECF1" + moment.suffix);
73 m_ECF2_Keys.emplace_back(m_jetContainerName + "." + moment.prefix +
74 "ECF2" + moment.suffix);
75 m_ECF3_Keys.emplace_back(m_jetContainerName + "." + moment.prefix +
76 "ECF3" + moment.suffix);
77 m_ECF4_Keys.emplace_back(m_jetContainerName + "." + moment.prefix +
78 "ECF4" + moment.suffix);
79 m_ECF5_Keys.emplace_back(m_jetContainerName + "." + moment.prefix +
80 "ECF5" + moment.suffix);
81 m_ECF1_ungroomed_Keys.emplace_back(m_jetContainerName + "." + moment.prefix +
82 "ECF1_ungroomed" + moment.suffix);
83 m_ECF2_ungroomed_Keys.emplace_back(m_jetContainerName + "." + moment.prefix +
84 "ECF2_ungroomed" + moment.suffix);
85 m_ECF3_ungroomed_Keys.emplace_back(m_jetContainerName + "." + moment.prefix +
86 "ECF3_ungroomed" + moment.suffix);
87 }
88
89 ATH_CHECK(m_ECF1_Keys.initialize());
90 ATH_CHECK(m_ECF2_Keys.initialize());
91 ATH_CHECK(m_ECF3_Keys.initialize());
92 ATH_CHECK(m_ECF4_Keys.initialize());
93 ATH_CHECK(m_ECF5_Keys.initialize());
94 ATH_CHECK(m_ECF1_ungroomed_Keys.initialize());
95 ATH_CHECK(m_ECF2_ungroomed_Keys.initialize());
96 ATH_CHECK(m_ECF3_ungroomed_Keys.initialize());
97
98 return StatusCode::SUCCESS;
99
100}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define ATH_MSG_DEBUG(x)
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_ECF2_ungroomed_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_ECF5_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_ECF1_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_ECF3_ungroomed_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_ECF3_Keys
std::vector< std::pair< float, moments_t > > m_moments
Map of moment calculators and decorators using beta as the key.
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_ECF4_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_ECF2_Keys
Gaudi::Property< std::string > m_jetContainerName
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_ECF1_ungroomed_Keys
StatusCode initialize()
Dummy implementation of the initialisation function.
float round(const float toRound, const unsigned int decimals)
Definition Mdt.cxx:27

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ modify()

StatusCode EnergyCorrelatorTool::modify ( xAOD::JetContainer & jets) const
overridevirtual

Loop over calls to modifyJet.

Bool to decide whether calculation should be performed

Bool to decide if ungroomed jet moments should be calculated

Get parent jet

Return error is parent element link is broken

Reimplemented from JetModifierBase.

Definition at line 102 of file EnergyCorrelatorTool.cxx.

102 {
103
104 std::vector<SG::WriteDecorHandle<xAOD::JetContainer, float>> wdhs_ECF1;
105 std::vector<SG::WriteDecorHandle<xAOD::JetContainer, float>> wdhs_ECF2;
106 std::vector<SG::WriteDecorHandle<xAOD::JetContainer, float>> wdhs_ECF3;
107 std::vector<SG::WriteDecorHandle<xAOD::JetContainer, float>> wdhs_ECF4;
108 std::vector<SG::WriteDecorHandle<xAOD::JetContainer, float>> wdhs_ECF5;
109
110 std::vector<SG::WriteDecorHandle<xAOD::JetContainer, float>> wdhs_ECF1_ungroomed;
111 std::vector<SG::WriteDecorHandle<xAOD::JetContainer, float>> wdhs_ECF2_ungroomed;
112 std::vector<SG::WriteDecorHandle<xAOD::JetContainer, float>> wdhs_ECF3_ungroomed;
113
114 for(unsigned int i=0; i<m_moments.size(); i++) {
115 wdhs_ECF1.emplace_back(m_ECF1_Keys[i]);
116 wdhs_ECF2.emplace_back(m_ECF2_Keys[i]);
117 wdhs_ECF3.emplace_back(m_ECF3_Keys[i]);
118 wdhs_ECF4.emplace_back(m_ECF4_Keys[i]);
119 wdhs_ECF5.emplace_back(m_ECF5_Keys[i]);
120
121 wdhs_ECF1_ungroomed.emplace_back(m_ECF1_ungroomed_Keys[i]);
122 wdhs_ECF2_ungroomed.emplace_back(m_ECF2_ungroomed_Keys[i]);
123 wdhs_ECF3_ungroomed.emplace_back(m_ECF3_ungroomed_Keys[i]);
124 }
125
126 for(const xAOD::Jet* injet : jets){
127
128 fastjet::PseudoJet jet;
129 fastjet::PseudoJet jet_ungroomed;
130
132 bool calculate = SetupDecoration(jet,*injet);
133
135 bool calculate_ungroomed = false;
136
137 if( m_doDichroic ) {
138
140 static const SG::ConstAccessor<ElementLink<xAOD::JetContainer> > ParentAcc ("Parent");
141 ElementLink<xAOD::JetContainer> parentLink = ParentAcc (*injet);
142
144 if( !parentLink.isValid() ) {
145 ATH_MSG_ERROR( "Parent element link is not valid. Aborting" );
146 return StatusCode::FAILURE;
147 }
148
149 const xAOD::Jet* parentJet = *(parentLink);
150 calculate_ungroomed = SetupDecoration(jet_ungroomed,*parentJet);
151
152 }
153
154 for(unsigned int i=0; i<m_moments.size(); i++) {
155 float beta = m_moments[i].first;
156
157 float ECF1_value = -999;
158 float ECF2_value = -999;
159 float ECF3_value = -999;
160 float ECF4_value = -999;
161 float ECF5_value = -999;
162
163 float ECF1_ungroomed_value = -999;
164 float ECF2_ungroomed_value = -999;
165 float ECF3_ungroomed_value = -999;
166
167 if( calculate ) {
168
169 JetSubStructureUtils::EnergyCorrelator ECF1(1, beta, JetSubStructureUtils::EnergyCorrelator::pt_R);
170 JetSubStructureUtils::EnergyCorrelator ECF2(2, beta, JetSubStructureUtils::EnergyCorrelator::pt_R);
171 JetSubStructureUtils::EnergyCorrelator ECF3(3, beta, JetSubStructureUtils::EnergyCorrelator::pt_R);
172
173 ECF1_value = ECF1.result(jet);
174 ECF2_value = ECF2.result(jet);
175 ECF3_value = ECF3.result(jet);
176
177 if( m_doC3 ) {
178 JetSubStructureUtils::EnergyCorrelator ECF4(4, beta, JetSubStructureUtils::EnergyCorrelator::pt_R);
179 ECF4_value = ECF4.result(jet);
180 }
181
182 if( m_doC4 ) {
183 JetSubStructureUtils::EnergyCorrelator ECF5(5, beta, JetSubStructureUtils::EnergyCorrelator::pt_R);
184 ECF5_value = ECF5.result(jet);
185 }
186
187 if( calculate_ungroomed ) {
188 ECF1_ungroomed_value = ECF1.result(jet_ungroomed);
189 ECF2_ungroomed_value = ECF2.result(jet_ungroomed);
190 ECF3_ungroomed_value = ECF3.result(jet_ungroomed);
191 }
192
193 }
194
195 wdhs_ECF1[i](*injet) = ECF1_value;
196 wdhs_ECF2[i](*injet) = ECF2_value;
197 wdhs_ECF3[i](*injet) = ECF3_value;
198 wdhs_ECF4[i](*injet) = ECF4_value;
199 wdhs_ECF5[i](*injet) = ECF5_value;
200
201 wdhs_ECF1_ungroomed[i](*injet) = ECF1_ungroomed_value;
202 wdhs_ECF2_ungroomed[i](*injet) = ECF2_ungroomed_value;
203 wdhs_ECF3_ungroomed[i](*injet) = ECF3_ungroomed_value;
204 }
205
206 }
207
208 return StatusCode::SUCCESS;
209}
bool SetupDecoration(fastjet::PseudoJet &pseudojet, const xAOD::Jet &jet, bool requireJetStructure=false) const
void calculate(xAOD::Electron &electron)
Jet_v1 Jet
Definition of the current "jet version".

◆ modifyJet()

◆ msg()

MsgStream & AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msg_level_name()

const std::string & asg::AsgTool::msg_level_name ( ) const
inherited

A deprecated function for getting the message level's name.

Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:

MSG::name( msg().level() )

This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.

Returns
The string name of the current minimum message level that's printed

Definition at line 101 of file AsgTool.cxx.

101 {
102
103 return MSG::name( msg().level() );
104 }
MsgStream & msg() const
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
Definition MsgLevel.cxx:19

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ print()

void JetSubStructureMomentToolsBase::print ( ) const
protectedvirtualinherited

Print the state of the tool.

Reimplemented from asg::AsgTool.

Reimplemented in KtDeltaRTool, and LundVariablesTool.

Definition at line 67 of file JetSubStructureMomentToolsBase.cxx.

67 {
68 ATH_MSG_INFO("Properties for JetSubStructureMomentTool " << name());
69 ATH_MSG_INFO("InputContainer: " << m_inputContainer);
70 ATH_MSG_INFO("Prefix: " << m_prefix);
71}
#define ATH_MSG_INFO(x)

◆ renounce()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ SetupDecoration()

bool JetSubStructureMomentToolsBase::SetupDecoration ( fastjet::PseudoJet & pseudojet,
const xAOD::Jet & jet,
bool requireJetStructure = false ) const
protectedinherited

Definition at line 30 of file JetSubStructureMomentToolsBase.cxx.

30 {
31
32 bool decorate = true;
33
34 if (m_inputContainer.empty()) {
35 if (!checkForConstituents(jet))
36 decorate = false;
37 else pseudojet = buildPseudoJet(jet, requireJetStructure);
38 }
39 else {
40 std::vector<const xAOD::IParticle*> AssociatedParticles;
41 if (!(jet.getAssociatedObjects(m_inputContainer,AssociatedParticles))){
42 ATH_MSG_WARNING("InputContainer " << m_inputContainer << " unknown. Exiting..");
43 decorate = false;
44 }
45 ATH_MSG_VERBOSE("Found " << AssociatedParticles.size() << " associated particles");
46 if(AssociatedParticles.empty()) decorate = false;
47 else pseudojet = buildPseudoJet(AssociatedParticles);
48 }
49
50 return decorate;
51}
#define ATH_MSG_VERBOSE(x)
fastjet::PseudoJet buildPseudoJet(const xAOD::Jet &jet, bool requireJetStructure=false) const
bool checkForConstituents(const xAOD::Jet &jet) const
std::vector< const T * > getAssociatedObjects(const std::string &name) const
get associated objects as a vector<object> this compact form throws an exception if the object is not...
decorate(hto4l_controller, decorator, **kwargs)

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka

Member Data Documentation

◆ m_Beta

float EnergyCorrelatorTool::m_Beta
private

Configurable as properties.

Definition at line 72 of file EnergyCorrelatorTool.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_doC3

bool EnergyCorrelatorTool::m_doC3
private

Definition at line 73 of file EnergyCorrelatorTool.h.

◆ m_doC4

bool EnergyCorrelatorTool::m_doC4
private

Definition at line 74 of file EnergyCorrelatorTool.h.

◆ m_doDichroic

bool EnergyCorrelatorTool::m_doDichroic
private

Vector of input values before cleaning.

Definition at line 76 of file EnergyCorrelatorTool.h.

◆ m_ECF1_Keys

SG::WriteDecorHandleKeyArray<xAOD::JetContainer> EnergyCorrelatorTool::m_ECF1_Keys
private
Initial value:
{
this, "ECF1_Keys", {}}

Definition at line 81 of file EnergyCorrelatorTool.h.

81 {
82 this, "ECF1_Keys", {}};

◆ m_ECF1_ungroomed_Keys

SG::WriteDecorHandleKeyArray<xAOD::JetContainer> EnergyCorrelatorTool::m_ECF1_ungroomed_Keys
private
Initial value:
{
this, "ECF1_ungroomed_Keys", {}}

Definition at line 92 of file EnergyCorrelatorTool.h.

92 {
93 this, "ECF1_ungroomed_Keys", {}};

◆ m_ECF2_Keys

SG::WriteDecorHandleKeyArray<xAOD::JetContainer> EnergyCorrelatorTool::m_ECF2_Keys
private
Initial value:
{
this, "ECF2_Keys", {}}

Definition at line 83 of file EnergyCorrelatorTool.h.

83 {
84 this, "ECF2_Keys", {}};

◆ m_ECF2_ungroomed_Keys

SG::WriteDecorHandleKeyArray<xAOD::JetContainer> EnergyCorrelatorTool::m_ECF2_ungroomed_Keys
private
Initial value:
{
this, "ECF2_ungroomed_Keys", {}}

Definition at line 94 of file EnergyCorrelatorTool.h.

94 {
95 this, "ECF2_ungroomed_Keys", {}};

◆ m_ECF3_Keys

SG::WriteDecorHandleKeyArray<xAOD::JetContainer> EnergyCorrelatorTool::m_ECF3_Keys
private
Initial value:
{
this, "ECF3_Keys", {}}

Definition at line 85 of file EnergyCorrelatorTool.h.

85 {
86 this, "ECF3_Keys", {}};

◆ m_ECF3_ungroomed_Keys

SG::WriteDecorHandleKeyArray<xAOD::JetContainer> EnergyCorrelatorTool::m_ECF3_ungroomed_Keys
private
Initial value:
{
this, "ECF3_ungroomed_Keys", {}}

Definition at line 96 of file EnergyCorrelatorTool.h.

96 {
97 this, "ECF3_ungroomed_Keys", {}};

◆ m_ECF4_Keys

SG::WriteDecorHandleKeyArray<xAOD::JetContainer> EnergyCorrelatorTool::m_ECF4_Keys
private
Initial value:
{
this, "ECF4_Keys", {}}

Definition at line 87 of file EnergyCorrelatorTool.h.

87 {
88 this, "ECF4_Keys", {}};

◆ m_ECF5_Keys

SG::WriteDecorHandleKeyArray<xAOD::JetContainer> EnergyCorrelatorTool::m_ECF5_Keys
private
Initial value:
{
this, "ECF5_Keys", {}}

Definition at line 89 of file EnergyCorrelatorTool.h.

89 {
90 this, "ECF5_Keys", {}};

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_inputContainer

std::string JetSubStructureMomentToolsBase::m_inputContainer
protectedinherited

Definition at line 29 of file JetSubStructureMomentToolsBase.h.

◆ m_jetContainerName

Gaudi::Property<std::string> EnergyCorrelatorTool::m_jetContainerName
private
Initial value:
{
this, "JetContainer", "", "SG key for the input jet container"}

Definition at line 43 of file EnergyCorrelatorTool.h.

43 {
44 this, "JetContainer", "", "SG key for the input jet container"};

◆ m_moments

std::vector<std::pair< float, moments_t > > EnergyCorrelatorTool::m_moments
private

Map of moment calculators and decorators using beta as the key.

Definition at line 79 of file EnergyCorrelatorTool.h.

◆ m_prefix

std::string JetSubStructureMomentToolsBase::m_prefix
protectedinherited

Definition at line 30 of file JetSubStructureMomentToolsBase.h.

◆ m_rawBetaVals

std::vector<float> EnergyCorrelatorTool::m_rawBetaVals
private

Definition at line 75 of file EnergyCorrelatorTool.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files: