#include <ShowerEnergyAlg.h>
Definition at line 30 of file ShowerEnergyAlg.h.
Definition at line 26 of file ShowerEnergyAlg.cxx.
27 :
fLinearFunctions{{{pset.get<
double>(
"UGradient"), pset.get<
double>(
"UIntercept")},
28 {pset.get<
double>(
"VGradient"), pset.get<
double>(
"VIntercept")},
29 {pset.get<
double>(
"ZGradient"), pset.get<
double>(
"ZIntercept")}}}
std::array< LinearFunction, 3 > const fLinearFunctions
This overload is preferred as it does not rely on the cached DetectorProperties data member.
Definition at line 33 of file ShowerEnergyAlg.cxx.
41 auto const coeff =
sampling_rate(clockData) / (detprop.ElectronLifetime() * 1e3);
43 auto in_plane = [plane](
auto const&
hit) {
return hit.WireID().Plane == plane; };
44 auto charge = [coeff](
auto const&
hit) {
45 return hit.Integral() * std::exp(coeff *
hit.PeakTime());
48 double const totalCharge =
50 ranges::views::transform(charge),
std::array< LinearFunction, 3 > const fLinearFunctions
constexpr to_element_t to_element
Detector simulation of raw signals on wires.
static unsigned filter(unsigned char *out, const unsigned char *in, unsigned w, unsigned h, const LodePNG_InfoColor *info)
double sampling_rate(DetectorClocksData const &data)
Returns the period of the TPC readout electronics clock.
std::array<LinearFunction, 3> const shower::ShowerEnergyAlg::fLinearFunctions |
|
private |
The documentation for this class was generated from the following files: