ATLAS Offline Software
Loading...
Searching...
No Matches
JetCalibTools/JetCalibTools/RootHelpers.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5class TH1;
6class TAxis;
7
8namespace RootHelpers
9{
10
11double Interpolate(const TH1* histo, const double x);
12
13double Interpolate(const TH1* histo, const double x, const double y);
14
15double Interpolate2D(const TH1* histo, const double x, const double y, const int xAxis, const int yAxis, const int otherDimBin);
16
17double Interpolate(const TH1* histo, const double x, const double y, const double z);
18
19} // end RootHelpers namespace
20
#define y
#define x
#define z
double Interpolate(const TH1 *histo, const double x)
double Interpolate2D(const TH1 *histo, const double x, const double y, const int xAxis, const int yAxis, const int otherDimBin)
Helper function for edge cases in 3D interpolation by interpolating in 2D and keeping the third axis ...