ATLAS Offline Software
Loading...
Searching...
No Matches
HistoInput1D.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef JETTOOLHELPERS_HISTOINPUT1D_H
6#define JETTOOLHELPERS_HISTOINPUT1D_H
7
8#include "TH1.h"
9#include "AsgTools/AsgTool.h"
10#include "AsgTools/ToolHandle.h"
11
14namespace JetHelper{
15
18
20{
22
23 public:
25 HistoInput1D(const std::string& name);
27 virtual StatusCode initialize() override;
28
30 virtual float getValue(const xAOD::Jet& jet, const JetContext& event) const override;
32
34 virtual bool runUnitTests() const;
35
36 private:
38 ToolHandle<IVarTool> m_vartool {this, "varTool1", "VarTool", "InputVariable instance" };
39};
40} // namespace JetHelper
41#endif
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
virtual float getValue(const xAOD::Jet &jet, const JetContext &event) const override
return value of histogram at jet variable
HistoInput1D(const std::string &name)
Constructor for standalone usage.
virtual bool runUnitTests() const
standalone test, no implemented yet
virtual StatusCode initialize() override
Function initialising the tool.
ToolHandle< IVarTool > m_vartool
interface to read xAOD::jet variable to be defined by user
HistoInputBase(const std::string &myname)
Constructor for standalone usage.
virtual float getValue(const xAOD::Jet &jet, const JetContext &jc) const =0
Class JetContext Designed to read AOD information related to the event, N vertices,...
Definition JetContext.h:24
class IJetCalibStep
Jet_v1 Jet
Definition of the current "jet version".