CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/FWCore/Framework/interface/ProcessMatch.h

Go to the documentation of this file.
00001 #ifndef FWCore_Framework_ProcessMatch_h
00002 #define FWCore_Framework_ProcessMatch_h
00003 
00013 #include "DataFormats/Provenance/interface/BranchDescription.h"
00014 
00015 #include <string>
00016 
00017 namespace edm {
00018 
00019    class ProcessMatch {
00020    public:
00021 
00022       ProcessMatch(std::string const& processName) : processName_(processName) { }
00023 
00024       bool operator()(edm::BranchDescription const& branchDescription) {
00025          return branchDescription.processName() == processName_ || processName_ == "*";
00026       }
00027 
00028    private:
00029       std::string processName_;
00030    };
00031 }
00032 #endif