ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetSimUtils
TRT_PAI_Process
src
TRT_PAI_utils.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TRT_PAI_utils_h
6
#define TRT_PAI_utils_h
7
8
#include <vector>
9
13
namespace
TRT_PAI_utils
{
23
float
Interpolate
(
float
xval,
24
const
std::vector<float>& xtabulated,
25
const
std::vector<float>& ytabulated);
26
inline
float
calculate_interpolation
(
float
xval,
float
x1,
float
x2,
float
y1,
float
y2)
27
{
28
return
y1+(y2-y1)*(xval-x1)/(x2-x1);
29
}
30
}
31
#endif
TRT_PAI_utils
Utilities.
Definition
TRT_PAI_utils.h:13
TRT_PAI_utils::Interpolate
float Interpolate(float xval, const std::vector< float > &xtabulated, const std::vector< float > &ytabulated)
Interpolation function.
Definition
TRT_PAI_utils.cxx:14
TRT_PAI_utils::calculate_interpolation
float calculate_interpolation(float xval, float x1, float x2, float y1, float y2)
Definition
TRT_PAI_utils.h:26
Generated on
for ATLAS Offline Software by
1.17.0