10 #ifndef PHOTONCALIBRATORDEFAULT_H 11 #define PHOTONCALIBRATORDEFAULT_H 18 class ActivityRegistry;
26 : fSPESize(pset.
get<float>(
"SPESize"))
27 , fSPEShift(pset.
get<float>(
"SPEShift", 0.))
28 , fUseArea(pset.
get<bool>(
"UseArea"))
32 : fSPESize(size), fSPEShift(shift), fUseArea(useArea)
36 double PE(
double adcs,
int )
const override 38 return adcs / fSPESize + fSPEShift;
40 bool UseArea()
const override {
return fUseArea; }
void SetUseArea(bool useArea)
void SetSPESize(float size)
PhotonCalibratorStandard(float size, float shift, bool useArea)
void SetSPEShift(float shift)
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
PhotonCalibratorStandard(fhicl::ParameterSet const &pset)
double PE(double adcs, int) const override
bool UseArea() const override
auto const & get(AssnsNode< L, R, D > const &r)