LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
PhotonCalibratorServiceStandard.h
Go to the documentation of this file.
1
// \file PhotonCalibratorServiceStandard.h
3
//
4
// \brief Framework interface to PhotonCalibratorStandard
5
//
6
// \author ahimmel@fnal.gov
7
//
9
10
#ifndef PHOTONCALIBRATORSERVICESTANDARD
11
#define PHOTONCALIBRATORSERVICESTANDARD
12
13
// LArSoft Includes
14
#include "
larreco/Calibrator/IPhotonCalibratorService.h
"
15
#include "
larreco/Calibrator/PhotonCalibratorStandard.h
"
16
17
#include "
art/Framework/Principal/Run.h
"
18
#include "
art/Framework/Services/Registry/ServiceDeclarationMacros.h
"
19
#include "
art/Framework/Services/Registry/ServiceTable.h
"
20
#include "
fhiclcpp/ParameterSet.h
"
21
#include "
fhiclcpp/types/Atom.h
"
22
23
namespace
calib
{
24
25
class
PhotonCalibratorServiceStandard
:
public
IPhotonCalibratorService
{
26
public
:
27
using
provider_type
=
PhotonCalibratorStandard
;
28
29
struct
ServiceConfiguration_t
{
30
fhicl::Atom<float>
SPESize
{
fhicl::Name
(
"SPESize"
)};
31
fhicl::Atom<float>
SPEShift
{
fhicl::Name
(
"SPEShift"
)};
32
fhicl::Atom<float>
UseArea
{
fhicl::Name
(
"UseArea"
)};
33
};
34
35
using
Parameters
=
art::ServiceTable<ServiceConfiguration_t>
;
36
37
PhotonCalibratorServiceStandard
(
Parameters
const
& config) :
fProvider
{config.
get_PSet
()} {}
38
39
private
:
40
provider_type
const
*
provider
()
const override
{
return
&
fProvider
; }
41
42
PhotonCalibratorStandard
fProvider
;
43
};
44
45
}
46
47
DECLARE_ART_SERVICE_INTERFACE_IMPL
(
calib::PhotonCalibratorServiceStandard
,
48
calib::IPhotonCalibratorService
,
49
LEGACY)
50
51
#endif // PHOTONCALIBRATORSERVICESTANDARD
calib::PhotonCalibratorServiceStandard::ServiceConfiguration_t
Definition:
PhotonCalibratorServiceStandard.h:29
calib::PhotonCalibratorServiceStandard::ServiceConfiguration_t::UseArea
fhicl::Atom< float > UseArea
Definition:
PhotonCalibratorServiceStandard.h:32
PhotonCalibratorStandard.h
calib::IPhotonCalibrator
Definition:
IPhotonCalibrator.h:20
IPhotonCalibratorService.h
calib::PhotonCalibratorServiceStandard::fProvider
PhotonCalibratorStandard fProvider
Definition:
PhotonCalibratorServiceStandard.h:42
ParameterSet.h
ServiceDeclarationMacros.h
calib
Definition:
OpHitAlg.h:19
calib::PhotonCalibratorServiceStandard::provider
provider_type const * provider() const override
Definition:
PhotonCalibratorServiceStandard.h:40
art::ServiceTable::get_PSet
fhicl::ParameterSet const & get_PSet() const
Definition:
ServiceTable.h:40
calib::PhotonCalibratorStandard
Definition:
PhotonCalibratorStandard.h:23
fhicl::Atom< float >
ServiceTable.h
calib::PhotonCalibratorServiceStandard::PhotonCalibratorServiceStandard
PhotonCalibratorServiceStandard(Parameters const &config)
Definition:
PhotonCalibratorServiceStandard.h:37
calib::PhotonCalibratorServiceStandard::ServiceConfiguration_t::SPEShift
fhicl::Atom< float > SPEShift
Definition:
PhotonCalibratorServiceStandard.h:31
calib::PhotonCalibratorServiceStandard
Definition:
PhotonCalibratorServiceStandard.h:25
calib::IPhotonCalibratorService
Definition:
IPhotonCalibratorService.h:17
calib::PhotonCalibratorServiceStandard::ServiceConfiguration_t::SPESize
fhicl::Atom< float > SPESize
Definition:
PhotonCalibratorServiceStandard.h:30
Atom.h
art::ServiceTable
Definition:
ServiceTable.h:25
Run.h
fhicl::Name
Definition:
Name.h:10
DECLARE_ART_SERVICE_INTERFACE_IMPL
#define DECLARE_ART_SERVICE_INTERFACE_IMPL(svc, iface, scope)
Definition:
ServiceDeclarationMacros.h:94
larreco
v09_25_00
source
larreco
Calibrator
PhotonCalibratorServiceStandard.h
Generated on Thu May 2 2024 20:59:44 for LArSoft by
1.8.11