ATLAS Offline Software
Loading...
Searching...
No Matches
ForwardDetectors
ZDC
ZdcUtils
Root
ZDCWaveformFermiExp.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
ZdcUtils/ZDCWaveformFermiExp.h
"
6
7
double
ZDCWaveformFermiExp::doEvaluate
(
double
time)
const
8
{
9
double
tau1 =
getTauRise
();
10
double
tau2 =
getTauFall
();
11
double
shift = -tau1 * std::log(tau2 / tau1 - 1.0);
12
double
timeShift = time - shift;
13
14
double
expTerm = std::exp(-timeShift / tau2);
15
double
fermiTerm = 1. / (1. + std::exp(-timeShift / tau1));
16
17
return
expTerm * fermiTerm;
18
}
19
ZDCWaveformFermiExp.h
ZDCWaveformBase::getTauFall
double getTauFall() const
Definition
ZDCWaveform.h:105
ZDCWaveformBase::getTauRise
double getTauRise() const
Definition
ZDCWaveform.h:104
ZDCWaveformFermiExp::doEvaluate
double doEvaluate(double time) const override
Definition
ZDCWaveformFermiExp.cxx:7
Generated on
for ATLAS Offline Software by
1.14.0