ATLAS Offline Software
PFMomentCalculatorTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef PFMOMENTCALCULATORTOOL_H
6 #define PFMOMENTCALCULATORTOOL_H
7 
9 #include "GaudiKernel/ToolHandle.h"
12 #include "eflowRec/IPFBaseTool.h"
14 
16 
20 class PFMomentCalculatorTool : public extends<AthAlgTool, IPFBaseTool> {
21 
22  public:
23 
24  PFMomentCalculatorTool(const std::string& type,const std::string& name,const IInterface* parent);
25 
27 
28  virtual StatusCode initialize() override;
29  virtual StatusCode execute(eflowCaloObjectContainer& theEflowCaloObjectContainer) override;
30  virtual StatusCode finalize() override;
31 
32  private:
33 
35  ToolHandle<IPFClusterCollectionTool> m_clusterCollectionTool{this,"PFClusterCollectionTool","eflowRecClusterCollectionTool","Tool to put all clusters into a temporary container - then we use this to calculate moments, some of which depend on configuration of nearby clusters"};
36 
38  ToolHandle<CaloClusterCollectionProcessor> m_clusterMomentsMaker{this,"CaloClusterMomentsMaker","CaloClusterMomentsMaker","Tool to calculate cluster moments"};
39 
41  ToolHandle<CaloClusterCollectionProcessor> m_clusterCalibHitMomentsMaker2{this,"CaloCalibClusterMomentsMaker2","CaloCalibClusterMomentsMaker2","Tool to calculate calibration hit cluster moments"};
42 
44  Gaudi::Property<bool> m_LCMode{this,"LCMode",false,"Toggle whether we are in LC mode - false by default"};
45 
47  Gaudi::Property<bool> m_useCalibHitTruth{this,"UseCalibHitTruth",false,"Toggle usage of calibration hit truth - false by default"};\
48 
49 };
50 
51 #endif
PFMomentCalculatorTool::m_clusterCollectionTool
ToolHandle< IPFClusterCollectionTool > m_clusterCollectionTool
Tool to put all clusters into a temporary container - then we use this to calculate moments,...
Definition: PFMomentCalculatorTool.h:35
IPFBaseTool.h
PFMomentCalculatorTool
This tool uses a CaloClusterCollectionProcessor to calculate new moments for the modified calorimeter...
Definition: PFMomentCalculatorTool.h:20
PFMomentCalculatorTool::PFMomentCalculatorTool
PFMomentCalculatorTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: PFMomentCalculatorTool.cxx:11
PFMomentCalculatorTool::initialize
virtual StatusCode initialize() override
Definition: PFMomentCalculatorTool.cxx:16
PFMomentCalculatorTool::m_clusterCalibHitMomentsMaker2
ToolHandle< CaloClusterCollectionProcessor > m_clusterCalibHitMomentsMaker2
Tool to calculate calibration hit truth cluster moments.
Definition: PFMomentCalculatorTool.h:41
CaloCluster.h
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
PFMomentCalculatorTool::finalize
virtual StatusCode finalize() override
Definition: PFMomentCalculatorTool.cxx:52
PFMomentCalculatorTool::m_LCMode
Gaudi::Property< bool > m_LCMode
Toggle whether we are in LC mode - false by default.
Definition: PFMomentCalculatorTool.h:44
PFMomentCalculatorTool::m_clusterMomentsMaker
ToolHandle< CaloClusterCollectionProcessor > m_clusterMomentsMaker
Tool to calculate cluster moments.
Definition: PFMomentCalculatorTool.h:38
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
CaloClusterCollectionProcessor.h
Base class for cluster processing tools called from CaloClusterMaker.
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
PFMomentCalculatorTool::execute
virtual StatusCode execute(eflowCaloObjectContainer &theEflowCaloObjectContainer) override
Definition: PFMomentCalculatorTool.cxx:31
PFMomentCalculatorTool::~PFMomentCalculatorTool
~PFMomentCalculatorTool()
Definition: PFMomentCalculatorTool.h:26
PFMomentCalculatorTool::m_useCalibHitTruth
Gaudi::Property< bool > m_useCalibHitTruth
Toggle usage of calibration hit truth - false by default.
Definition: PFMomentCalculatorTool.h:47
eflowCaloObjectContainer
Definition: eflowCaloObject.h:100
IPFClusterCollectionTool.h