55 : checkExpectedValues_{
pset.getUntrackedParameter<
bool>(
"checkExpectedValues")},
58 expectedESAcquireTestResults_{
pset.getUntrackedParameter<std::vector<int>>(
"expectedESAcquireTestResults")},
59 expectedUniquePtrTestValue_{
pset.getUntrackedParameter<
int>(
"expectedUniquePtrTestValue")},
60 expectedOptionalTestValue_{
pset.getUntrackedParameter<
int>(
"expectedOptionalTestValue")} {
61 if (!expectedESAcquireTestResults_.empty()) {
64 if (expectedUniquePtrTestValue_ != 0) {
67 if (expectedOptionalTestValue_ != 0) {
73 auto lumiNumber =
event.eventAuxiliary().luminosityBlock();
81 if (iovTestInfoFromESSource->
iovStartLumi_ != iov.first().luminosityBlockNumber() ||
82 iovTestInfoFromESSource->
iovEndLumi_ != iov.last().luminosityBlockNumber() ||
85 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 86 <<
" values read from ESSource do not agree with record";
89 if (iovTestInfoFromESProducer->
iovStartLumi_ != iov.first().luminosityBlockNumber() ||
90 iovTestInfoFromESProducer->
iovEndLumi_ != iov.last().luminosityBlockNumber() ||
93 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 94 <<
" values read from ESProducer do not agree with record";
103 <<
"ConcurrentIOVAnalyzer::analyze," 104 <<
" unexpected value for EventSetup acquire test.\n" 106 <<
" cacheIdentifier = " << cacheIdentifier <<
"\n";
113 <<
"ConcurrentIOVAnalyzer::analyze," 114 <<
" value for unique_ptr test from EventSetup does not match expected value";
120 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 121 <<
" value for optional test from EventSetup does not match expected value";
130 if (lumiNumber == 1) {
133 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 134 <<
" values read from ESProducer do not agree with expected values";
137 if (lumiNumber == 2) {
140 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 141 <<
" values read from ESProducer do not agree with expected values";
144 if (lumiNumber == 3) {
147 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 148 <<
" values read from ESProducer do not agree with expected values";
151 if (lumiNumber == 4) {
154 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 155 <<
" values read from ESProducer do not agree with expected values";
158 if (lumiNumber == 5) {
161 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 162 <<
" values read from ESProducer do not agree with expected values";
165 if (lumiNumber == 6) {
168 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 169 <<
" values read from ESProducer do not agree with expected values";
172 if (lumiNumber == 7) {
175 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 176 <<
" values read from ESProducer do not agree with expected values";
179 if (lumiNumber == 8) {
182 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 183 <<
" values read from ESProducer do not agree with expected values";
190 desc.addUntracked<
bool>(
"checkExpectedValues",
true);
192 desc.addUntracked<std::vector<int>>(
"expectedESAcquireTestResults", std::vector<int>());
193 desc.addUntracked<
int>(
"expectedUniquePtrTestValue", 0);
194 desc.addUntracked<
int>(
"expectedOptionalTestValue", 0);
ConcurrentIOVAnalyzer(edm::ParameterSet const &)
static void fillDescriptions(edm::ConfigurationDescriptions &)
edm::ESGetToken< IOVTestInfo, ESTestRecordI > const esTokenFromESProducer_
unsigned long long cacheIdentifier() const
edm::ESGetToken< ESTestDataI, ESTestRecordI > esTokenOptionalTestValue_
void addDefault(ParameterSetDescription const &psetDescription)
edm::ESGetToken< IOVTestInfo, ESTestRecordI > const esTokenFromESSource_
unsigned int iovStartLumi_
std::vector< int > expectedESAcquireTestResults_
#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_
int expectedUniquePtrTestValue_
ValidityInterval validityInterval() const
edm::ESGetToken< ESTestDataI, ESTestRecordI > esTokenUniquePtrTestValue_
int expectedOptionalTestValue_
edm::ESGetToken< ESTestDataI, ESTestRecordI > esTokenFromAcquireIntESProducer_