"Standard" implementation of DetectorProperties service More...
#include <DetectorPropertiesServiceStandardGAr.h>
Classes | |
struct | ServiceConfiguration_t |
Public Types | |
using | Parameters = ::art::ServiceTable< ServiceConfiguration_t > |
Public Types inherited from gar::detinfo::DetectorPropertiesService | |
typedef detinfo::DetectorProperties | provider_type |
Public Member Functions | |
DetectorPropertiesServiceStandardGAr (fhicl::ParameterSet const &pset,::art::ActivityRegistry ®) | |
virtual void | reconfigure (fhicl::ParameterSet const &pset) override |
void | preProcessEvent (::art::Event const &evt, art::ScheduleContext) |
void | postOpenFile (std::string const &filename) |
virtual const provider_type * | provider () const override |
Public Member Functions inherited from gar::detinfo::DetectorPropertiesService | |
virtual | ~DetectorPropertiesService ()=default |
Private Member Functions | |
bool | isDetectorPropertiesServiceStandardGAr (const fhicl::ParameterSet &ps) const |
Private Attributes | |
std::unique_ptr< detinfo::DetectorPropertiesStandard > | fProp |
fhicl::ParameterSet | fPS |
Original parameter set. More... | |
bool | fInheritNumberTimeSamples |
Flag saying whether to inherit NumberTimeSamples. More... | |
"Standard" implementation of DetectorProperties service
This class wraps DetectorPropertiesStandard provider into a art service. It delivers the provider via the standard interface:
detinfo::DetectorProperties const* detprop = ::art::ServiceHandle<detinfo::DetectorPropertiesStandard>() ->provider();
or, using the standard interface in "CoreUtils/ServiceUtil.h":
auto const* detprop = gar::providerFrom<detinfo::DetectorPropertiesStandard>();
In addition to the functionality of the provider, this service allows to read the configuration from the input file, inherited from a previous run.
This service passes the whole configuration down to its service provider, but it also reacts to:
Definition at line 60 of file DetectorPropertiesServiceStandardGAr.h.
using gar::detinfo::DetectorPropertiesServiceStandardGAr::Parameters = ::art::ServiceTable<ServiceConfiguration_t> |
Definition at line 82 of file DetectorPropertiesServiceStandardGAr.h.
gar::detinfo::DetectorPropertiesServiceStandardGAr::DetectorPropertiesServiceStandardGAr | ( | fhicl::ParameterSet const & | pset, |
::art::ActivityRegistry & | reg | ||
) |
Definition at line 29 of file DetectorPropertiesServiceStandardGAr_service.cc.
|
private |
Definition at line 180 of file DetectorPropertiesServiceStandardGAr_service.cc.
void gar::detinfo::DetectorPropertiesServiceStandardGAr::postOpenFile | ( | std::string const & | filename | ) |
Definition at line 74 of file DetectorPropertiesServiceStandardGAr_service.cc.
void gar::detinfo::DetectorPropertiesServiceStandardGAr::preProcessEvent | ( | ::art::Event const & | evt, |
art::ScheduleContext | |||
) |
Definition at line 65 of file DetectorPropertiesServiceStandardGAr_service.cc.
|
inlineoverridevirtual |
Implements gar::detinfo::DetectorPropertiesService.
Definition at line 91 of file DetectorPropertiesServiceStandardGAr.h.
|
overridevirtual |
Implements gar::detinfo::DetectorPropertiesService.
Definition at line 54 of file DetectorPropertiesServiceStandardGAr_service.cc.
|
private |
Flag saying whether to inherit NumberTimeSamples.
Definition at line 98 of file DetectorPropertiesServiceStandardGAr.h.
|
private |
Definition at line 95 of file DetectorPropertiesServiceStandardGAr.h.
|
private |
Original parameter set.
Definition at line 96 of file DetectorPropertiesServiceStandardGAr.h.