Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
larreco
larreco
Calibrator
PhotonCalibratorServiceStandard.h
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////
2
// \file PhotonCalibratorServiceStandard.h
3
//
4
// \brief Framework interface to PhotonCalibratorStandard
5
//
6
// \author ahimmel@fnal.gov
7
//
8
////////////////////////////////////////////////////////////////////////
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/ActivityRegistry.h
"
19
#include "
art/Framework/Services/Registry/ServiceDeclarationMacros.h
"
20
#include "
art/Framework/Services/Registry/ServiceTable.h
"
21
#include "
fhiclcpp/ParameterSet.h
"
22
#include "
fhiclcpp/types/Atom.h
"
23
24
namespace
calib
{
25
26
class
PhotonCalibratorServiceStandard
:
public
IPhotonCalibratorService
{
27
public
:
28
using
provider_type
=
PhotonCalibratorStandard
;
29
30
struct
ServiceConfiguration_t
{
31
fhicl::Atom<float>
SPESize
{
fhicl::Name
(
"SPESize"
)};
32
fhicl::Atom<float>
SPEShift
{
fhicl::Name
(
"SPEShift"
)};
33
fhicl::Atom<float>
UseArea
{
fhicl::Name
(
"UseArea"
)};
34
};
35
36
using
Parameters
=
art::ServiceTable<ServiceConfiguration_t>
;
37
38
PhotonCalibratorServiceStandard
(
Parameters
const
&
config
,
art::ActivityRegistry
& aReg)
39
:
fProvider
{config.
get_PSet
(), aReg}
40
{}
41
42
private
:
43
provider_type
const
*
44
provider
()
const override
45
{
46
return
&
fProvider
;
47
}
48
49
PhotonCalibratorStandard
fProvider
;
50
};
51
52
}
53
54
DECLARE_ART_SERVICE_INTERFACE_IMPL
(
calib::PhotonCalibratorServiceStandard
,
55
calib::IPhotonCalibratorService
,
56
LEGACY)
57
58
#endif // PHOTONCALIBRATORSERVICESTANDARD
calib::PhotonCalibratorServiceStandard::ServiceConfiguration_t
Definition:
PhotonCalibratorServiceStandard.h:30
calib::PhotonCalibratorServiceStandard::ServiceConfiguration_t::UseArea
fhicl::Atom< float > UseArea
Definition:
PhotonCalibratorServiceStandard.h:33
PhotonCalibratorStandard.h
calib::IPhotonCalibrator
Definition:
IPhotonCalibrator.h:29
DECLARE_ART_SERVICE_INTERFACE_IMPL
DECLARE_ART_SERVICE_INTERFACE_IMPL(MySharedService, art::test::MyServiceInterface, SHARED) DEFINE_ART_SERVICE_INTERFACE_IMPL(MySharedService
Name
ChannelGroupService::Name Name
Definition:
FixedChannelGroupService_service.cc:19
IPhotonCalibratorService.h
calib::PhotonCalibratorServiceStandard::fProvider
PhotonCalibratorStandard fProvider
Definition:
PhotonCalibratorServiceStandard.h:49
ParameterSet.h
ServiceDeclarationMacros.h
calib
Definition:
LifetimeCalib.h:12
calib::PhotonCalibratorServiceStandard::provider
provider_type const * provider() const override
Definition:
PhotonCalibratorServiceStandard.h:44
config
static Config * config
Definition:
config.cpp:1054
art::ServiceTable::get_PSet
fhicl::ParameterSet const & get_PSet() const
Definition:
ServiceTable.h:40
calib::PhotonCalibratorStandard
Definition:
PhotonCalibratorStandard.h:24
fhicl::Atom< float >
calib::PhotonCalibratorServiceStandard::PhotonCalibratorServiceStandard
PhotonCalibratorServiceStandard(Parameters const &config, art::ActivityRegistry &aReg)
Definition:
PhotonCalibratorServiceStandard.h:38
ServiceTable.h
calib::PhotonCalibratorServiceStandard::ServiceConfiguration_t::SPEShift
fhicl::Atom< float > SPEShift
Definition:
PhotonCalibratorServiceStandard.h:32
calib::PhotonCalibratorServiceStandard
Definition:
PhotonCalibratorServiceStandard.h:26
calib::IPhotonCalibratorService
Definition:
IPhotonCalibratorService.h:17
art::ActivityRegistry
Definition:
ActivityRegistry.h:52
ActivityRegistry.h
calib::PhotonCalibratorServiceStandard::ServiceConfiguration_t::SPESize
fhicl::Atom< float > SPESize
Definition:
PhotonCalibratorServiceStandard.h:31
Atom.h
art::ServiceTable
Definition:
ServiceTable.h:25
Run.h
Generated by
1.8.11