48 Name(
"outputCategory"),
50 (
"name of message facility output category to stream the information into (INFO level)"),
81 template <
typename Stream>
85 template <
typename Stream>
117 auto const& geom = *(lar::providerFrom<geo::Geometry>());
126 auto const& geom = *(lar::providerFrom<geo::Geometry>());
129 log <<
"\nGeometry used in " << run.
id() <<
":\n";
137 template <
typename Stream>
142 out <<
"Detector description: '" << geom.
ROOTFile() <<
"'\n";
143 geom.
Print(std::forward<Stream>(out));
149 template <
typename Stream>
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.
Describes on screen the current geometry.
std::string ROOTFile() const
Returns the full directory path to the geometry file source.
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)
std::string DetectorName() const
Returns a string with the name of the detector, as configured.
DumpGeometry & operator=(DumpGeometry const &)=delete
EDAnalyzer(Table< Config > const &config)
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.
Namespace collecting geometry-related classes utilities.
art framework interface to geometry description