58 Name(
"outputCategory"),
60 "name of message facility output category to stream the information into (INFO level)"),
89 template <
typename Stream>
96 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";
136 template <
typename Stream>
143 out <<
"Detector description: '" << (geom ? geom->
GDMLFile() :
"unknown") <<
"'\n";
146 out << dumper.toStream();
151 template <
typename Stream>
Utilities related to art service access.
DumpGeometry(Parameters const &config)
std::string fLastDetectorName
Name of the last geometry dumped.
cout<< "Opened file "<< fin<< " ixs= "<< ixs<< endl;if(ixs==0) hhh=(TH1F *) fff-> Get("h1")
EDAnalyzer(fhicl::ParameterSet const &pset)
Describes on screen the current geometry.
Description of physical geometry of one set of auxiliary detectors.
void dump(Stream &&out, geo::GeometryCore const &geom)
Dumps the geometry and records it.
Access the description of auxiliary detector geometry.
Access the description of the physical detector geometry.
virtual void beginRun(art::Run const &run) override
Dumps the geometry if changed from the previous run.
#define DEFINE_ART_MODULE(klass)
Interface for a class providing readout channel mapping to geometry.
DumpGeometry & operator=(DumpGeometry const &)=delete
art framework interface to geometry description for auxiliary detectors
Description of the physical geometry of one entire detector.
fhicl::Atom< std::string > outputCategory
Algorithm dumping the full detector geometry down to wires.
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
std::string const & GDMLFile() const
Returns the full directory path to the GDML file source.
bool shouldDumpGeometry(geo::GeometryCore const &geom) const
Returns whether the specified geometry should be dumped.
void dumpGeometry(Stream &&out, geo::GeometryCore const *geom, geo::WireReadoutGeom const *wireGeom, geo::AuxDetGeometryCore const *auxGeom) const
Dumps the specified geometry into the specified output stream.
std::string const & DetectorName() const
Returns a string with the name of the detector, as configured.
Algorithm dumping the full detector geometry down to wires.
Interface to geometry for wire readouts .
art framework interface to geometry description