82 : m_pset(iConfig), m_index(0) {
142 auto pRecord = iSetup.
find(it->first);
144 edm::LogWarning(
"RecordNotInIOV") <<
"The EventSetup Record '" << it->first.name()
145 <<
"' is not available for this IOV.";
147 if (it->second.size() <=
m_index) {
149 <<
"The vector of cacheIdentifiers for the record " << it->first.name() <<
" is too short";
151 if (pRecord && pRecord->cacheIdentifier() != it->second[
m_index]) {
153 <<
"The Record " << it->first.name() <<
" was supposed to have cacheIdentifier: " << it->second[
m_index]
154 <<
" but instead has " << pRecord->cacheIdentifier();
163 for (
auto const&
name : recordNames) {
182 desc.addWildcardUntracked<std::vector<unsigned int> >(
"*")->setComment(
183 "The label is the name of an EventSetup Record while the vector contains the expected cacheIdentifier values for " 184 "each beginRun, beginLuminosityBlock and event transition");
const TypeTag & type() const
~EventSetupCacheIdentifierChecker() override
#define DEFINE_FWK_MODULE(type)
T getUntrackedParameter(std::string const &, T const &) const
void addDefault(ParameterSetDescription const &psetDescription)
std::map< eventsetup::EventSetupRecordKey, std::vector< unsigned int > > m_recordKeysToExpectedCacheIdentifiers
std::vector< std::string > getParameterNamesForType(bool trackiness=true) const
EventSetupCacheIdentifierChecker(const edm::ParameterSet &)
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void endRun(edm::Run const &, edm::EventSetup const &) override
std::optional< eventsetup::EventSetupRecordGeneric > find(const eventsetup::EventSetupRecordKey &iKey) const
heterocontainer::HCTypeTag TypeTag
void analyze(const edm::Event &, const edm::EventSetup &) override
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
Log< level::Warning, false > LogWarning
void beginRun(edm::Run const &, edm::EventSetup const &) override
void check(edm::EventSetup const &)
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag