ATLAS Offline Software
Loading...
Searching...
No Matches
MissingETCnvTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5
6// EDM include(s):
8
9// Local include(s):
10#include "MissingETCnvTool.h"
11
12namespace xAODMaker {
13
15 const std::string& name,
16 const IInterface* parent )
17 : AthAlgTool( type, name, parent ) {
18
19 declareInterface< IMissingETCnvTool >( this );
20 }
21
22 StatusCode MissingETCnvTool::add( const MissingET* aod,
24
25 // Add a new MET object to the container:
27 xaod->push_back( met );
28
29 ATH_MSG_VERBOSE( "Filling xAOD::MissingET object:" );
30
31 // Copy some of the properties:
32 met->setMpx( aod->etx() );
33 ATH_MSG_VERBOSE( " - px = " << met->mpx() );
34 met->setMpy( aod->ety() );
35 ATH_MSG_VERBOSE( " - py = " << met->mpy() );
36 met->setSumet( aod->sumet() );
37 ATH_MSG_VERBOSE( " - sumet = " << met->sumet() );
38
39 // Return gracefully:
40 return StatusCode::SUCCESS;
41 }
42
43} // namespace xAODMaker
#define ATH_MSG_VERBOSE(x)
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
value_type push_back(value_type pElem)
Add an element to the end of the collection.
virtual double sumet() const
virtual double etx() const
virtual double ety() const
virtual StatusCode add(const MissingET *aod, xAOD::MissingETContainer *xaod) override
Function doing the translation.
MissingETCnvTool(const std::string &type, const std::string &name, const IInterface *parent)
Regular AlgTool constructor.
MissingET_v1 MissingET
Version control by type defintion.