13 #ifndef LAREXAMPLES_SERVICES_SHOWERCALIBRATIONGALORE_PROVIDERS_SHOWERCALIBRATIONGALORESCALE_H
14 #define LAREXAMPLES_SERVICES_SHOWERCALIBRATIONGALORE_PROVIDERS_SHOWERCALIBRATIONGALORESCALE_H
21 #include "fhiclcpp/ParameterSet.h"
22 #include "fhiclcpp/types/Atom.h"
23 #include "fhiclcpp/types/Comment.h"
24 #include "fhiclcpp/types/Name.h"
25 #include "fhiclcpp/types/Table.h"
63 Comment(
"correction factor to be applied to all particles")
68 Comment(
"uncertainty on the correction factor")
80 : corr(config.factor(), config.
error())
106 {
return corr.factor; }
125 virtual std::string
report()
const override
127 std::ostringstream sstr;
128 sstr <<
"Uniform correction: " << corr;
144 #endif // LAREXAMPLES_SERVICES_SHOWERCALIBRATIONGALORE_PROVIDERS_SHOWERCALIBRATIONGALORESCALE_H
fhicl::Table< Config > parameters_type
Type describing all the parameters.
A shower calibration service provider applying a uniform scale.
fhicl::Atom< float > error
fhicl::Atom< float > factor
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.
ShowerCalibrationGaloreScale(fhicl::ParameterSet const &pset)
Constructor from a parameter set.
virtual float correctionFactor(recob::Shower const &shower, PDGID_t PDGID=unknownID) const =0
Returns a correction factor for a given reconstructed shower.
BEGIN_PROLOG vertical distance to the surface Name
ShowerCalibrationGaloreScale(Config const &config)
Constructor from the complete configuration object.
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.
Interface for a shower calibration service provider.
Collection of configuration parameters for the service.
Interface for a shower calibration service provider.