ATLAS Offline Software
JetTrackSelectionTool2.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
8  asg::AsgTool(name), m_hidselector("",this) {
9  declareProperty("Selector", m_hidselector);
10 }
11 
13  ATH_MSG_INFO("Initializing tool " << "...");
14  ATH_MSG_DEBUG("initializing version with data handles");
15 
16 
17  StatusCode sc = m_hidselector.retrieve();
18  if (sc.isFailure()) {ATH_MSG_ERROR("Can't retrieve ITrackSelectorTool "<< m_hidselector.name() ); return sc;}
19 
20  return StatusCode::SUCCESS;
21 }
22 
24  return static_cast<bool>(m_hidselector->accept(trk, nullptr));
25 }
26 
JetTrackSelectionTool2::initialize
StatusCode initialize()
Dummy implementation of the initialisation function.
Definition: JetTrackSelectionTool2.cxx:12
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
asg
Definition: DataHandleTestTool.h:28
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
JetTrackSelectionTool2::m_hidselector
ToolHandle< InDet::IInDetTrackSelectionTool > m_hidselector
Definition: JetTrackSelectionTool2.h:41
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
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
JetTrackSelectionTool2::JetTrackSelectionTool2
JetTrackSelectionTool2(const std::string &name)
Definition: JetTrackSelectionTool2.cxx:7
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
JetTrackSelectionTool2::keep
int keep(const xAOD::TrackParticle &trk) const
Method to select.
Definition: JetTrackSelectionTool2.cxx:23
JetTrackSelectionTool2.h
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43