Skip to content

Commit

Permalink
Invalidate pset registration if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
wmtan committed Jan 15, 2015
1 parent 91f7356 commit 159bad4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions FWCore/ParameterSet/interface/ParameterSet.h
Expand Up @@ -34,6 +34,7 @@ namespace edm {

class ParameterSet {
public:
template<typename T> friend class ParameterDescription;
enum Bool {
False = 0,
True = 1,
Expand Down
3 changes: 3 additions & 0 deletions FWCore/ParameterSet/src/ParameterDescription.cc
Expand Up @@ -71,6 +71,9 @@ namespace edm {
exists = pset.existsAs<ParameterSet>(label(), isTracked());

if(exists) {
if(pset.isRegistered()) {
pset.invalidateRegistration("");
}
ParameterSet * containedPSet = pset.getPSetForUpdate(label());
psetDesc_->validate(*containedPSet);
}
Expand Down

0 comments on commit 159bad4

Please sign in to comment.