Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
garsoft
DetectorInfo
MagneticFieldServiceGAr.h
Go to the documentation of this file.
1
#ifndef MAGNETICFIELDSERVICEGAR_H
2
#define MAGNETICFIELDSERVICEGAR_H
3
4
#include "
art/Framework/Principal/Run.h
"
5
#include "
art/Framework/Services/Registry/ActivityRegistry.h
"
6
#include "
art/Framework/Services/Registry/ServiceHandle.h
"
7
#include "
art/Framework/Services/Registry/ServiceDeclarationMacros.h
"
8
#include "
art/Framework/Services/Registry/ServiceDefinitionMacros.h
"
9
#include "
fhiclcpp/ParameterSet.h
"
10
#include "nug4/MagneticFieldServices/MagneticFieldService.h"
11
#include "
DetectorInfo/GArMagneticField.h
"
12
13
namespace
mag
{
14
class
MagneticFieldServiceGAr
:
public
MagneticFieldService {
15
public
:
16
MagneticFieldServiceGAr
(
fhicl::ParameterSet
const
& pset,
art::ActivityRegistry
&
reg
);
17
18
private
:
19
void
reconfigure
(
fhicl::ParameterSet
const
& pset);
20
void
preBeginRun
(
const
art::Run
&
run
);
21
22
const
provider_type*
provider
()
const override
{
return
&
fProp
; }
23
24
mag::GArMagneticField
fProp
;
25
};
26
}
27
28
DECLARE_ART_SERVICE_INTERFACE_IMPL
(
mag::MagneticFieldServiceGAr
,
29
mag::MagneticFieldService,
30
SHARED)
31
32
#endif
DECLARE_ART_SERVICE_INTERFACE_IMPL
DECLARE_ART_SERVICE_INTERFACE_IMPL(MySharedService, art::test::MyServiceInterface, SHARED) DEFINE_ART_SERVICE_INTERFACE_IMPL(MySharedService
mag::MagneticFieldServiceGAr
Definition:
MagneticFieldServiceGAr.h:14
mag
Definition:
GArMagneticField.cxx:43
filelisting.run
int run
Definition:
filelisting.py:13
art::Run
Definition:
Run.h:17
ParameterSet.h
ServiceHandle.h
ServiceDeclarationMacros.h
mag::MagneticFieldServiceGAr::preBeginRun
void preBeginRun(const art::Run &run)
Definition:
MagneticFieldServiceGAr_service.cc:30
mag::GArMagneticField
Definition:
GArMagneticField.h:25
mag::MagneticFieldServiceGAr::reconfigure
void reconfigure(fhicl::ParameterSet const &pset)
Definition:
MagneticFieldServiceGAr_service.cc:36
GArMagneticField.h
mag::MagneticFieldServiceGAr::fProp
mag::GArMagneticField fProp
Definition:
MagneticFieldServiceGAr.h:24
mag::MagneticFieldServiceGAr::provider
const provider_type * provider() const override
Definition:
MagneticFieldServiceGAr.h:22
art::ActivityRegistry
Definition:
ActivityRegistry.h:52
ActivityRegistry.h
mag::MagneticFieldServiceGAr::MagneticFieldServiceGAr
MagneticFieldServiceGAr(fhicl::ParameterSet const &pset, art::ActivityRegistry ®)
Definition:
MagneticFieldServiceGAr_service.cc:23
ServiceDefinitionMacros.h
cet::registry_via_id
Definition:
registry_via_id.h:19
Run.h
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11