ATLAS Offline Software
METPhotonAssociator.h
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // METPhotonAssociator.h
8 // Header file for class METPhotonAssociator
9 //
10 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
11 //
12 // Author: P Loch, S Resconi, TJ Khoo, AS Mete
14 #ifndef METRECONSTRUCTION_METPHOTONASSOCIATOR_H
15 #define METRECONSTRUCTION_METPHOTONASSOCIATOR_H 1
16 
17 // METReconstruction includes
19 #include "xAODEgamma/PhotonFwd.h"
20 
21 //Includes for DataHandles
22 #include "StoreGate/DataHandle.h"
23 
24 
25 namespace met{
26  class METPhotonAssociator final
27  : public METEgammaAssociator
28  {
29  // This macro defines the constructor with the interface declaration
31 
32 
33 
34  // Public methods:
36  public:
37 
38  // Constructor with name
39  METPhotonAssociator(const std::string& name);
40  ~METPhotonAssociator() = default;
41 
42  // AsgTool Hooks
43  virtual StatusCode initialize() override;
44 
46  // Private data:
48  protected:
49 
51 
52  private:
53 
56 
57  SG::ReadHandleKey<xAOD::PhotonContainer> m_phContKey{this, "InputCollection", "Photons", "photons input key"};
58 
59  };
60 
61 }
62 
63 #endif //> !METRECONSTRUCTION_METPHOTONASSOCIATOR_H
met::METPhotonAssociator::METPhotonAssociator
METPhotonAssociator()
Default constructor:
IMETAssocToolBase
Definition: IMETAssocToolBase.h:25
PhotonFwd.h
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
METEgammaAssociator.h
DataHandle.h
met::METPhotonAssociator::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition: METPhotonAssociator.cxx:37
xAOD::MissingETAssociationMap_v1
Definition: MissingETAssociationMap_v1.h:29
met::METPhotonAssociator::m_phContKey
SG::ReadHandleKey< xAOD::PhotonContainer > m_phContKey
Definition: METPhotonAssociator.h:57
met::METPhotonAssociator::~METPhotonAssociator
~METPhotonAssociator()=default
met
Definition: IMETSignificance.h:24
met::METPhotonAssociator
Definition: METPhotonAssociator.h:28
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAOD::MissingETContainer_v1
Container for xAOD::MissingET_v1 objects.
Definition: MissingETContainer_v1.h:21
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
met::METPhotonAssociator::executeTool
StatusCode executeTool(xAOD::MissingETContainer *metCont, xAOD::MissingETAssociationMap *metMap) const final
Definition: METPhotonAssociator.cxx:63
met::METEgammaAssociator
Definition: METEgammaAssociator.h:30
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition: AsgToolMacros.h:68