CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/FWCore/Framework/interface/ModuleLabelMatch.h

Go to the documentation of this file.
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