ATLAS Offline Software
Loading...
Searching...
No Matches
DRScoringTool.cxx
Go to the documentation of this file.
1/*
2 * Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4
7
8namespace Trig {
9 DRScoringTool::DRScoringTool(const std::string &name) :
10 asg::AsgTool(name)
11 {}
12
14 {
15 return StatusCode::SUCCESS;
16 }
17
19 const xAOD::IParticle &online,
20 const xAOD::IParticle &offline) const
21 {
22 return xAOD::P4Helpers::deltaR(online, offline, m_useRapidity.value());
23 }
24} //> end namespace Trig
Gaudi::Property< bool > m_useRapidity
virtual float score(const xAOD::IParticle &online, const xAOD::IParticle &offline) const override
Calculate the matching score for a pair of particles.
DRScoringTool(const std::string &name)
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition AsgTool.cxx:58
Class providing the definition of the 4-vector interface.
The common trigger namespace for trigger analysis tools.
double deltaR(double rapidity1, double phi1, double rapidity2, double phi2)
from bare bare rapidity,phi