46 Name(
"outputCategory"),
48 (
"name of message facility output category to stream the information into (INFO level)"),
79 template <
typename Stream>
83 template <
typename Stream>
113 auto const& geom = *(lar::providerFrom<geo::Geometry>());
122 auto const& geom = *(lar::providerFrom<geo::Geometry>());
125 log <<
"\nGeometry used in " << run.
id() <<
":\n";
133 template <
typename Stream>
138 out <<
"Detector description: '" << geom.
ROOTFile() <<
"'\n";
139 geom.
Print(std::forward<Stream>(out));
145 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)
ChannelGroupService::Name Name
std::string fLastDetectorName
Name of the last geometry dumped.
EDAnalyzer(fhicl::ParameterSet const &pset)
Describes on screen the current geometry.
art framework interface to geometry description
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.
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
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.
Access the description of detector geometry.
LArSoft geometry interface.