LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
RunSettingsBase.hh
Go to the documentation of this file.
1
#ifndef artg4tk_Core_RunSettingsBase_hh
2
#define artg4tk_Core_RunSettingsBase_hh
3
4
#include "
art/Framework/Services/Registry/ServiceHandle.h
"
5
#include "
artg4tk/services/RunSettings_service.hh
"
6
7
#include "
fhiclcpp/ParameterSet.h
"
8
9
#include <string>
10
namespace
artg4tk
{
11
12
struct
RunSettingsBase
{
13
14
RunSettingsBase
(std::string
const
& listName) :
name
(listName),
p
()
15
{
16
art::ServiceHandle<artg4tk::RunSettingsService>
s;
17
p
= s->
getSettings
(listName);
18
}
19
20
virtual
~RunSettingsBase
() {}
21
22
virtual
bool
contains
(std::string) {
return
false
; }
23
24
std::string
name
;
25
fhicl::ParameterSet
p
;
26
};
27
}
28
29
#endif
/* artg4tk_Core_RunSettingsBase_hh */
art::ServiceHandle
Definition:
ServiceHandle.h:37
artg4tk::RunSettingsBase
Definition:
RunSettingsBase.hh:12
artg4tk::RunSettingsBase::contains
virtual bool contains(std::string)
Definition:
RunSettingsBase.hh:22
ParameterSet.h
ServiceHandle.h
artg4tk::RunSettingsService::getSettings
fhicl::ParameterSet getSettings(std::string const &)
Definition:
RunSettings.cc:15
artg4tk::RunSettingsBase::name
std::string name
Definition:
RunSettingsBase.hh:24
RunSettings_service.hh
artg4tk
Definition:
ActionBase.hh:12
artg4tk::RunSettingsBase::RunSettingsBase
RunSettingsBase(std::string const &listName)
Definition:
RunSettingsBase.hh:14
artg4tk::RunSettingsBase::~RunSettingsBase
virtual ~RunSettingsBase()
Definition:
RunSettingsBase.hh:20
artg4tk::RunSettingsBase::p
fhicl::ParameterSet p
Definition:
RunSettingsBase.hh:25
fhicl::ParameterSet
Definition:
ParameterSet.h:36
artg4tk
v12_00_03
source
artg4tk
Core
RunSettingsBase.hh
Generated on Thu May 2 2024 20:59:30 for LArSoft by
1.8.11