Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Muon selector function taking enum type #21185

Merged
merged 1 commit into from Nov 9, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions DataFormats/MuonReco/interface/Muon.h
Expand Up @@ -212,6 +212,7 @@ namespace reco {
};

bool passed( unsigned int selection ) const { return (selectors_ & selection)==selection; }
bool passed( Selector selection ) const { return passed(static_cast<unsigned int>(selection)); }
unsigned int selectors() const { return selectors_; }
void setSelectors( unsigned int selectors ){ selectors_ = selectors; }
void setSelector(Selector selector, bool passed){
Expand Down