ATLAS Offline Software
Loading...
Searching...
No Matches
METRefinerTool.cxx
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5*/
6
7// METRefinerTool.cxx
8// Implementation file for class METRefinerTool
9//
10// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
11//
12// Author: P Loch, S Resconi, TJ Khoo
14
15// METReconstruction includes
17
18// MET EDM
22
23// For DeltaR
25
26namespace met {
27
28 using xAOD::MissingET;
31
33 // Public methods:
35
36 // Constructors
38 METRefinerTool::METRefinerTool(const std::string& name) :
40 {
41 declareProperty( "MissingETKey", m_output_met_key );
42 declareProperty( "UseRapidity", m_useRapidity = false );
43 }
44
45 // Destructor
48 = default;
49
50 // Athena algtool's Hooks
53 {
54 ATH_MSG_DEBUG ("Initializing " << name() << "...");
55
56 return StatusCode::SUCCESS;
57 }
58
60 {
61 ATH_MSG_DEBUG ("In execute: " << name() << "...");
62
63 if( metTerm==nullptr ) {
64 ATH_MSG_ERROR("Invalid input MissingET pointer provided!");
65 return StatusCode::FAILURE;
66 }
67 if( metMap==nullptr ) {
68 ATH_MSG_ERROR("Invalid input MissingETComponentMap pointer provided!");
69 return StatusCode::FAILURE;
70 }
71
72 metTerm->setName(m_output_met_key);
73 return this->executeTool(metTerm,metMap);
74 }
75
77 {
78 ATH_MSG_INFO ("Finalizing " << name() << "...");
79
80 return StatusCode::SUCCESS;
81 }
82
83}
#define ATH_MSG_ERROR(x)
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(x)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition AsgTool.cxx:58
METRefinerTool()
Default constructor:
virtual StatusCode finalize()
std::string m_output_met_key
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
virtual StatusCode execute(xAOD::MissingET *metTerm, xAOD::MissingETComponentMap *metMap) const
virtual ~METRefinerTool()
virtual StatusCode executeTool(xAOD::MissingET *metTerm, xAOD::MissingETComponentMap *metMap) const =0
void setName(const std::string &name)
Set the name of the MET object.
MissingETComponentMap_v1 MissingETComponentMap
Version control by type definition.
MissingET_v1 MissingET
Version control by type defintion.
Collection of functions managing the MET composition map and association map.