29 #include "fhiclcpp/ParameterSet.h"
30 #include "messagefacility/MessageLogger/MessageLogger.h"
58 int main(
int argc,
char const** argv) {
63 std::string configPath;
64 std::string geoTestConfigPath =
"physics.analyzers.geotest";
69 if (++iParam < argc) configPath = argv[iParam];
71 throw std::runtime_error(
"No configuration file specified.");
74 if (++iParam < argc) geoTestConfigPath = argv[iParam];
81 using namespace lar::standalone;
88 mf::SetContextIteration(
"setup");
91 auto geom = SetupGeometry<geo::ChannelMapStandardAlg>
92 (pset.get<fhicl::ParameterSet>(
"services.Geometry"));
95 mf::SetContextIteration(
"run");
112 mf::SetContextIteration(
"end");
114 mf::LogError(
"geometry_test") <<
nErrors <<
" errors detected!";
Unit test for geometry functionalities.
Utilities for one-line geometry initialization.
virtual unsigned int Run()
Runs the test, returns a number of errors (very unlikely!)
Access the description of detector geometry.
void SetupMessageFacility(fhicl::ParameterSet const &pset, std::string applName="standalone")
Sets up the message facility service.
Collection of functions for quick setup of basic facilities.
Performs tests on the geometry as seen by Geometry service.
virtual void Setup(geo::GeometryCore const &new_geo)
Runs the test.
Interface to algorithm class for a specific detector channel mapping.
fhicl::ParameterSet ParseConfiguration(std::string configPath, cet::filepath_maker &lookupPolicy)
Parses a FHiCL configuration file.
int main(int argc, char **argv)