#include <JetSubStructureMomentToolsBase.h>
Inherits JetModifierBase.
Inherited by AngularityTool, BoostedXbbTagTool, CenterOfMassShapesTool, DipolarityTool, EnergyCorrelatorGeneralizedRatiosTool, EnergyCorrelatorGeneralizedTool, EnergyCorrelatorRatiosTool, EnergyCorrelatorTool, JetChargeTool, JetPullTool, KTSplittingScaleTool, KtDeltaRTool, KtMassDropTool, LundVariablesTool, MultiplicitiesTool, NSubjettinessRatiosTool, NSubjettinessTool, PlanarFlowTool, QwTool, ShowerDeconstructionTool, SoftDropObservablesTool, SubjetFinderTool, SubjetMakerTool, and VolatilityTool.
◆ StoreGateSvc_t
◆ JetSubStructureMomentToolsBase()
| JetSubStructureMomentToolsBase::JetSubStructureMomentToolsBase |
( |
const std::string & | name | ) |
|
Definition at line 8 of file JetSubStructureMomentToolsBase.cxx.
8 :
10{
13}
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
JetModifierBase(const std::string &myname)
Ctor.
◆ buildPseudoJet() [1/2]
| fastjet::PseudoJet JetSubStructureMomentToolsBase::buildPseudoJet |
( |
const std::vector< const xAOD::IParticle * > & | iparticles | ) |
const |
|
protected |
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 |
|
protected |
Definition at line 54 of file JetSubStructureMomentToolsBase.cxx.
54 {
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 |
|
inlineprotected |
Definition at line 33 of file JetSubStructureMomentToolsBase.h.
33 {
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...
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
◆ declareProperty()
Definition at line 145 of file AthCommonDataStore.h.
145 {
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
◆ detStore()
◆ evtStore()
◆ extraDeps_update_handler()
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
-
| ptr | The 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
123
124 return evtStore()->event()->getKey( ptr );
125#else
127 return ( proxy ==
nullptr ? 0 :
proxy->sgkey() );
128#endif
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
-
| ptr | The 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
110
111 return evtStore()->event()->getName( ptr );
112#else
114 static const std::string
dummy =
"";
115 return ( proxy ==
nullptr ? dummy :
proxy->name() );
116#endif
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 JetSubStructureMomentToolsBase::initialize |
( |
void | | ) |
|
|
virtual |
◆ inputHandles()
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()
◆ modifyJet()
| int JetModifierBase::modifyJet |
( |
xAOD::Jet & | jet | ) |
const |
|
protectedvirtualinherited |
Modify a single jet. This is obsolete and set to be removed.
Reimplemented in Analysis::JetPartonTruthLabel, AngularityTool, BoostedXbbTagTool, DipolarityTool, EffectiveRTool, EnergyCorrelatorGeneralizedRatiosTool, EnergyCorrelatorRatiosTool, HIJetClusterIndexAssociationTool, HIJetConstituentModifierTool, HIJetConstituentSubtractionTool, HIJetDiscriminatorTool, HIJetDRAssociationTool, JetChargeTool, JetConstitRemover, JetPullTool, KtDeltaRTool, KtMassDropTool, LundVariablesTool, MultiplicitiesTool, NSubjettinessRatiosTool, PlanarFlowTool, ShowerDeconstructionTool, SoftDropObservablesTool, SubjetFinderTool, SubjetMakerTool, and VolatilityTool.
Definition at line 26 of file JetModifierBase.cxx.
26 {
27 ATH_MSG_WARNING(
"JetModifierBase::modifyJet() is obsolete, does nothing, and should not be used!");
28 return 1;
29}
◆ msg()
◆ 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
104 }
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
◆ msgLvl()
| bool AthCommonMsg< AlgTool >::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
◆ outputHandles()
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 |
|
protectedvirtual |
◆ renounce()
Definition at line 380 of file AthCommonDataStore.h.
381 {
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()
◆ SetupDecoration()
| bool JetSubStructureMomentToolsBase::SetupDecoration |
( |
fastjet::PseudoJet & | pseudojet, |
|
|
const xAOD::Jet & | jet, |
|
|
bool | requireJetStructure = false ) const |
|
protected |
Definition at line 30 of file JetSubStructureMomentToolsBase.cxx.
30 {
31
33
38 }
39 else {
40 std::vector<const xAOD::IParticle*> AssociatedParticles;
44 }
45 ATH_MSG_VERBOSE(
"Found " << AssociatedParticles.size() <<
" associated particles");
46 if(AssociatedParticles.empty())
decorate =
false;
48 }
49
51}
#define ATH_MSG_VERBOSE(x)
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()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
Definition at line 308 of file AthCommonDataStore.h.
308 {
309
310
313 for (
auto k :
keys) {
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka
◆ m_detStore
◆ m_evtStore
◆ m_inputContainer
| std::string JetSubStructureMomentToolsBase::m_inputContainer |
|
protected |
◆ m_prefix
| std::string JetSubStructureMomentToolsBase::m_prefix |
|
protected |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: