12 #ifndef LAREXAMPLES_SERVICES_SHOWERCALIBRATIONGALORE_PROVIDERS_SHOWERCALIBRATIONGALORE_H 13 #define LAREXAMPLES_SERVICES_SHOWERCALIBRATIONGALORE_PROVIDERS_SHOWERCALIBRATIONGALORE_H 56 : factor(val), error(err)
60 {
return (factor == as.
factor) && (error == as.
error); }
62 {
return (factor != as.
factor) || (error != as.
error); }
120 virtual std::string
report()
const = 0;
128 template <
typename Stream>
132 out << corr.factor <<
" +/- " << corr.error;
141 #endif // LAREXAMPLES_SERVICES_SHOWERCALIBRATIONGALORE_PROVIDERS_SHOWERCALIBRATIONGALORE_H An empty class that can't be copied nor moved.
Defines a class that can't be copied nor moved.
bool operator==(Correction_t const &as) const
Correction_t(float val=1., float err=0.)
virtual Correction_t correction(recob::Shower const &shower, PDGID_t PDGID=unknownID) const =0
Returns the correction for a given reconstructed shower.
A correction factor with global uncertainty.
float error
correction factor uncertainty
static constexpr PDGID_t unknownID
A mnemonic constant for unknown particle ID.
int PDGID_t
A type representing a particle ID in Particle Data Group convention.
LArSoft-specific namespace.
bool operator!=(Correction_t const &as) const
virtual ~ShowerCalibrationGalore()=default
virtual float correctionFactor(recob::Shower const &shower, PDGID_t PDGID=unknownID) const =0
Returns a correction factor for a given reconstructed shower.
virtual std::string report() const =0
Returns a string with a short report of the current corrections.
float factor
correction factor
Interface for a shower calibration service provider.