Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
duneopdet
duneopdet
OpticalDetector
PhotonCalibratorServiceProtoDUNESP.h
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////
2
// \file PhotonCalibratorServiceProtoDUNESP.h
3
//
4
// \brief Framework interface to PhotonCalibratorProtoDUNESP
5
//
6
// \author ahimmel@fnal.gov
7
//
8
////////////////////////////////////////////////////////////////////////
9
10
11
#ifndef PHOTONCALIBRATORSERVICEPROTODUNESP
12
#define PHOTONCALIBRATORSERVICEPROTODUNESP
13
14
// LArSoft Includes
15
#include "
duneopdet/OpticalDetector/PhotonCalibratorProtoDUNESP.h
"
16
#include "
larreco/Calibrator/IPhotonCalibratorService.h
"
17
18
19
// ART Includes
20
#include "
fhiclcpp/ParameterSet.h
"
21
#include "
fhiclcpp/types/Atom.h
"
22
#include "
fhiclcpp/types/Sequence.h
"
23
#include "
art/Framework/Services/Registry/ActivityRegistry.h
"
24
#include "
art/Framework/Services/Registry/ServiceHandle.h
"
25
#include "
art/Framework/Services/Registry/ServiceMacros.h
"
26
#include "
art/Framework/Services/Registry/ServiceTable.h
"
27
#include "
art/Framework/Principal/Run.h
"
28
29
30
#include <vector>
31
32
namespace
calib
{
33
34
35
class
PhotonCalibratorServiceProtoDUNESP
:
public
IPhotonCalibratorService
36
{
37
public
:
38
using
provider_type
=
PhotonCalibratorProtoDUNESP
;
39
40
struct
ServiceConfiguration_t
41
{
42
//fhicl::Atom<float> SPESize { fhicl::Name("SPESize") };
43
//fhicl::Atom<float> SPEShift { fhicl::Name("SPEShift") };
44
fhicl::Sequence<int>
BadChannels
{
fhicl::Name
(
"BadChannels"
),
fhicl::Comment
(
"Channels to remove from reconstruction"
) };
45
};
46
47
using
Parameters
=
art::ServiceTable<ServiceConfiguration_t>
;
48
49
public
:
50
PhotonCalibratorServiceProtoDUNESP
(
Parameters
const
&
config
,
51
art::ActivityRegistry
& aReg)
52
:
fProvider
( new
PhotonCalibratorProtoDUNESP
(config.get_PSet(), aReg) )
53
{ }
54
55
provider_type
const
*
provider
()
const override
{
return
fProvider
.get(); }
56
57
private
:
58
std::unique_ptr<PhotonCalibratorProtoDUNESP>
fProvider
;
59
};
60
61
}
62
63
DECLARE_ART_SERVICE_INTERFACE_IMPL
(
calib::PhotonCalibratorServiceProtoDUNESP
,
64
calib::IPhotonCalibratorService
,
65
LEGACY)
66
67
#endif // PHOTONCALIBRATORSERVICEPROTODUNESP
Sequence.h
calib::PhotonCalibratorServiceProtoDUNESP::provider
provider_type const * provider() const override
Definition:
PhotonCalibratorServiceProtoDUNESP.h:55
calib::PhotonCalibratorServiceProtoDUNESP
Definition:
PhotonCalibratorServiceProtoDUNESP.h:35
DECLARE_ART_SERVICE_INTERFACE_IMPL
DECLARE_ART_SERVICE_INTERFACE_IMPL(MySharedService, art::test::MyServiceInterface, SHARED) DEFINE_ART_SERVICE_INTERFACE_IMPL(MySharedService
calib::PhotonCalibratorProtoDUNESP
Definition:
PhotonCalibratorProtoDUNESP.h:25
Name
ChannelGroupService::Name Name
Definition:
FixedChannelGroupService_service.cc:19
PhotonCalibratorProtoDUNESP.h
IPhotonCalibratorService.h
ParameterSet.h
calib::PhotonCalibratorServiceProtoDUNESP::ServiceConfiguration_t::BadChannels
fhicl::Sequence< int > BadChannels
Definition:
PhotonCalibratorServiceProtoDUNESP.h:44
ServiceHandle.h
calib
Definition:
LifetimeCalib.h:12
config
static Config * config
Definition:
config.cpp:1054
calib::PhotonCalibratorServiceProtoDUNESP::fProvider
std::unique_ptr< PhotonCalibratorProtoDUNESP > fProvider
Definition:
PhotonCalibratorServiceProtoDUNESP.h:58
ServiceMacros.h
ServiceTable.h
Comment
#define Comment
Definition:
commentscan.cpp:4062
calib::PhotonCalibratorServiceProtoDUNESP::PhotonCalibratorServiceProtoDUNESP
PhotonCalibratorServiceProtoDUNESP(Parameters const &config, art::ActivityRegistry &aReg)
Definition:
PhotonCalibratorServiceProtoDUNESP.h:50
calib::IPhotonCalibratorService
Definition:
IPhotonCalibratorService.h:17
art::ActivityRegistry
Definition:
ActivityRegistry.h:52
ActivityRegistry.h
calib::PhotonCalibratorServiceProtoDUNESP::ServiceConfiguration_t
Definition:
PhotonCalibratorServiceProtoDUNESP.h:40
Atom.h
fhicl::Sequence< int >
art::ServiceTable
Definition:
ServiceTable.h:25
Run.h
Generated by
1.8.11