ATLAS Offline Software
Loading...
Searching...
No Matches
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
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 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
50private:
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
Header file for interface IAFPSiClusterAlgTool.
virtual StatusCode initialize() override
does nothing
Gaudi::Property< float > m_chargeThreshold
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.
virtual StatusCode finalize() override
does nothing
AFPSiClusterSingleHitTool(const std::string &type, const std::string &name, const IInterface *parent)