LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
MagneticFieldService.h
Go to the documentation of this file.
1
// \file MagneticFieldService.h
3
//
4
// \brief pure virtual service interface for magnetic field
5
//
6
// \author ebrianne@fnal.gov
7
//
9
#ifndef MAGNETICFIELDSERVICE_H
10
#define MAGNETICFIELDSERVICE_H
11
12
#include "
nug4/MagneticField/MagneticField.h
"
13
14
#include "
art/Framework/Services/Registry/ServiceDeclarationMacros.h
"
15
16
namespace
mag
{
17
class
MagneticFieldService
{
18
public
:
19
using
provider_type
=
mag::MagneticField
;
20
21
virtual
~MagneticFieldService
() =
default
;
22
virtual
const
mag::MagneticField
*
provider
()
const
= 0;
23
};
24
}
25
26
DECLARE_ART_SERVICE_INTERFACE
(
mag::MagneticFieldService
, SHARED)
27
28
#endif // MAGNETICFIELDSERVICE_H
mag
Definition:
GlobalMagneticField.cxx:26
mag::MagneticField
Definition:
MagneticField.h:82
MagneticField.h
ServiceDeclarationMacros.h
mag::MagneticFieldService::provider
virtual const mag::MagneticField * provider() const =0
mag::MagneticFieldService
Definition:
MagneticFieldService.h:17
mag::MagneticFieldService::~MagneticFieldService
virtual ~MagneticFieldService()=default
DECLARE_ART_SERVICE_INTERFACE
#define DECLARE_ART_SERVICE_INTERFACE(svc, scope)
Definition:
ServiceDeclarationMacros.h:80
nug4
MagneticFieldServices
MagneticFieldService.h
Generated on Thu May 2 2024 20:59:53 for LArSoft by
1.8.11