ATLAS Offline Software
Loading...
Searching...
No Matches
JetCalibTool.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// JetCalibTool.h
8// Header file for class JetCalibTool
10#ifndef JETCALIBTOOLS_JETCALIBTOOL_H
11#define JETCALIBTOOLS_JETCALIBTOOL_H 1
12
13#include <string.h>
14
15#include <TString.h>
16#include <TEnv.h>
17
18#include "AsgTools/AsgTool.h"
20#include "AsgTools/ToolHandle.h"
21
23
26
27
29 : public asg::AsgTool,
30 virtual public IJetCalibTool {
31
33
34public:
36 JetCalibTool(const std::string& name = "JetCalibTool");
37
38 virtual StatusCode initialize() override;
39 virtual StatusCode calibrate(xAOD::JetContainer&) const override;
40
41 // Get the nominal resolution
42 virtual StatusCode getNominalResolutionData(const xAOD::Jet& jet, const JetHelper::JetContext&, double& resolution) const override;
43 virtual StatusCode getNominalResolutionMC( const xAOD::Jet& jet, const JetHelper::JetContext&, double& resolution) const override;
44
45private:
46
47
48private:
49
50 ToolHandleArray<IJetCalibStep> m_calibSteps {this , "CalibSteps", {}, "calibration steps as IJetCalibStep" };
51
52 ToolHandle<IJetCalibStep> m_smearingTool {this , "SmearingTool", {}, "smearing tool as a IJetCalibStep" };
53
54};
55
56#endif //> !JETCALIBTOOLS_APPLYJETCALIBRATION_H
#define ASG_TOOL_CLASS2(CLASSNAME, INT1, INT2)
This interface is superseding the old version, IJetCalibrationTool.
IJetModifier is a dual-use tool interface for a tool that modifies a jet collection.
JetCalibTool(const std::string &name="JetCalibTool")
Constructor with parameters:
virtual StatusCode calibrate(xAOD::JetContainer &) const override
Apply calibration to a jet container.
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
ToolHandle< IJetCalibStep > m_smearingTool
ToolHandleArray< IJetCalibStep > m_calibSteps
virtual StatusCode getNominalResolutionData(const xAOD::Jet &jet, const JetHelper::JetContext &, double &resolution) const override
virtual StatusCode getNominalResolutionMC(const xAOD::Jet &jet, const JetHelper::JetContext &, double &resolution) const override
Class JetContext Designed to read AOD information related to the event, N vertices,...
Definition JetContext.h:24
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
Jet_v1 Jet
Definition of the current "jet version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".