1 #ifndef FWCore_Framework_WillGetIfMatch_h 2 #define FWCore_Framework_WillGetIfMatch_h 22 class WillGetIfMatch {
28 if (
match_(branchDescription)) {
29 auto transition = branchDescription.
branchType();
35 return module_->template consumes<T, edm::InLumi>(
tag);
37 return module_->template consumes<T, edm::InRun>(
tag);
39 return module_->template consumes<T, edm::InProcess>(
tag);
46 std::function<bool(BranchDescription const&)>
match_;
BranchType const & branchType() const
std::string const & processName() const
WillGetIfMatch(U const &match, EDConsumerBase *module)
std::string const & productInstanceName() const
std::function< bool(BranchDescription const &)> match_
EDGetTokenT< T > operator()(BranchDescription const &branchDescription)
std::string const & moduleLabel() const
std::string match(BranchDescription const &a, BranchDescription const &b, std::string const &fileName)