Retrieves the MissingET objects (MET_Reference_AntiKt4EMPFlow etc.)
More...
#include <xAODMissingETRetriever.h>
|
| static const InterfaceID & | interfaceID () |
| | Return the interface identifier.
|
Retrieves the MissingET objects (MET_Reference_AntiKt4EMPFlow etc.)
- Properties
- Retrieved Data
- Usual four-vectors: phi, eta, et etc.
- Associations for clusters and tracks via ElementLink: key/index scheme
Definition at line 29 of file xAODMissingETRetriever.h.
◆ StoreGateSvc_t
◆ xAODMissingETRetriever()
| JiveXML::xAODMissingETRetriever::xAODMissingETRetriever |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
Standard Constructor.
This is the standard AthAlgTool constructor.
- Parameters
-
| type | AlgTool type name |
| name | AlgTool instance name |
| parent | AlgTools parent owning this tool |
Definition at line 18 of file xAODMissingETRetriever.cxx.
◆ dataTypeName()
| virtual std::string JiveXML::xAODMissingETRetriever::dataTypeName |
( |
| ) |
const |
|
inlinevirtual |
◆ 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>
◆ 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
◆ getData()
Puts the variables into a DataMap.
Retrieve basic parameters, mainly four-vectors, for each collection.
Also association with clusters and tracks (ElementLink).
Definition at line 59 of file xAODMissingETRetriever.cxx.
59 {
60
62
64
68
69 float mpx = 0.;
70 float mpy = 0.;
71 float sumet = 0.;
72
75
76
77
78
79 for (; metItr != metItrE; ++metItr) {
80 sumet = (*metItr)->sumet()/
GeV;
81 mpx = (*metItr)->mpx()/
GeV;
82 mpy = (*metItr)->mpy()/
GeV;
83
85 << ", mpy= " << mpy
86 << ", sumet= " << sumet );
87
88 }
89
91 << ", mpy= " << mpy << ", sumet= " << sumet );
92
96
97
98 const auto n =
et.size();
100 DataMap[
"etx"] = std::move(etx);
101 DataMap[
"ety"] = std::move(ety);
102
104
105
107 }
float et(const xAOD::jFexSRJetRoI *j)
DataModel_detail::const_iterator< DataVector > const_iterator
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
virtual std::string dataTypeName() const
Return the name of the data type that is generated by this retriever.
std::map< std::string, DataVect > DataMap
std::vector< DataType > DataVect
Defines a map with a key and a vector of DataType objects e.g.
◆ initialize()
| StatusCode JiveXML::xAODMissingETRetriever::initialize |
( |
| ) |
|
|
virtual |
Definition at line 22 of file xAODMissingETRetriever.cxx.
22 {
24 return StatusCode::SUCCESS;
25 }
#define ATH_CHECK
Evaluate an expression and check for errors.
SG::ReadHandleKeyArray< xAOD::MissingETContainer > m_keys
◆ 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.
◆ interfaceID()
| const InterfaceID & JiveXML::IDataRetriever::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
Return the interface identifier.
Definition at line 40 of file IDataRetriever.h.
static const InterfaceID IID_IDataRetriever("JiveXML::IDataRetriever", 3, 0)
◆ msg()
◆ 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.
◆ 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()
◆ retrieve()
| StatusCode JiveXML::xAODMissingETRetriever::retrieve |
( |
ToolHandle< IFormatTool > & | FormatTool | ) |
|
|
virtual |
For each MET collection retrieve basic parameters.
- Parameters
-
| FormatTool | the tool that will create formated output from the DataMap |
Implements JiveXML::IDataRetriever.
Definition at line 32 of file xAODMissingETRetriever.cxx.
32 {
33
35
36
37 for (
const auto& key :
m_keys) {
38 SG::ReadHandle<xAOD::MissingETContainer> cont(key);
39 if (cont.isValid()) {
43 } else {
45 }
46 } else {
48 }
49 }
50
51 return StatusCode::SUCCESS;
52 }
#define ATH_MSG_WARNING(x)
char data[hepevt_bytes_allocation_ATLAS]
const DataMap getData(const xAOD::MissingETContainer *)
Puts the variables into a DataMap.
◆ 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_keys
| SG::ReadHandleKeyArray<xAOD::MissingETContainer> JiveXML::xAODMissingETRetriever::m_keys {this,"METCollections", {"MET_Reference_AntiKt4EMPFlow","MET_Reference_AntiKt4EMTopo", "MET_Calo", "MET_LocHadTopo", "MET_Core_AntiKt4LCTopo"}, "Name of the MET containers that will be written out to the JiveXML file"} |
|
private |
Definition at line 49 of file xAODMissingETRetriever.h.
49{this,"METCollections", {"MET_Reference_AntiKt4EMPFlow","MET_Reference_AntiKt4EMTopo", "MET_Calo", "MET_LocHadTopo", "MET_Core_AntiKt4LCTopo"}, "Name of the MET containers that will be written out to the JiveXML file"};
◆ m_typeName
| const std::string JiveXML::xAODMissingETRetriever::m_typeName = "ETMis" |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: