ATLAS Offline Software
AFPSiClusterSingleHitTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
17 #include "xAODForward/AFPSiHit.h"
18 
19 // STL includes
20 #include <list>
21 
22 // FrameWork includes
23 #include "GaudiKernel/IToolSvc.h"
24 
26  const std::string &name,
27  const IInterface *parent)
28  : base_class(type, name, parent) {
29 }
30 
32  return StatusCode::SUCCESS;
33 }
34 
36  return StatusCode::SUCCESS;
37 }
38 
39 StatusCode AFPSiClusterSingleHitTool::doClustering (const std::list<const xAOD::AFPSiHit*>& hits, std::list<AFPSiClusterBasicObj>& outputClusters) const
40 {
41  for (const xAOD::AFPSiHit* theHit : hits)
42  if (theHit->depositedCharge() > m_chargeThreshold)
43  outputClusters.emplace_back(theHit, xAOD::AFPClusterAlgID::singleHit);
44 
45  return StatusCode::SUCCESS;
46 }
TRTCalib_Extractor.hits
hits
Definition: TRTCalib_Extractor.py:35
xAOD::AFPSiHit_v2
Class representing a hit in silicon detector.
Definition: AFPSiHit_v2.h:30
AFPSiClusterSingleHitTool::finalize
virtual StatusCode finalize() override
does nothing
Definition: AFPSiClusterSingleHitTool.cxx:35
xAOD::AFPClusterAlgID::singleHit
static const int singleHit
Single hit algorithm.
Definition: AFPClusterAlgID.h:48
AFPSiClusterBasicObj.h
Full definition of AFPSiClusterBasicObj.
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
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
AFPSiHit.h
AFPClusterAlgID.h
Definitions of identification numbers of pixel clustering algorithms.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
AFPSiClusterSingleHitTool::m_chargeThreshold
Gaudi::Property< float > m_chargeThreshold
Definition: AFPSiClusterSingleHitTool.h:51
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
AFPSiClusterSingleHitTool.h
Header file for AFPSiClusterSingleHitTool used for clustering hits.
AFPSiClusterSingleHitTool::initialize
virtual StatusCode initialize() override
does nothing
Definition: AFPSiClusterSingleHitTool.cxx:31