ATLAS Offline Software
TruthTrackQualitySelectionTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef INDETTRACKPERFMON_TRUTHTRACKQUALITYSELECTIONTOOL_H
5 #define INDETTRACKPERFMON_TRUTHTRACKQUALITYSELECTIONTOOL_H
6 
7 // Package includes
11 
12 // Framework includes
13 #include "AsgTools/AsgTool.h"
14 
15 // STL includes
16 #include <string>
17 
22 namespace IDTPM{
24  public virtual IDTPM::ITrackSelectionTool,
25  public asg::AsgTool {
26 public:
28 
29  TruthTrackQualitySelectionTool( const std::string& name );
30 
31  virtual StatusCode initialize() override;
32 
33  virtual StatusCode selectTracks(
34  TrackAnalysisCollections& trkAnaColls ) override;
35 
40  ATH_MSG_ERROR( "selectTracksInRoI method is disabled" );
41  return StatusCode::SUCCESS;
42  }
43 
44 
45 
46 private:
47  ToolHandle<IAthSelectionTool> m_truthTool{this, "truthTool", {}, "Truth selection tool to use, has to be setup" };
48 };
49 }
50 #endif // INDETTRACKPERFMON_TRUTHTRACKQUALITYSELECTIONTOOL_H
IDTPM::TruthTrackQualitySelectionTool
Definition: TruthTrackQualitySelectionTool.h:25
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
IDTPM::TrackAnalysisCollections
Definition: TrackAnalysisCollections.h:41
IDTPM::TruthTrackQualitySelectionTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition: TruthTrackQualitySelectionTool.cxx:12
IDTPM::TruthTrackQualitySelectionTool::selectTracksInRoI
virtual StatusCode selectTracksInRoI(TrackAnalysisCollections &, const ElementLink< TrigRoiDescriptorCollection > &) override
Dummy method - unused.
Definition: TruthTrackQualitySelectionTool.h:37
IAthSelectionTool.h
TrackAnalysisCollections.h
Class to hold for each event collections needed in the TrkAnalsis.
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IDTPM::TruthTrackQualitySelectionTool::selectTracks
virtual StatusCode selectTracks(TrackAnalysisCollections &trkAnaColls) override
Definition: TruthTrackQualitySelectionTool.cxx:19
IDTPM::TruthTrackQualitySelectionTool::TruthTrackQualitySelectionTool
TruthTrackQualitySelectionTool(const std::string &name)
Definition: TruthTrackQualitySelectionTool.cxx:9
IDTPM::ITrackSelectionTool
Definition: ITrackSelectionTool.h:27
IDTPM::TruthTrackQualitySelectionTool::ASG_TOOL_CLASS
ASG_TOOL_CLASS(TruthTrackQualitySelectionTool, ITrackSelectionTool)
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
ITrackSelectionTool.h
header file for interface for all the various track selection tools in this package
IDTPM
Athena include(s).
Definition: IPlotsDefinitionSvc.h:25
AsgTool.h
IDTPM::TruthTrackQualitySelectionTool::m_truthTool
ToolHandle< IAthSelectionTool > m_truthTool
Definition: TruthTrackQualitySelectionTool.h:47