![]() |
![]() |
00001 #ifndef FWCore_Framework_ModuleLabelMatch_h 00002 #define FWCore_Framework_ModuleLabelMatch_h 00003 00013 #include "DataFormats/Provenance/interface/BranchDescription.h" 00014 00015 #include <string> 00016 00017 namespace edm { 00018 00019 class ModuleLabelMatch { 00020 public: 00021 00022 ModuleLabelMatch(std::string const& moduleLabel) : moduleLabel_(moduleLabel) { } 00023 00024 bool operator()(edm::BranchDescription const& branchDescription) { 00025 return branchDescription.moduleLabel() == moduleLabel_; 00026 } 00027 00028 private: 00029 std::string moduleLabel_; 00030 }; 00031 } 00032 #endif