57 std::vector<std::pair<edm::ESGetToken<WhatsIt, GadgetRcd>,
const char*>>
tokenAndLabel_;
78 for (
auto l : std::vector<const char*>({
"",
"A",
"B",
"C",
"D"})) {
98 getAndTest(iSetup, tl.first, expectedValue, tl.second);
109 if (expectedValue !=
v.a) {
110 throw cms::Exception(
"TestFail") <<
label <<
": expected value " << expectedValue <<
" but got " <<
v.a;
WhatsItAnalyzer(const edm::ParameterSet &)
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
#define DEFINE_FWK_MODULE(type)
~WhatsItAnalyzer() override
std::vector< int > expectedValues_
void getAndTest(edm::EventSetup const &, edm::ESGetToken< WhatsIt, GadgetRcd > token, int expectedValue, const char *label)
void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< std::pair< edm::ESGetToken< WhatsIt, GadgetRcd >, const char * > > tokenAndLabel_