57 : checkExpectedValues_{
pset.getUntrackedParameter<
bool>(
"checkExpectedValues")},
60 expectedESAcquireTestResults_{
pset.getUntrackedParameter<std::vector<int>>(
"expectedESAcquireTestResults")},
61 expectedUniquePtrTestValue_{
pset.getUntrackedParameter<
int>(
"expectedUniquePtrTestValue")},
62 expectedOptionalTestValue_{
pset.getUntrackedParameter<
int>(
"expectedOptionalTestValue")} {
63 if (!expectedESAcquireTestResults_.empty()) {
66 if (expectedUniquePtrTestValue_ != 0) {
70 if (expectedOptionalTestValue_ != 0) {
77 auto lumiNumber =
event.eventAuxiliary().luminosityBlock();
85 if (iovTestInfoFromESSource->
iovStartLumi_ != iov.first().luminosityBlockNumber() ||
86 iovTestInfoFromESSource->
iovEndLumi_ != iov.last().luminosityBlockNumber() ||
89 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 90 <<
" values read from ESSource do not agree with record";
93 if (iovTestInfoFromESProducer->
iovStartLumi_ != iov.first().luminosityBlockNumber() ||
94 iovTestInfoFromESProducer->
iovEndLumi_ != iov.last().luminosityBlockNumber() ||
97 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 98 <<
" values read from ESProducer do not agree with record";
107 <<
"ConcurrentIOVAnalyzer::analyze," 108 <<
" unexpected value for EventSetup acquire test.\n" 110 <<
" cacheIdentifier = " << cacheIdentifier <<
"\n";
117 <<
"ConcurrentIOVAnalyzer::analyze," 118 <<
" value for unique_ptr test from EventSetup does not match expected value";
122 <<
"ConcurrentIOVAnalyzer::analyze," 123 <<
" value for lambda unique_ptr test from EventSetup does not match expected value";
129 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 130 <<
" value for optional test from EventSetup does not match expected value";
134 <<
"ConcurrentIOVAnalyzer::analyze," 135 <<
" value for lambda optional test from EventSetup does not match expected value";
144 if (lumiNumber == 1) {
147 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 148 <<
" values read from ESProducer do not agree with expected values";
151 if (lumiNumber == 2) {
154 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 155 <<
" values read from ESProducer do not agree with expected values";
158 if (lumiNumber == 3) {
161 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 162 <<
" values read from ESProducer do not agree with expected values";
165 if (lumiNumber == 4) {
168 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 169 <<
" values read from ESProducer do not agree with expected values";
172 if (lumiNumber == 5) {
175 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 176 <<
" values read from ESProducer do not agree with expected values";
179 if (lumiNumber == 6) {
182 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 183 <<
" values read from ESProducer do not agree with expected values";
186 if (lumiNumber == 7) {
189 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 190 <<
" values read from ESProducer do not agree with expected values";
193 if (lumiNumber == 8) {
196 throw cms::Exception(
"TestFailure") <<
"ConcurrentIOVAnalyzer::analyze," 197 <<
" values read from ESProducer do not agree with expected values";
204 desc.addUntracked<
bool>(
"checkExpectedValues",
true);
206 desc.addUntracked<std::vector<int>>(
"expectedESAcquireTestResults", std::vector<int>());
207 desc.addUntracked<
int>(
"expectedUniquePtrTestValue", 0);
208 desc.addUntracked<
int>(
"expectedOptionalTestValue", 0);
ConcurrentIOVAnalyzer(edm::ParameterSet const &)
static void fillDescriptions(edm::ConfigurationDescriptions &)
edm::ESGetToken< ESTestDataI, ESTestRecordI > esTokenLambdaUniquePtrTestValue_
edm::ESGetToken< IOVTestInfo, ESTestRecordI > const esTokenFromESProducer_
unsigned long long cacheIdentifier() const
edm::ESGetToken< ESTestDataI, ESTestRecordI > esTokenLambdaOptionalTestValue_
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_