12 #ifndef LAREXAMPLES_SERVICES_SHOWERCALIBRATIONGALORE_PROVIDERS_SHOWERCALIBRATIONGALORE_H
13 #define LAREXAMPLES_SERVICES_SHOWERCALIBRATIONGALORE_PROVIDERS_SHOWERCALIBRATIONGALORE_H
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 classes that can't be copied nor moved.
EResult err(const char *call)
bool operator==(Correction_t const &as) const
Correction_t(float val=1., float err=0.)
A correction factor with global uncertainty.
virtual Correction_t correction(recob::Shower const &shower, PDGID_t PDGID=unknownID) const =0
Returns the correction for a given reconstructed shower.
virtual std::string report() const =0
Returns a string with a short report of the current corrections.
virtual float correctionFactor(recob::Shower const &shower, PDGID_t PDGID=unknownID) const =0
Returns a correction factor for a given reconstructed shower.
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.
bool operator!=(Correction_t const &as) const
virtual ~ShowerCalibrationGalore()=default
float factor
correction factor
Interface for a shower calibration service provider.