JetModifier that calculates moments in HI subtraction bootstrap. The ET of each jet constituent (HI clusters) is considered The maximum ET and maximum / mean are calculated from this set of values and stored as moments MaxConstituentET and MaxOverMean, respectively.
More...
#include <HIJetMaxOverMeanTool.h>
|
| | HIJetMaxOverMeanTool (const std::string &t) |
| virtual StatusCode | initialize () override |
| | Dummy implementation of the initialisation function.
|
| virtual StatusCode | decorate (const xAOD::JetContainer &jets) const override |
| | Decorate a jet collection without otherwise modifying it.
|
| virtual void | print () const |
| | Print the state of the tool.
|
| 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 |
| virtual StatusCode | modify (xAOD::JetContainer &jets) const override final |
| | Concrete implementation of the function inherited from IJetModifier.
|
| 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.
|
JetModifier that calculates moments in HI subtraction bootstrap. The ET of each jet constituent (HI clusters) is considered The maximum ET and maximum / mean are calculated from this set of values and stored as moments MaxConstituentET and MaxOverMean, respectively.
- Author
- Aaron Angerami anger.nosp@m.ami@.nosp@m.cern..nosp@m.ch
- Date
- Jan, 2015
Definition at line 27 of file HIJetMaxOverMeanTool.h.
◆ StoreGateSvc_t
◆ HIJetMaxOverMeanTool()
| HIJetMaxOverMeanTool::HIJetMaxOverMeanTool |
( |
const std::string & | t | ) |
|
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
◆ 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>
◆ decorate()
Decorate a jet collection without otherwise modifying it.
Implements IJetDecorator.
Definition at line 31 of file HIJetMaxOverMeanTool.cxx.
32 {
33
35 SG::WriteDecorHandle<xAOD::JetContainer, float> jetMaxOverMeanDecorHandle (
m_jetMaxOverMeanKey );
37 {
41 const xAOD::JetConstituentVector constituents = jet->getConstituents();
42 for (const auto *constituent : constituents)
43 {
44 float et=constituent->e()/std::cosh(constituent->eta());
48 }
51 float D=0;
53
54
55 jetMaxConstituentETDecorHandle(*jet) =
max;
56 jetMaxOverMeanDecorHandle(*jet) = D;
57
58 }
59 return StatusCode::SUCCESS;
60}
float et(const xAOD::jFexSRJetRoI *j)
int count(std::string s, const std::string ®x)
count how many occurances of a regx are in a string
Jet_v1 Jet
Definition of the current "jet version".
◆ 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 HIJetMaxOverMeanTool::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...
Reimplemented from asg::AsgTool.
Definition at line 14 of file HIJetMaxOverMeanTool.cxx.
15{
17 ATH_MSG_ERROR(
"HIJetMaxOverMeanTool needs to have its input jet container name configured!");
18 return StatusCode::FAILURE;
19 }
20
23
26
27 return StatusCode::SUCCESS;
28
29}
#define ATH_CHECK
Evaluate an expression and check for errors.
◆ 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()
|
|
inlinefinaloverridevirtualinherited |
Concrete implementation of the function inherited from IJetModifier.
Implements IJetModifier.
Definition at line 32 of file IJetDecorator.h.
virtual StatusCode decorate(const xAOD::JetContainer &jets) const =0
Decorate a jet collection without otherwise modifying it.
◆ 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 asg::AsgTool::print |
( |
| ) |
const |
|
virtualinherited |
Print the state of the tool.
Implements asg::IAsgTool.
Reimplemented in AsgHelloTool, HI::HIPileupTool, JetBottomUpSoftDrop, JetConstituentsRetriever, JetDumper, JetFinder, JetFromPseudojet, JetModifiedMassDrop, JetPileupLabelingTool, JetPruner, JetPseudojetRetriever, JetReclusterer, JetReclusteringTool, JetRecTool, JetRecursiveSoftDrop, JetSoftDrop, JetSplitter, JetSubStructureMomentToolsBase, JetToolRunner, JetTrimmer, JetTruthLabelingTool, KtDeltaRTool, and LundVariablesTool.
Definition at line 131 of file AsgTool.cxx.
131 {
132
134 return;
135 }
◆ 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()
◆ 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_jetContainerName
| Gaudi::Property<std::string> HIJetMaxOverMeanTool::m_jetContainerName {this, "JetContainer", "", "SG key for the input jet container"} |
|
private |
Definition at line 48 of file HIJetMaxOverMeanTool.h.
48{this, "JetContainer", "", "SG key for the input jet container"};
◆ m_jetMaxConstituentETKey
Definition at line 45 of file HIJetMaxOverMeanTool.h.
45{ this, "MaxConstituentETKey", "MaxConstituentET", "Key for MaxConstituentET tile Jet attribute"};
◆ m_jetMaxOverMeanKey
Definition at line 46 of file HIJetMaxOverMeanTool.h.
46{ this, "MaxOverMeanKey", "MaxOverMean", "Key for MaxOverMean tile Jet attribute"};
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: