ATLAS Offline Software
AFPSiClusterBasicNearestNeighbour.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_AFPSICLUSTERBASICNEARESTNEIGHBOUR_H
6 #define AFP_SICLUSTERTOOLS_AFPSICLUSTERBASICNEARESTNEIGHBOUR_H
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  AFPSiClusterBasicNearestNeighbour(const std::string& type,
35  const std::string& name,
36  const IInterface* parent);
37 
38  virtual ~AFPSiClusterBasicNearestNeighbour() override {}
39 
41  virtual StatusCode initialize() override;
42 
44  virtual StatusCode finalize() override;
45 
47  virtual StatusCode doClustering (const std::list<const xAOD::AFPSiHit*>& hits, std::list<AFPSiClusterBasicObj>& outputClusters) const override;
48 
50  float chargeThreshold () const {return m_chargeThreshold;}
51 
52 private:
53  Gaudi::Property<float> m_chargeThreshold {this, "chargeThreshold", 1000., "charge above which hits are used for clustering"};
54 };
55 
56 
57 #endif // AFP_SICLUSTERTOOLS_AFPSICLUSTERBASICNEARESTNEIGHBOUR_H
AFPSiClusterBasicNearestNeighbour
Definition: AFPSiClusterBasicNearestNeighbour.h:32
TRTCalib_Extractor.hits
hits
Definition: TRTCalib_Extractor.py:35
AFPSiClusterBasicNearestNeighbour::finalize
virtual StatusCode finalize() override
does nothing
Definition: AFPSiClusterBasicNearestNeighbour.cxx:35
AFPSiClusterBasicNearestNeighbour::~AFPSiClusterBasicNearestNeighbour
virtual ~AFPSiClusterBasicNearestNeighbour() override
Definition: AFPSiClusterBasicNearestNeighbour.h:38
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
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
AFPSiClusterBasicNearestNeighbour::initialize
virtual StatusCode initialize() override
does nothing
Definition: AFPSiClusterBasicNearestNeighbour.cxx:31
AFPSiClusterBasicNearestNeighbour::doClustering
virtual StatusCode doClustering(const std::list< const xAOD::AFPSiHit * > &hits, std::list< AFPSiClusterBasicObj > &outputClusters) const override
Creates a cluster from the neighbouring pixels, joining only two pixels with charge above m_chargeThr...
Definition: AFPSiClusterBasicNearestNeighbour.cxx:39
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
AFPSiClusterBasicNearestNeighbour::m_chargeThreshold
Gaudi::Property< float > m_chargeThreshold
Definition: AFPSiClusterBasicNearestNeighbour.h:53
AFPSiClusterBasicNearestNeighbour::AFPSiClusterBasicNearestNeighbour
AFPSiClusterBasicNearestNeighbour(const std::string &type, const std::string &name, const IInterface *parent)
Definition: AFPSiClusterBasicNearestNeighbour.cxx:25
IAFPSiClusterAlgTool.h
Header file for interface IAFPSiClusterAlgTool.
AFPSiClusterBasicNearestNeighbour::chargeThreshold
float chargeThreshold() const
Definition: AFPSiClusterBasicNearestNeighbour.h:50