ATLAS Offline Software
CaloClusterMatchLinkAlg.h
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // CaloClusterMatchLinkAlg.h
8 // Header file for class CaloClusterMatchLinkAlg
9 // Author: S.Binet<binet@cern.ch>
11 #ifndef CALOCLUSTERMATCHING_CALOCLUSTERMATCHLINKALG_H
12 #define CALOCLUSTERMATCHING_CALOCLUSTERMATCHLINKALG_H 1
13 
14 // STL includes
15 #include <string>
16 
17 // FrameWork includes
19 
20 #include "AsgTools/ToolHandle.h"
24 
25 namespace ClusterMatching {
28  {
29 
31  // Public methods:
33  public:
36 
39 
40  // Athena algorithm's Hooks
41  virtual StatusCode initialize();
42  virtual StatusCode execute(const EventContext& ctx) const;
43  virtual StatusCode finalize();
44 
45  private:
46 
47  SG::ReadHandleKey<xAOD::CaloClusterContainer> m_clusterKey{this,"ClustersToDecorate","","The input CaloClusterContainer to match to CaloCalTopoClusters"};
48  Gaudi::Property<bool> m_useLeadCellEtaPhi{this,"UseLeadCellEtaPhi",false};
49  Gaudi::Property<int> m_clusterSortMethod{this,"ClusterSortMethod",(int)MatchedE};
50  ToolHandle<ICaloClusterMatchingTool> m_clusterMatch{this,"ClusterMatchTool","ClusterMatching::CaloClusterMatchingTool/CaloClusterMatch","Tool for the acutal matching"};
51 
52  //The decorator
54  this,
55  "ElementLinkName",
56  "MuonClusterCollection.constituentClusterLinks"
57  };
58 
59  };
60 }
61 
62 #endif //> !CALOCLUSTERMATCHING_CALOCLUSTERMATCHLINKALG_H
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
ClusterMatching::MatchedE
@ MatchedE
Definition: ICaloClusterMatchingTool.h:35
SG::ReadHandleKey< xAOD::CaloClusterContainer >
ClusterMatching::CaloClusterMatchLinkAlg::m_clusterMatch
ToolHandle< ICaloClusterMatchingTool > m_clusterMatch
Definition: CaloClusterMatchLinkAlg.h:50
ClusterMatching::CaloClusterMatchLinkAlg::m_clusterSortMethod
Gaudi::Property< int > m_clusterSortMethod
Definition: CaloClusterMatchLinkAlg.h:49
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
ClusterMatching::CaloClusterMatchLinkAlg::initialize
virtual StatusCode initialize()
Definition: CaloClusterMatchLinkAlg.cxx:31
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ClusterMatching
Definition: ICaloClusterMatchingTool.h:26
AthReentrantAlgorithm.h
ClusterMatching::CaloClusterMatchLinkAlg::~CaloClusterMatchLinkAlg
virtual ~CaloClusterMatchLinkAlg()
Destructor:
ClusterMatching::CaloClusterMatchLinkAlg::finalize
virtual StatusCode finalize()
Definition: CaloClusterMatchLinkAlg.cxx:50
ClusterMatching::CaloClusterMatchLinkAlg::execute
virtual StatusCode execute(const EventContext &ctx) const
Definition: CaloClusterMatchLinkAlg.cxx:57
ClusterMatching::CaloClusterMatchLinkAlg::m_elementLinkName
SG::WriteDecorHandleKey< xAOD::CaloClusterContainer > m_elementLinkName
Definition: CaloClusterMatchLinkAlg.h:53
ClusterMatching::CaloClusterMatchLinkAlg::m_clusterKey
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clusterKey
Definition: CaloClusterMatchLinkAlg.h:47
CaloClusterContainer.h
ClusterMatching::CaloClusterMatchLinkAlg::m_useLeadCellEtaPhi
Gaudi::Property< bool > m_useLeadCellEtaPhi
Definition: CaloClusterMatchLinkAlg.h:48
ICaloClusterMatchingTool.h
ToolHandle.h
ClusterMatching::CaloClusterMatchLinkAlg
Definition: CaloClusterMatchLinkAlg.h:28