16 #include "art/Framework/Core/ModuleMacros.h"
17 #include "art/Framework/Core/EDAnalyzer.h"
18 #include "canvas/Utilities/Exception.h"
19 #include "messagefacility/MessageLogger/MessageLogger.h"
20 #include "fhiclcpp/types/Atom.h"
21 #include "fhiclcpp/types/Sequence.h"
60 Comment(
"starting shower energy [GeV]"),
66 Comment(
"last shower energy [GeV]"),
72 Comment(
"shower energy step [GeV] (0 to have 10 steps)"),
76 fhicl::Sequence<int>
PID {
79 (
"list of ID of particles to test shower calibration of"),
80 { 11, 13, 111, 2212, 22 }
86 (art::EDAnalyzer::Table<Config>
const& config);
89 virtual void analyze(art::Event
const&)
override;
91 virtual void beginRun(art::Run
const&)
override;
97 std::vector<lar::example::ShowerCalibrationGalore::PDGID_t>
PIDs;
109 (art::EDAnalyzer::Table<Config>
const& config)
110 : art::EDAnalyzer(config)
111 , Emin(config().Emin())
112 , Emax(config().Emax())
113 , Estep(config().Estep())
114 ,
PIDs(config().PID())
123 = lar::providerFrom<lar::example::ShowerCalibrationGaloreService>();
125 mf::LogInfo(
"ShowerCalibrationGaloreTest") << calib->report();
135 = lar::providerFrom<lar::example::ShowerCalibrationGaloreService>();
138 mf::LogVerbatim(
"ShowerCalibrationGaloreTest"),
140 Emin, Emax, Estep,
PIDs
virtual void analyze(art::Event const &) override
Tests ShowerCalibrationGaloreService.
Test functions for ShowerCalibrationGalore service providers.
virtual void beginRun(art::Run const &) override
std::vector< lar::example::ShowerCalibrationGalore::PDGID_t > PIDs
fhicl::Sequence< int > PID
BEGIN_PROLOG vertical distance to the surface Name
static const std::vector< int > PIDs
Interface for a shower calibration art service.
fhicl::Atom< float > Emax
ShowerCalibrationGaloreTest(art::EDAnalyzer::Table< Config > const &config)
Interface for a shower calibration service provider.
unsigned int ShowerCalibrationTableTest(Stream &&out, lar::example::ShowerCalibrationGalore const *calibration, float Emin=0.0, float Emax=2.5, float Estep=0.1, std::vector< lar::example::ShowerCalibrationGalore::PDGID_t > const &pids={11, 13, 111, 2212, 22})
Synthetic test: prints corrections for showers in a energy range.
fhicl::Atom< float > Estep
fhicl::Atom< float > Emin