ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
AFPSiClusterSingleHitTool Class Reference

#include <AFPSiClusterSingleHitTool.h>

Inheritance diagram for AFPSiClusterSingleHitTool:
Collaboration diagram for AFPSiClusterSingleHitTool:

Public Member Functions

 AFPSiClusterSingleHitTool (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual StatusCode initialize () override
 does nothing More...
 
virtual StatusCode finalize () override
 does nothing More...
 
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. More...
 
float chargeThreshold () const
 

Private Attributes

Gaudi::Property< float > m_chargeThreshold {this, "chargeThreshold", 1000., "charge above which hits are used for clustering"}
 

Detailed Description

Definition at line 30 of file AFPSiClusterSingleHitTool.h.

Constructor & Destructor Documentation

◆ AFPSiClusterSingleHitTool()

AFPSiClusterSingleHitTool::AFPSiClusterSingleHitTool ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Definition at line 25 of file AFPSiClusterSingleHitTool.cxx.

28  : base_class(type, name, parent) {
29 }

Member Function Documentation

◆ chargeThreshold()

float AFPSiClusterSingleHitTool::chargeThreshold ( ) const
inline

Definition at line 48 of file AFPSiClusterSingleHitTool.h.

48 {return m_chargeThreshold;}

◆ doClustering()

StatusCode AFPSiClusterSingleHitTool::doClustering ( const std::list< const xAOD::AFPSiHit * > &  hits,
std::list< AFPSiClusterBasicObj > &  outputClusters 
) const
overridevirtual

Creates a cluster from each hit with charge above m_chargeThreshold.

Definition at line 39 of file AFPSiClusterSingleHitTool.cxx.

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 }

◆ finalize()

StatusCode AFPSiClusterSingleHitTool::finalize ( )
overridevirtual

does nothing

Definition at line 35 of file AFPSiClusterSingleHitTool.cxx.

35  {
36  return StatusCode::SUCCESS;
37 }

◆ initialize()

StatusCode AFPSiClusterSingleHitTool::initialize ( )
overridevirtual

does nothing

Definition at line 31 of file AFPSiClusterSingleHitTool.cxx.

31  {
32  return StatusCode::SUCCESS;
33 }

Member Data Documentation

◆ m_chargeThreshold

Gaudi::Property<float> AFPSiClusterSingleHitTool::m_chargeThreshold {this, "chargeThreshold", 1000., "charge above which hits are used for clustering"}
private

Definition at line 51 of file AFPSiClusterSingleHitTool.h.


The documentation for this class was generated from the following files:
TRTCalib_Extractor.hits
hits
Definition: TRTCalib_Extractor.py:35
xAOD::AFPSiHit_v2
Class representing a hit in silicon detector.
Definition: AFPSiHit_v2.h:30
xAOD::AFPClusterAlgID::singleHit
static const int singleHit
Single hit algorithm.
Definition: AFPClusterAlgID.h:48
test_pyathena.parent
parent
Definition: test_pyathena.py:15
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