ATLAS Offline Software
Loading...
Searching...
No Matches
MuonInJetCorrectionTool.h
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5*/
6
7// MuonInJetCorrectionTool.h
8// Header file for class MuonInJetCorrectionTool
9// Authors: Mohamed Belfkir <mohamed.belfkir@cern.ch>
10// Thomas Strebler <thomas.strebler@cern.ch>
12
13#ifndef JETCALIBTOOLS_APPLYMUONINJETCORRECTION_H
14#define JETCALIBTOOLS_APPLYMUONINJETCORRECTION_H 1
15
16#include "AsgTools/AsgTool.h"
18
20
21#include "xAODJet/Jet.h"
22#include <vector>
23#include "xAODMuon/Muon.h"
25
26
28 virtual public IMuonInJetCorrectionTool {
29
31
32public:
34 MuonInJetCorrectionTool(const std::string& name);
35
37 //~MuonInJetCorrectionTool() = default;
38
39 //StatusCode initialize() = default;
40
41 virtual StatusCode applyMuonInJetCorrection(xAOD::Jet& jet, const std::vector<const xAOD::Muon*>& muons, int& nmuons) const override;
42
43private:
44
45 const xAOD::Muon* getMuonInJet(const xAOD::Jet& jet, const std::vector<const xAOD::Muon*>& muons, int& nmuons) const;
46
47 Gaudi::Property<double> m_Jet_Muon_dR{this, "Jet_Muon_dR", 0.4, "Muon-matching dR cut"};
48 Gaudi::Property<bool> m_doVR{this, "doVR", true, "Use variable radius for muon matching"};
49 Gaudi::Property<bool> m_doLargeR{this, "doLargeR", false, "Do correction for large-R jets"};
50
51};
52#endif //> !JETCALIBTOOLS_APPLYMUONINJETCORRECTION_H
53
#define ASG_TOOL_CLASS1
class IMuonInJetCorrectionTool
Gaudi::Property< bool > m_doVR
Gaudi::Property< bool > m_doLargeR
virtual StatusCode applyMuonInJetCorrection(xAOD::Jet &jet, const std::vector< const xAOD::Muon * > &muons, int &nmuons) const override
Destructor:
const xAOD::Muon * getMuonInJet(const xAOD::Jet &jet, const std::vector< const xAOD::Muon * > &muons, int &nmuons) const
MuonInJetCorrectionTool(const std::string &name)
Constructor with parameters:
Gaudi::Property< double > m_Jet_Muon_dR
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
Jet_v1 Jet
Definition of the current "jet version".
Muon_v1 Muon
Reference the current persistent version: