ATLAS Offline Software
AFPSiClusterSingleHitTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef AFP_SICLUSTERTOOLS_AFPSICLUSTERSINGLEHITTOOL_H
6 #define AFP_SICLUSTERTOOLS_AFPSICLUSTERSINGLEHITTOOL_H 1
7 
8 
18 // STL includes
19 #include <string>
20 #include <list>
21 
22 // FrameWork includes
24 #include "GaudiKernel/ServiceHandle.h"
25 
26 // AFP_LocReco includes
28 
29 // Forward declaration
31  : public extends<AthAlgTool, IAFPSiClusterAlgTool>
32 {
33 public:
34  AFPSiClusterSingleHitTool(const std::string& type,
35  const std::string& name,
36  const IInterface* parent);
37 
39  virtual StatusCode initialize() override;
40 
42  virtual StatusCode finalize() override;
43 
45  virtual StatusCode doClustering (const std::list<const xAOD::AFPSiHit*>& hits, std::list<AFPSiClusterBasicObj>& outputClusters) const override;
46 
48  float chargeThreshold () const {return m_chargeThreshold;}
49 
50 private:
51  Gaudi::Property<float> m_chargeThreshold {this, "chargeThreshold", 1000., "charge above which hits are used for clustering"};
52 };
53 
54 
55 #endif // > !AFP_SICLUSTERTOOLS_AFPSICLUSTERSINGLEHITTOOL_H
TRTCalib_Extractor.hits
hits
Definition: TRTCalib_Extractor.py:35
AFPSiClusterSingleHitTool::finalize
virtual StatusCode finalize() override
does nothing
Definition: AFPSiClusterSingleHitTool.cxx:35
AFPSiClusterSingleHitTool::doClustering
virtual StatusCode doClustering(const std::list< const xAOD::AFPSiHit * > &hits, std::list< AFPSiClusterBasicObj > &outputClusters) const override
Creates a cluster from each hit with charge above m_chargeThreshold.
Definition: AFPSiClusterSingleHitTool.cxx:39
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
AFPSiClusterSingleHitTool::AFPSiClusterSingleHitTool
AFPSiClusterSingleHitTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: AFPSiClusterSingleHitTool.cxx:25
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
AFPSiClusterSingleHitTool
Definition: AFPSiClusterSingleHitTool.h:32
AFPSiClusterSingleHitTool::chargeThreshold
float chargeThreshold() const
Definition: AFPSiClusterSingleHitTool.h:48
AFPSiClusterSingleHitTool::m_chargeThreshold
Gaudi::Property< float > m_chargeThreshold
Definition: AFPSiClusterSingleHitTool.h:51
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
AFPSiClusterSingleHitTool::initialize
virtual StatusCode initialize() override
does nothing
Definition: AFPSiClusterSingleHitTool.cxx:31
IAFPSiClusterAlgTool.h
Header file for interface IAFPSiClusterAlgTool.