ATLAS Offline Software
Loading...
Searching...
No Matches
DRScoringTool.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4
5#ifndef TRIGGERMATCHINGTOOL_DRSCORINGTOOL_H
6#define TRIGGERMATCHINGTOOL_DRSCORINGTOOL_H
7
8#include "AsgTools/AsgTool.h"
11
12namespace Trig {
14 class DRScoringTool : public asg::AsgTool, virtual public IMatchScoringTool
15 {
17 public:
18 DRScoringTool(const std::string &name);
19 virtual ~DRScoringTool() override = default;
20
21 virtual StatusCode initialize() override;
22 virtual float score(
23 const xAOD::IParticle &online,
24 const xAOD::IParticle &offline) const override;
25 private:
26 Gaudi::Property<bool> m_useRapidity{
27 this, "UseRapidity", false, "Whether to use rapidity or eta for the calculation"};
28 }; //> end class DRScoringTool
29} //> end namespace Trig
30
31#endif //> !TRIGGERMATCHINGTOOL_DRSCORINGTOOL_H
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
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 ~DRScoringTool() override=default
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Interface class for scoring pairs of particles for matching.
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
Class providing the definition of the 4-vector interface.
The common trigger namespace for trigger analysis tools.