ATLAS Offline Software
ForwardDetectors
ZDC
ZdcAnalysis
Root
ZdcSincInterp.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
ZdcAnalysis/ZdcSincInterp.h
"
6
#include "TMath.h"
7
#include <cmath>
8
9
namespace
ZDC
10
{
11
double
SincInterp
(
const
double
* xvec,
const
double
*
pvec
)
12
{
13
// pvec are the sample values
14
double
ret
= 0;
15
double
T =
pvec
[0];
// deltaT
16
double
t
= xvec[0];
17
for
(
int
isamp = 0; isamp < 7; isamp++)
18
{
19
double
arg
= (
t
- isamp * T) / T;
20
if
(
arg
!= 0.0)
21
{
22
ret
+=
pvec
[isamp + 1] *
std::sin
(TMath::Pi() *
arg
) / (TMath::Pi() *
arg
);
23
}
24
}
25
return
ret
;
26
}
27
}
ZDC::SincInterp
double SincInterp(const double *xvec, const double *pvec)
Definition:
ZdcSincInterp.cxx:11
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
ZdcSincInterp.h
ret
T ret(T t)
Definition:
rootspy.cxx:260
create_dcsc_inputs_sqlite.arg
list arg
Definition:
create_dcsc_inputs_sqlite.py:48
ZDC
Definition:
RpdSubtractCentroidTool.cxx:13
pvec
std::array< fp_t, 2 > pvec
Definition:
FPGATrackSimLLPDoubletHoughTransformTool.cxx:9
drawFromPickle.sin
sin
Definition:
drawFromPickle.py:36
Generated on Sun Jun 30 2024 21:33:13 for ATLAS Offline Software by
1.8.18