18 declareInterface<ITrackParticlesInConeTool>(
this);
25 return StatusCode::SUCCESS;
29 return StatusCode::SUCCESS;
35 const std::string tableName =
name() +
"LookUpTable";
41 if( !indetTrackParticles.
isValid() ) {
42 ATH_MSG_ERROR(
"Could not open the TrackParticle container with key "
46 auto lut = std::make_unique<LookUpTable>();
47 lut->init(*indetTrackParticles);
49 return wh.put (std::move (lut),
true);
56 return lut->iParticlesInCone(
eta,
phi, dr, output );
Scalar eta() const
pseudorapidity method
#define ATH_CHECK
Evaluate an expression and check for errors.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
TrackParticlesInConeTool(const std::string &type, const std::string &name, const IInterface *parent)
constructor
virtual bool particlesInCone(float eta, float phi, float dr, std::vector< const TrackParticle * > &output) const override
ITrackParticlesInConeTool interface.
virtual StatusCode finalize() override
finalize
SG::ReadHandleKey< TrackParticleContainer > m_indetTrackParticleLocation
ID track collection name.
IParticlesLookUpTable< TrackParticle > LookUpTable
virtual StatusCode initialize() override
initialize
virtual ~TrackParticlesInConeTool(void)
destructor
const LookUpTable * getTable() const
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.