All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | List of all members
lar::example::ShowerCalibrationGaloreScale Class Reference

A shower calibration service provider applying a uniform scale. More...

#include <ShowerCalibrationGaloreScale.h>

Inheritance diagram for lar::example::ShowerCalibrationGaloreScale:
lar::example::ShowerCalibrationGalore lar::UncopiableAndUnmovableClass lar::UncopiableClass lar::UnmovableClass

Classes

struct  Config
 Collection of configuration parameters for the service. More...
 

Public Types

using parameters_type = fhicl::Table< Config >
 Type describing all the parameters. More...
 
- Public Types inherited from lar::example::ShowerCalibrationGalore
using PDGID_t = int
 A type representing a particle ID in Particle Data Group convention. More...
 

Public Member Functions

 ShowerCalibrationGaloreScale (Config const &config)
 Constructor from the complete configuration object. More...
 
 ShowerCalibrationGaloreScale (fhicl::ParameterSet const &pset)
 Constructor from a parameter set. More...
 
- Public Member Functions inherited from lar::example::ShowerCalibrationGalore
virtual ~ShowerCalibrationGalore ()=default
 
virtual std::string report () const =0
 Returns a string with a short report of the current corrections. More...
 
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...
 

Additional Inherited Members

- Static Public Attributes inherited from lar::example::ShowerCalibrationGalore
static constexpr PDGID_t unknownID = 0
 A mnemonic constant for unknown particle ID. More...
 
- Protected Member Functions inherited from lar::UncopiableClass
 UncopiableClass ()=default
 Default constructor. More...
 
 ~UncopiableClass ()=default
 Default destructor. More...
 
 UncopiableClass (UncopiableClass const &)=delete
 Deleted copy and move constructors and assignments. More...
 
 UncopiableClass (UncopiableClass &&)=default
 
UncopiableClassoperator= (UncopiableClass const &)=delete
 
UncopiableClassoperator= (UncopiableClass &&)=default
 
- Protected Member Functions inherited from lar::UnmovableClass
 UnmovableClass ()=default
 Default constructor. More...
 
 ~UnmovableClass ()=default
 Default destructor. More...
 
 UnmovableClass (UnmovableClass const &)=default
 Default copy constructor and assignment. More...
 
UnmovableClassoperator= (UnmovableClass const &)=default
 
 UnmovableClass (UnmovableClass &&)=delete
 Deleted move constructor and assignment. More...
 
UnmovableClassoperator= (UnmovableClass &&)=delete
 

Detailed Description

A shower calibration service provider applying a uniform scale.

See Also
ShowerCalibrationGalore example overview

The service provider computes a calibration factor for a reconstructed shower. The calibration factor is a single number for the whole detector and for the entire data sample.

Configuration parameters

Definition at line 52 of file ShowerCalibrationGaloreScale.h.

Member Typedef Documentation

Type describing all the parameters.

Definition at line 74 of file ShowerCalibrationGaloreScale.h.

Constructor & Destructor Documentation

lar::example::ShowerCalibrationGaloreScale::ShowerCalibrationGaloreScale ( Config const &  config)
inline

Constructor from the complete configuration object.

Definition at line 79 of file ShowerCalibrationGaloreScale.h.

80  : corr(config.factor(), config.error())
81  {}
lar::example::ShowerCalibrationGaloreScale::ShowerCalibrationGaloreScale ( fhicl::ParameterSet const &  pset)
inline

Constructor from a parameter set.

Definition at line 85 of file ShowerCalibrationGaloreScale.h.

87  (parameters_type(pset, { "service_type", "service_provider" })())
fhicl::Table< Config > parameters_type
Type describing all the parameters.
ShowerCalibrationGaloreScale(Config const &config)
Constructor from the complete configuration object.

The documentation for this class was generated from the following file: