#include <ScintTimeLAr.h>
|
double | single_exp (double t, double tau2) const |
|
double | bi_exp (double t, double tau1, double tau2) const |
|
Definition at line 20 of file ScintTimeLAr.h.
phot::ScintTimeLAr::ScintTimeLAr |
( |
fhicl::ParameterSet const & |
pset | ) |
|
|
explicit |
Definition at line 19 of file ScintTimeLAr.cc.
20 :
LogLevel{pset.get<
int>(
"LogLevel")}
21 ,
SRTime{pset.get<
double>(
"SlowRisingTime", 0.0)}
22 ,
SDTime{pset.get<
double>(
"SlowDecayTime", 0.0)}
23 ,
FRTime{pset.get<
double>(
"FastRisingTime", 0.0)}
24 ,
FDTime{pset.get<
double>(
"FastDecayTime", 0.0)}
27 std::cout <<
"ScintTimeLAr Tool configure:" << std::endl;
29 <<
", Fast decay time: " <<
FDTime
30 <<
", Slow rising time: " <<
SRTime
31 <<
", Slow decay time: " <<
SDTime
BEGIN_PROLOG could also be cout
double phot::ScintTimeLAr::bi_exp |
( |
double |
t, |
|
|
double |
tau1, |
|
|
double |
tau2 |
|
) |
| const |
|
private |
void phot::ScintTimeLAr::GenScintTime |
( |
bool |
is_fast, |
|
|
CLHEP::HepRandomEngine & |
engine |
|
) |
| |
|
virtual |
Implements phot::ScintTime.
Definition at line 54 of file ScintTimeLAr.cc.
68 CLHEP::RandFlat randflatscinttime{engine};
70 if ((tau1 < 1
e-8) || (tau1 == -1.0)) {
71 timing = -tau2 * std::log(randflatscinttime());
77 auto ran1 = randflatscinttime();
78 auto ran2 = randflatscinttime();
79 auto d = (tau1 + tau2) / tau2;
80 auto t = -tau2 * std::log(1 - ran1);
82 if (ran2 <=
bi_exp(t, tau1, tau2) /
g) {
double bi_exp(double t, double tau1, double tau2) const
double single_exp(double t, double tau2) const
double phot::ScintTimeLAr::single_exp |
( |
double |
t, |
|
|
double |
tau2 |
|
) |
| const |
|
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: