ATLAS Offline Software
Loading...
Searching...
No Matches
BJetCorrectionTool.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// BJetCorrectionTool.h
8// Header file for class BJetCorrectionTool
9// Simple histogram-based pT-dependent correction
10// To be replaced in 2025 with new MVA-based regression
11//
12// Authors: Mohamed Belfkir <mohamed.belfkir@cern.ch>
13// Thomas Strebler <thomas.strebler@cern.ch>
15#ifndef JETCALIBTOOLS_BJETCORRECTIONTOOL_H
16#define JETCALIBTOOLS_BJETCORRECTIONTOOL_H 1
17
18#include "AsgTools/AsgTool.h"
20
22
23#include "xAODJet/Jet.h"
24
25#include <TFile.h>
26#include <TH1F.h>
27
29 virtual public IBJetCorrectionTool {
30
32
33public:
35 BJetCorrectionTool(const std::string& name);
36
39
40 virtual StatusCode initialize() override;
41 virtual StatusCode applyBJetCorrection(xAOD::Jet& jet, bool isSemiLep) const override;
42
43private:
44
45 //Variables for configuration
46 Gaudi::Property<std::string> m_calibFileName{this, "calibFile",
47 "CalibArea-01/AntiKt4EMPFlow_PtReco_Correction_GN2v01_85_ttbar.root",
48 "ROOT file for reconstructed pt correction"};
49
50 // Clean up automatically
51 std::unique_ptr<TH1F> m_Semi_Histo;
52 std::unique_ptr<TH1F> m_Had_Histo;
53
54};
55
56#endif //> !JETCALIBTOOLS_BJETCORRECTIONTOOL_H
#define ASG_TOOL_CLASS1
BJetCorrectionTool(const std::string &name)
Constructor with parameters:
~BJetCorrectionTool()=default
Destructor:
virtual StatusCode applyBJetCorrection(xAOD::Jet &jet, bool isSemiLep) const override
std::unique_ptr< TH1F > m_Semi_Histo
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
std::unique_ptr< TH1F > m_Had_Histo
Gaudi::Property< std::string > m_calibFileName
class IBJetCorrectionTool
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
Jet_v1 Jet
Definition of the current "jet version".