File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,19 @@ namespace edm {
172172 : " " )
173173 << (!missingFromReg.empty () ? " Have missing info from ProductRegistry.\n " : " " );
174174 }
175+
176+ // check consistency with all Intervals
177+ if (e.productRegistry ().cacheIdentifier () != e.getRun ().productRegistry ().cacheIdentifier ()) {
178+ throw cms::Exception (" ProvenanceError" )
179+ << " The registry cache id for Event ( " << e.productRegistry ().cacheIdentifier ()
180+ << " ) does not match the one for Run ( " << e.getRun ().productRegistry ().cacheIdentifier () << " )" ;
181+ }
182+ if (e.productRegistry ().cacheIdentifier () != e.getLuminosityBlock ().productRegistry ().cacheIdentifier ()) {
183+ throw cms::Exception (" ProvenanceError" )
184+ << " The registry cache id for Event ( " << e.productRegistry ().cacheIdentifier ()
185+ << " ) does not match the one for LuminosityBlock ( "
186+ << e.getLuminosityBlock ().productRegistry ().cacheIdentifier () << " )" ;
187+ }
175188 }
176189
177190 //
You can’t perform that action at this time.
0 commit comments