ATLAS Offline Software
Loading...
Searching...
No Matches
AFPSiClusterAllNeighbours.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef AFP_SICLUSTERTOOLS_AFPSICLUSTERAllNEIGHBOURS_H
6#define AFP_SICLUSTERTOOLS_AFPSICLUSTERAllNEIGHBOURS_H
7
8
17
18
19
20// FrameWork includes
22#include "GaudiKernel/ServiceHandle.h"
23
24// AFP_LocReco includes
26
27// STL includes
28#include <string>
29#include <list>
30
32 : public extends<AthAlgTool, IAFPSiClusterAlgTool>
33{
34public:
35 AFPSiClusterAllNeighbours(const std::string& type,
36 const std::string& name,
37 const IInterface* parent);
38
39 virtual ~AFPSiClusterAllNeighbours() override {}
40
42 virtual StatusCode initialize() override;
43
45 virtual StatusCode finalize() override;
46
48 virtual StatusCode doClustering (const std::list<const xAOD::AFPSiHit*>& hits, std::list<AFPSiClusterBasicObj>& outputClusters) const override;
49
51 float chargeThreshold () const {return m_chargeThreshold;}
52
53private:
54 Gaudi::Property<float> m_chargeThreshold {this, "chargeThreshold", 1000., "charge above which hits are used for clustering"};
55
56 Gaudi::Property<std::string> m_neighbourhoodType {this, "neighbourhoodType", "X", "type of hit neighbourhood in cluster, either X (only long-edge) or XY (both long- and short-edge)"};
57
58 bool m_doOnlyHorz = false;
59};
60
61
62#endif // AFP_SICLUSTERTOOLS_AFPSICLUSTERAllNEIGHBOURS_H
Header file for interface IAFPSiClusterAlgTool.
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...
virtual StatusCode finalize() override
does nothing
Gaudi::Property< float > m_chargeThreshold
AFPSiClusterAllNeighbours(const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode initialize() override
does nothing
Gaudi::Property< std::string > m_neighbourhoodType
virtual ~AFPSiClusterAllNeighbours() override