ATLAS Offline Software
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 
12 namespace xAODMaker {
13 
15  const std::string& name,
16  const IInterface* parent )
17  : AthAlgTool( type, name, parent ) {
18 
19  declareInterface< IMissingETCnvTool >( this );
20  }
21 
23  xAOD::MissingETContainer* xaod ) {
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
MissingET::etx
virtual double etx() const
Definition: MissingET.cxx:141
MissingET.h
xAODMaker::MissingETCnvTool::add
virtual StatusCode add(const MissingET *aod, xAOD::MissingETContainer *xaod) override
Function doing the translation.
Definition: MissingETCnvTool.cxx:22
xAOD::MissingET
MissingET_v1 MissingET
Version control by type defintion.
Definition: Event/xAOD/xAODMissingET/xAODMissingET/MissingET.h:15
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
xAODMaker
Definition: StoreGateSvc.h:72
MissingETCnvTool.h
met
Definition: IMETSignificance.h:24
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAODMaker::MissingETCnvTool::MissingETCnvTool
MissingETCnvTool(const std::string &type, const std::string &name, const IInterface *parent)
Regular AlgTool constructor.
Definition: MissingETCnvTool.cxx:14
test_pyathena.parent
parent
Definition: test_pyathena.py:15
xAOD::MissingET_v1
Principal data object for Missing ET.
Definition: MissingET_v1.h:25
xAOD::MissingETContainer_v1
Container for xAOD::MissingET_v1 objects.
Definition: MissingETContainer_v1.h:21
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
MissingET::ety
virtual double ety() const
Definition: MissingET.cxx:145
DataVector::push_back
value_type push_back(value_type pElem)
Add an element to the end of the collection.
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
MissingET
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingET.h:23
MissingET::sumet
virtual double sumet() const
Definition: MissingET.cxx:149
AthAlgTool
Definition: AthAlgTool.h:26