Interface for a shower calibration service provider. More...
#include <ShowerCalibrationGalore.h>
Classes | |
struct | Correction_t |
A correction factor with global uncertainty. More... | |
Public Types | |
using | PDGID_t = int |
A type representing a particle ID in Particle Data Group convention. More... | |
Public Member Functions | |
virtual | ~ShowerCalibrationGalore ()=default |
virtual std::string | report () const =0 |
Returns a string with a short report of the current corrections. More... | |
Correction query | |
virtual float | correctionFactor (recob::Shower const &shower, PDGID_t PDGID=unknownID) const =0 |
Returns a correction factor for a given reconstructed shower. More... | |
virtual Correction_t | correction (recob::Shower const &shower, PDGID_t PDGID=unknownID) const =0 |
Returns the correction for a given reconstructed shower. More... | |
Static Public Attributes | |
static constexpr PDGID_t | unknownID = 0 |
A mnemonic constant for unknown particle ID. More... | |
Interface for a shower calibration service provider.
The service provider computes a calibration factor for a reconstructed shower.
It offers:
This is an abstract interface. The corresponding art service interface is called ShowerCalibrationGaloreService
.
Definition at line 44 of file ShowerCalibrationGalore.h.
using lar::example::ShowerCalibrationGalore::PDGID_t = int |
A type representing a particle ID in Particle Data Group convention.
Definition at line 66 of file ShowerCalibrationGalore.h.
|
virtualdefault |
|
pure virtual |
Returns the correction for a given reconstructed shower.
shower | the shower to be calibrated |
PDGID | hypothesis on type of particle originating the shower |
The returned value includes a correction factor to be applied to the shower energy to calibrate it, with its global uncertainty.
The particle type hypothesis argument is optional, and the invalid type 0
(unknownID
) implies that no hypothesis is present.
Implemented in lar::example::ShowerCalibrationGaloreFromPID, and lar::example::ShowerCalibrationGaloreScale.
|
pure virtual |
Returns a correction factor for a given reconstructed shower.
shower | the shower to be calibrated |
PDGID | hypothesis on type of particle originating the shower |
The returned value includes a correction factor to be applied to the shower energy to calibrate it, but no uncertainty.
The particle type hypothesis argument is optional, and the invalid type 0
(unknownID
) implies that no hypothesis is present.
Implemented in lar::example::ShowerCalibrationGaloreFromPID, and lar::example::ShowerCalibrationGaloreScale.
|
pure virtual |
Returns a string with a short report of the current corrections.
Implemented in lar::example::ShowerCalibrationGaloreFromPID, and lar::example::ShowerCalibrationGaloreScale.
|
static |
A mnemonic constant for unknown particle ID.
Definition at line 69 of file ShowerCalibrationGalore.h.