ATLAS Offline Software
PFClusterSelectorTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef PFCLUSTERSELECTORTOOL_H
5 #define PFCLUSTERSELECTORTOOL_H
6 
11 #include "GaudiKernel/ToolHandle.h"
13 
14 #include <map>
15 
16 class PFClusterSelectorTool : public extends<AthAlgTool, IPFClusterSelectorTool> {
17 
18 public:
20  PFClusterSelectorTool(const std::string& type,const std::string& name,const IInterface* parent);
23 
26  StatusCode execute(eflowRecClusterContainer& theEFlowRecClusterContainer,
27  xAOD::CaloClusterContainer& theCaloClusterContainer) const;
29 
30 private:
34  const double& energy,
35  const unsigned& index,
36  std::map<IdentifierHash, double>& cellsWeight,
37  const xAOD::CaloClusterContainer& caloCalClustersContainer,
38  const CaloDetDescrManager& calo_dd_man) const;
39 
42  this,
43  "clustersName",
44  "CaloTopoClusters",
45  "ReadHandleKey for the CaloClusterContainer to be used as input"
46  };
47 
51  this,
52  "calClustersName",
53  "CaloCalTopoClusters",
54  "ReadHandleKey for the CaloClusterContainer, at LC scale, to be used as "
55  "input"
56  };
57 
60 
63  this,
64  "CaloDetDescrManager",
65  "CaloDetDescrManager",
66  "SG Key for CaloDetDescrManager in the Condition Store"
67  };
68 };
69 #endif
PFClusterSelectorTool::m_caloClustersReadHandleKey
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_caloClustersReadHandleKey
ReadHandleKey for the CaloClusterContainer to be used as input.
Definition: PFClusterSelectorTool.h:41
PFClusterSelectorTool::finalize
StatusCode finalize()
Definition: PFClusterSelectorTool.cxx:84
index
Definition: index.py:1
eflowRecClusterContainer
Definition: eflowRecCluster.h:275
PFClusterSelectorTool::initialize
StatusCode initialize()
Gaudi AthAlgorithm hooks.
Definition: PFClusterSelectorTool.cxx:15
SG::ReadHandleKey< xAOD::CaloClusterContainer >
PFClusterSelectorTool::execute
StatusCode execute(eflowRecClusterContainer &theEFlowRecClusterContainer, xAOD::CaloClusterContainer &theCaloClusterContainer) const
Definition: PFClusterSelectorTool.cxx:32
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
PFClusterSelectorTool::PFClusterSelectorTool
PFClusterSelectorTool(const std::string &type, const std::string &name, const IInterface *parent)
Default constructor.
Definition: PFClusterSelectorTool.cxx:10
IPFClusterSelectorTool.h
PFClusterSelectorTool
Definition: PFClusterSelectorTool.h:16
eflowRecCluster.h
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
PFClusterSelectorTool::retrieveLCCalCellWeight
void retrieveLCCalCellWeight(const double &energy, const unsigned &index, std::map< IdentifierHash, double > &cellsWeight, const xAOD::CaloClusterContainer &caloCalClustersContainer, const CaloDetDescrManager &calo_dd_man) const
for EM mode, LC weight for cells are retrieved before doing any subtraction; they will be used after ...
Definition: PFClusterSelectorTool.cxx:89
SG::ReadCondHandleKey< CaloDetDescrManager >
CaloDetDescrManager
This class provides the client interface for accessing the detector description information common to...
Definition: CaloDetDescrManager.h:473
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
CaloClusterContainer.h
PFClusterSelectorTool::~PFClusterSelectorTool
~PFClusterSelectorTool()
Default destructor.
Definition: PFClusterSelectorTool.h:22
PFClusterSelectorTool::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
ReadCondHandleKey for CaloDetDescrManager.
Definition: PFClusterSelectorTool.h:62
PFClusterSelectorTool::m_caloClusterReadDecorHandleKeyNLeadingTruthParticles
SG::ReadDecorHandleKey< xAOD::CaloClusterContainer > m_caloClusterReadDecorHandleKeyNLeadingTruthParticles
Read handle key to decorate CaloCluster with threeN leading truth particle barcode and energy.
Definition: PFClusterSelectorTool.h:59
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition: StoreGate/StoreGate/ReadDecorHandleKey.h:85
PFClusterSelectorTool::m_caloCalClustersReadHandleKey
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_caloCalClustersReadHandleKey
ReadHandleKey for the CaloClusterContainer, at LC scale, to be used as input.
Definition: PFClusterSelectorTool.h:50