ATLAS Offline Software
Loading...
Searching...
No Matches
HGTD_AllTracksSelectionTool Class Reference

#include <HGTD_AllTracksSelectionTool.h>

Inheritance diagram for HGTD_AllTracksSelectionTool:
Collaboration diagram for HGTD_AllTracksSelectionTool:

Public Member Functions

 HGTD_AllTracksSelectionTool (const std::string &, const std::string &, const IInterface *)
virtual ~HGTD_AllTracksSelectionTool ()=default
virtual StatusCode initialize () override final
virtual bool trackPassesSelection (const xAOD::TrackParticle *track_particle) const override final

Detailed Description

Definition at line 19 of file HGTD_AllTracksSelectionTool.h.

Constructor & Destructor Documentation

◆ HGTD_AllTracksSelectionTool()

HGTD_AllTracksSelectionTool::HGTD_AllTracksSelectionTool ( const std::string & t,
const std::string & n,
const IInterface * p )

Definition at line 7 of file HGTD_AllTracksSelectionTool.cxx.

10 : base_class(t, n, p) {}

◆ ~HGTD_AllTracksSelectionTool()

virtual HGTD_AllTracksSelectionTool::~HGTD_AllTracksSelectionTool ( )
virtualdefault

Member Function Documentation

◆ initialize()

StatusCode HGTD_AllTracksSelectionTool::initialize ( )
finaloverridevirtual

Definition at line 12 of file HGTD_AllTracksSelectionTool.cxx.

12 {
13 return StatusCode::SUCCESS;
14}

◆ trackPassesSelection()

bool HGTD_AllTracksSelectionTool::trackPassesSelection ( const xAOD::TrackParticle * track_particle) const
finaloverridevirtual

Definition at line 16 of file HGTD_AllTracksSelectionTool.cxx.

17 {
18 bool passes_cuts = track_particle->pt() / 1.e3 > 1.;
19 passes_cuts &= std::abs(track_particle->eta()) > 2.4;
20 return passes_cuts;
21}
virtual double pt() const override final
The transverse momentum ( ) of the particle.
virtual double eta() const override final
The pseudorapidity ( ) of the particle.

The documentation for this class was generated from the following files: