Validates the AtomicNumber service provider configuration.
More...
#include "larexamples/Services/AtomicNumber/Providers/AtomicNumber.h"
#include "larcorealg/TestUtils/unit_test_base.h"
#include "fhiclcpp/types/Name.h"
#include <iostream>
#include <string>
#include <stdexcept>
Go to the source code of this file.
|
|
int | main (int argc, char **argv) |
|
Validates the AtomicNumber service provider configuration.
- Author
- Gianluca Petrillo (petri.nosp@m.llo@.nosp@m.fnal..nosp@m.gov)
- Date
- April 18, 2016
- See Also
- AtomicNumber.h
This test expects a single configuration file to be specified as first argument.
Definition in file ValidateAtomicNumberConfiguration_test.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 33 of file ValidateAtomicNumberConfiguration_test.cc.
42 (argc, argv,
"ValidateAtomicNumberConfiguration_test");
52 mf::LogVerbatim(
"ValidateAtomicNumberConfiguration") << std::string(80,
'-')
53 <<
"\nAllowed configuration for AtomicNumber provider:";
54 providerConfig.print_allowed_configuration(
std::cout);
60 mf::LogVerbatim(
"ValidateAtomicNumberConfiguration") << std::string(80,
'-')
61 <<
"\nValidating configuration from '"
62 << config.ServiceParameterSetPath(
"AtomicNumberService")
63 <<
"' in '" << config.ConfigurationPath() <<
"':";
66 providerConfig.validate_ParameterSet
67 (TesterEnv.ServiceParameters(
"AtomicNumberService"), {
"service_type" });
Class holding a configuration for a test environment.
fhicl::Table< Config > parameters_type
Type describing all the parameters.
TESTENV CreateTesterEnvironment(CONFIG &&config, ARGS...other_args)
Constructs and returns a TesterEnvironment object.
BEGIN_PROLOG vertical distance to the surface Name
BEGIN_PROLOG could also be cout