ATLAS Offline Software
Loading...
Searching...
No Matches
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
17
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{
33public:
34 AFPSiClusterBasicNearestNeighbour(const std::string& type,
35 const std::string& name,
36 const IInterface* parent);
37
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
52private:
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
Header file for interface IAFPSiClusterAlgTool.
virtual StatusCode finalize() override
does nothing
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...
AFPSiClusterBasicNearestNeighbour(const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode initialize() override
does nothing