30 class GeometryGArConfigurationWriter;
105 using InfoPtr_t = std::unique_ptr<gar::sumdata::GeometryConfigurationInfo>;
139 produces<gar::sumdata::GeometryConfigurationInfo, art::InRun>();
180 MF_LOG_DEBUG(
"GeometryGArConfigurationWriter") <<
"Geometry configuration information from service:\n" 216 return allRunData.empty() ?
nullptr: allRunData.front().product();
231 <<
"Built geometry configuration information from run data:\n" InfoPtr_t makeInfoFromRunData(art::Run &run) const
DataVersion_t dataVersion
Version of the data in this object (0 is invalid version).
std::unique_ptr< gar::sumdata::GeometryConfigurationInfo > InfoPtr_t
Alias for the pointer to the data product object to be put into the run.
InfoPtr_t loadInfo(art::Run &run) const
Loads the geometry information from the run (either directly or legacy).
virtual void postReadRun(art::Run &run) override
Writes the information from the service configuration into the run.
Description of the current configuration of detector geometry.
std::vector< Handle< PROD > > getMany(SelectorBase const &selector=MatchAllSelector{}) const
unsigned int DataVersion_t
Type used for the version of data.
gar::sumdata::RunData const * readRunData(art::Run &run) const
Returns a pointer to the sumdata::RunData in run (nullptr if none).
ProductID put(std::unique_ptr< PROD > &&edp, std::string const &instance={})
#define DEFINE_ART_PRODUCING_SERVICE(klass)
static InfoPtr_t makeInfoPtr(gar::sumdata::GeometryConfigurationInfo const &info)
Alias to std::make_unique<sumdata::GeometryConfigurationInfo>.
General GArSoft Utilities.
GeometryGArConfigurationWriter(Parameters const &)
Constructor: gets its configuration and does nothing with it.
Writes geometry configuration information into art runs.
LArSoft geometry interface.
art framework interface to geometry description
static InfoPtr_t extractInfoFromGeometry()
Creates configuration information based on the current Geometry service.
static InfoPtr_t convertRunDataToGeometryInformation(gar::sumdata::RunData const &data)
Converts the legacy data into geometry configuration information.
InfoPtr_t readGeometryInformation(art::Run &run) const
Reads geometry information from the run (returns null pointer if none).