52 Name(
"outputCategory"),
54 "name of message facility output category to stream the information into (INFO level)"),
83 template <
typename Stream>
87 template <
typename Stream>
108 auto const& geom = *(lar::providerFrom<geo::Geometry>());
117 auto const& geom = *(lar::providerFrom<geo::Geometry>());
120 log <<
"\nGeometry used in " << run.
id() <<
":\n";
127 template <
typename Stream>
131 out <<
"Detector description: '" << geom.
ROOTFile() <<
"'\n";
132 geom.
Print(std::forward<Stream>(out));
137 template <
typename Stream>
Utilities related to art service access.
void dumpGeometryCore(Stream &&out, geo::GeometryCore const &geom) const
Dumps the specified geometry into the specified output stream.
void Print(Stream &&out, std::string indent=" ") const
Prints geometry information with maximum verbosity.
DumpGeometry(Parameters const &config)
std::string fLastDetectorName
Name of the last geometry dumped.
std::string const & ROOTFile() const
Returns the full directory path to the geometry file source.
EDAnalyzer(fhicl::ParameterSet const &pset)
Describes on screen the current geometry.
void dump(Stream &&out, geo::GeometryCore const &geom)
Dumps the geometry and records it.
Access the description of detector geometry.
virtual void beginRun(art::Run const &run) override
Dumps the geometry if changed from the previous run.
#define DEFINE_ART_MODULE(klass)
DumpGeometry & operator=(DumpGeometry const &)=delete
Description of geometry of one entire detector.
fhicl::Atom< std::string > outputCategory
std::string fOutputCategory
Name of the category for output.
virtual void beginJob() override
Dumps the geometry at once.
virtual void analyze(art::Event const &) override
bool shouldDumpGeometry(geo::GeometryCore const &geom) const
Returns whether the specified geometry should be dumped.
std::string const & DetectorName() const
Returns a string with the name of the detector, as configured.
Namespace collecting geometry-related classes utilities.
art framework interface to geometry description