ATLAS Offline Software
InnerDetector
InDetSimUtils
TRT_PAI_Process
src
TRT_PAI_utils.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 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
(
const
float
&
xval
,
24
const
std::vector<float>& xtabulated,
25
const
std::vector<float>& ytabulated);
26
inline
float
calculate_interpolation
(
const
float
&
xval
,
const
float
&
x1
,
const
float
&
x2
,
const
float
&
y1
,
const
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
plotBeamSpotCompare.x1
x1
Definition:
plotBeamSpotCompare.py:216
plotBeamSpotCompare.x2
x2
Definition:
plotBeamSpotCompare.py:218
makeTRTBarrelCans.y1
tuple y1
Definition:
makeTRTBarrelCans.py:15
plotting.yearwise_efficiency_vs_mu.xval
float xval
Definition:
yearwise_efficiency_vs_mu.py:35
makeTRTBarrelCans.y2
tuple y2
Definition:
makeTRTBarrelCans.py:18
TRT_PAI_utils::calculate_interpolation
float calculate_interpolation(const float &xval, const float &x1, const float &x2, const float &y1, const float &y2)
Definition:
TRT_PAI_utils.h:26
TRT_PAI_utils::Interpolate
float Interpolate(const float &xval, const std::vector< float > &xtabulated, const std::vector< float > &ytabulated)
Interpolation function.
Definition:
TRT_PAI_utils.cxx:14
Generated on Sun Dec 22 2024 21:21:45 for ATLAS Offline Software by
1.8.18