ATLAS Offline Software
Loading...
Searching...
No Matches
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
6
7double 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
double getTauFall() const
double getTauRise() const
double doEvaluate(double time) const override