#include <ScintTimeLAr.h>
Definition at line 27 of file ScintTimeLAr.h.
Definition at line 14 of file ScintTimeLAr_tool.cc.
15 :
LogLevel{pset.get<
int>(
"LogLevel")}
16 ,
SRTime{pset.get<
double>(
"SlowRisingTime", 0.0)}
17 ,
SDTime{pset.get<
double>(
"SlowDecayTime", 0.0)}
18 ,
FRTime{pset.get<
double>(
"FastRisingTime", 0.0)}
19 ,
FDTime{pset.get<
double>(
"FastDecayTime", 0.0)}
23 std::cout <<
"ScintTimeLAr Tool configure:" <<
std::endl;
24 std::cout <<
"Fast rising time: " <<
FRTime 25 <<
", Fast decay time: " <<
FDTime 26 <<
", Slow rising time: " <<
SRTime 27 <<
", Slow decay time: " <<
SDTime
QTextStream & endl(QTextStream &s)
double phot::ScintTimeLAr::bi_exp |
( |
double |
t, |
|
|
double |
tau1, |
|
|
double |
tau2 |
|
) |
| |
|
private |
Definition at line 39 of file ScintTimeLAr_tool.cc.
41 return (((std::exp((-1.0 *
t) / tau2) * (1.0 - std::exp((-1.0 *
t) /
tau1))) / tau2) / tau2) * (
tau1 + tau2);
void phot::ScintTimeLAr::GenScintTime |
( |
bool |
is_fast, |
|
|
CLHEP::HepRandomEngine & |
engine |
|
) |
| |
|
virtual |
Implements phot::ScintTime.
Definition at line 49 of file ScintTimeLAr_tool.cc.
65 CLHEP::RandFlat randflatscinttime{engine};
67 if ((tau1 == 0.0) || (tau1 == -1.0))
69 timing = -tau2 * std::log(randflatscinttime());
76 auto ran1 = randflatscinttime();
77 auto ran2 = randflatscinttime();
78 auto d = (tau1 + tau2) / tau2;
79 auto t = -tau2 * std::log(1 - ran1);
81 if (ran2 <=
bi_exp(
t, tau1, tau2) /
g)
static constexpr double g
double single_exp(double t, double tau2)
double bi_exp(double t, double tau1, double tau2)
double phot::ScintTimeLAr::single_exp |
( |
double |
t, |
|
|
double |
tau2 |
|
) |
| |
|
private |
double phot::ScintTimeLAr::FDTime |
|
private |
double phot::ScintTimeLAr::FRTime |
|
private |
int phot::ScintTimeLAr::LogLevel |
|
private |
double phot::ScintTimeLAr::SDTime |
|
private |
double phot::ScintTimeLAr::SRTime |
|
private |
The documentation for this class was generated from the following files: