46 : checkExpectedValues_{
pset.getUntrackedParameter<
bool>(
"checkExpectedValues")},
51 auto lumiNumber =
event.eventAuxiliary().luminosityBlock();
59 if (iovTestInfoFromESSource->
iovStartLumi_ != iov.first().luminosityBlockNumber() ||
60 iovTestInfoFromESSource->
iovEndLumi_ != iov.last().luminosityBlockNumber() ||
63 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 64 <<
" values read from ESSource do not agree with record";
67 if (iovTestInfoFromESProducer->
iovStartLumi_ != iov.first().luminosityBlockNumber() ||
68 iovTestInfoFromESProducer->
iovEndLumi_ != iov.last().luminosityBlockNumber() ||
71 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 72 <<
" values read from ESProducer do not agree with record";
80 if (lumiNumber == 1) {
83 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 84 <<
" values read from ESProducer do not agree with expected values";
87 if (lumiNumber == 2) {
90 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 91 <<
" values read from ESProducer do not agree with expected values";
94 if (lumiNumber == 3) {
97 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 98 <<
" values read from ESProducer do not agree with expected values";
101 if (lumiNumber == 4) {
104 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 105 <<
" values read from ESProducer do not agree with expected values";
108 if (lumiNumber == 5) {
111 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 112 <<
" values read from ESProducer do not agree with expected values";
115 if (lumiNumber == 6) {
118 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 119 <<
" values read from ESProducer do not agree with expected values";
122 if (lumiNumber == 7) {
125 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 126 <<
" values read from ESProducer do not agree with expected values";
129 if (lumiNumber == 8) {
132 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 133 <<
" values read from ESProducer do not agree with expected values";
140 desc.addUntracked<
bool>(
"checkExpectedValues",
true);
ConcurrentIOVAnalyzer(edm::ParameterSet const &)
static void fillDescriptions(edm::ConfigurationDescriptions &)
edm::ESGetToken< IOVTestInfo, ESTestRecordI > const esTokenFromESProducer_
unsigned long long cacheIdentifier() const
void addDefault(ParameterSetDescription const &psetDescription)
edm::ESGetToken< IOVTestInfo, ESTestRecordI > const esTokenFromESSource_
unsigned int iovStartLumi_
#define DEFINE_FWK_MODULE(type)
void analyze(edm::StreamID, edm::Event const &, edm::EventSetup const &) const override
unsigned int iovIndex() const
unsigned long long cacheIdentifier_
bool checkExpectedValues_
ValidityInterval validityInterval() const