ATLAS Offline Software
Loading...
Searching...
No Matches
TrackObjectSelectionTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef INDETTRACKPERFMON_TRACKOBJECTSELECTIONTOOL_H
6#define INDETTRACKPERFMON_TRACKOBJECTSELECTIONTOOL_H
7
16
18#include "AsgTools/AsgTool.h"
20
22#include "ITrackSelectionTool.h"
23
27
28
29namespace IDTPM {
30
32 public virtual IDTPM::ITrackSelectionTool,
33 public asg::AsgTool {
34
35 public:
36
38
40 TrackObjectSelectionTool( const std::string& name );
41
43 virtual ~TrackObjectSelectionTool() = default;
44
46 virtual StatusCode initialize() override;
47
49 virtual StatusCode selectTracks(
50 TrackAnalysisCollections& trkAnaColls ) override;
51
52 bool accept( const xAOD::TrackParticle& offTrack,
53 const std::vector< const xAOD::TruthParticle* >& truthVec ) const;
54
55 private:
56
57 StringProperty m_objectType {
58 this, "ObjectType", "Electron", "Offline object type requested" };
59
60 StringProperty m_objectQuality {
61 this, "ObjectQuality", "", "Quality-based object selection" };
62
63 StringProperty m_tauType {
64 this, "TauType", "RNN", "Request RNN or BDT taus" };
65
66 IntegerProperty m_tauNprongs {
67 this, "TauNprongs", 1, "Request 1- or 3- prong taus" };
68
69 FloatProperty m_truthProbCut {
70 this, "MatchingTruthProb", 0.5, "Minimal truthProbability for valid matching" };
71
72 }; // class TrackObjectSelectionTool
73
74} // namespace IDTPM
75
76
77
78#endif // > ! INDETTRACKPERFMON_INDETTRACKOBJECTSELECTIONTOOL_H
header file for interface for all the various track selection tools in this package
virtual StatusCode initialize() override
Initialize.
virtual StatusCode selectTracks(TrackAnalysisCollections &trkAnaColls) override
Main Track selection method.
virtual ~TrackObjectSelectionTool()=default
Destructor.
ASG_TOOL_CLASS(TrackObjectSelectionTool, ITrackSelectionTool)
TrackObjectSelectionTool(const std::string &name)
Constructor.
bool accept(const xAOD::TrackParticle &offTrack, const std::vector< const xAOD::TruthParticle * > &truthVec) const
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
Athena include(s).
TrackParticle_v1 TrackParticle
Reference the current persistent version: