69 auto const* Zprov = lar::providerFrom<lar::example::AtomicNumberService>();
71 unsigned int const Z = Zprov->Z();
74 <<
"Unexpected atomic number " << Z <<
", should be " <<
expected_Z;
Provider returning atomic number of the active material in the TPC.
#define DEFINE_ART_MODULE(klass)
T get(std::string const &key) const
unsigned int expected_Z
expected atomic number
Tests AtomicNumberService.
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
AtomicNumberTest(fhicl::ParameterSet const &pset)
LArSoft-specific namespace.
Returns the atomic number of the active material in the TPC.
virtual void analyze(art::Event const &) override
We don't really care about events.
virtual void beginJob() override
Test happens at begin job.