8using Athena::Units::GeV;
24 return StatusCode::SUCCESS;
37 for (
const auto& key :
m_keys) {
41 if (FormatTool->AddToEvent(
dataTypeName(), key.key() +
"_xAOD", &
data).isFailure()) {
51 return StatusCode::SUCCESS;
79 for (; metItr != metItrE; ++metItr) {
80 sumet = (*metItr)->sumet()/
GeV;
81 mpx = (*metItr)->mpx()/
GeV;
82 mpy = (*metItr)->mpy()/
GeV;
86 <<
", sumet= " << sumet );
91 <<
", mpy= " << mpy <<
", sumet= " << sumet );
98 const auto n =
et.size();
100 DataMap[
"etx"] = std::move(etx);
101 DataMap[
"ety"] = std::move(ety);
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
char data[hepevt_bytes_allocation_ATLAS]
Wrapper to avoid constant divisions when using units.
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 StatusCode initialize()
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
For each MET collection retrieve basic parameters.
xAODMissingETRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
virtual std::string dataTypeName() const
Return the name of the data type that is generated by this retriever.
SG::ReadHandleKeyArray< xAOD::MissingETContainer > m_keys
const DataMap getData(const xAOD::MissingETContainer *)
Puts the variables into a DataMap.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
std::map< std::string, DataVect > DataMap
std::vector< DataType > DataVect
Defines a map with a key and a vector of DataType objects e.g.
MissingETContainer_v1 MissingETContainer
Extra patterns decribing particle interation process.