Tests AtomicNumberService.
More...
Tests AtomicNumberService.
Configuration parameters
- AtomicNumber (unsigned integer, mandatory): the expected atomic number
Definition at line 35 of file AtomicNumberTest_module.cc.
lar::example::tests::AtomicNumberTest::AtomicNumberTest |
( |
fhicl::ParameterSet const & |
pset | ) |
|
|
explicit |
virtual void lar::example::tests::AtomicNumberTest::analyze |
( |
art::Event const & |
| ) |
|
|
inlineoverridevirtual |
void lar::example::tests::AtomicNumberTest::beginJob |
( |
| ) |
|
|
overridevirtual |
Test happens at begin job.
Definition at line 67 of file AtomicNumberTest_module.cc.
69 auto const* Zprov = lar::providerFrom<lar::example::AtomicNumberService>();
71 unsigned int const Z = Zprov->Z();
73 throw art::Exception(art::errors::LogicError)
74 <<
"Unexpected atomic number " << Z <<
", should be " <<
expected_Z;
unsigned int expected_Z
expected atomic number
unsigned int lar::example::tests::AtomicNumberTest::expected_Z |
|
private |
The documentation for this class was generated from the following file: