1 #ifndef FWCore_Framework_WillGetIfMatch_h 2 #define FWCore_Framework_WillGetIfMatch_h 19 class BranchDescription;
23 class WillGetIfMatch {
33 if (
match_(branchDescription)){
34 auto transition = branchDescription.
branchType();
41 return module_->template consumes<T,edm::InLumi>(
tag);
43 return module_->template consumes<T,edm::InRun>(
tag);
50 std::function<bool(BranchDescription const&)>
match_;
BranchType const & branchType() const
std::string const & processName() const
WillGetIfMatch(U const &match, EDConsumerBase *module)
std::string const & moduleLabel() const
std::string const & productInstanceName() const
std::function< bool(BranchDescription const &)> match_
EDGetTokenT< T > operator()(BranchDescription const &branchDescription)
std::string match(BranchDescription const &a, BranchDescription const &b, std::string const &fileName)