ATLAS Offline Software
Trigger
TrigAnalysis
TriggerMatchingTool
Root
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
5
#include "
TriggerMatchingTool/DRScoringTool.h
"
6
#include "
FourMomUtils/xAODP4Helpers.h
"
7
8
namespace
Trig
{
9
DRScoringTool::DRScoringTool
(
const
std::string &
name
) :
10
asg
::AsgTool(
name
)
11
{}
12
13
StatusCode
DRScoringTool::initialize
()
14
{
15
return
StatusCode::SUCCESS;
16
}
17
18
float
DRScoringTool::score
(
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
Trig::DRScoringTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition:
DRScoringTool.cxx:13
Trig
The common trigger namespace for trigger analysis tools.
Definition:
LArCellMonAlg.h:33
xAODP4Helpers.h
asg
Definition:
DataHandleTestTool.h:28
Trig::DRScoringTool::score
virtual float score(const xAOD::IParticle &online, const xAOD::IParticle &offline) const override
Calculate the matching score for a pair of particles.
Definition:
DRScoringTool.cxx:18
offline
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition:
Event/xAOD/xAODBase/xAODBase/IParticle.h:41
TileSynchronizeBch.online
online
Definition:
TileSynchronizeBch.py:88
xAOD::P4Helpers::deltaR
double deltaR(double rapidity1, double phi1, double rapidity2, double phi2)
from bare bare rapidity,phi
Definition:
xAODP4Helpers.h:150
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
DRScoringTool.h
Trig::DRScoringTool::m_useRapidity
Gaudi::Property< bool > m_useRapidity
Definition:
DRScoringTool.h:26
Trig::DRScoringTool::DRScoringTool
DRScoringTool(const std::string &name)
Definition:
DRScoringTool.cxx:9
Generated on Thu Nov 7 2024 21:13:51 for ATLAS Offline Software by
1.8.18