CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
edm::ModuleLabelSelector Class Reference

#include <Selector.h>

Inheritance diagram for edm::ModuleLabelSelector:
edm::SelectorBase

Public Member Functions

virtual ModuleLabelSelectorclone () const
 
virtual bool doMatch (ConstBranchDescription const &p) const
 
 ModuleLabelSelector (const std::string &label)
 
- Public Member Functions inherited from edm::SelectorBase
bool match (ConstBranchDescription const &p) const
 
virtual ~SelectorBase ()
 

Private Attributes

std::string label_
 

Detailed Description

Class ModuleLabelSelector. Selects EDProducts based upon module label.

Definition at line 132 of file Selector.h.

Constructor & Destructor Documentation

edm::ModuleLabelSelector::ModuleLabelSelector ( const std::string &  label)
inline

Definition at line 135 of file Selector.h.

Referenced by clone().

135  :
136  label_(label)
137  { }
const std::string & label
Definition: MVAComputer.cc:186

Member Function Documentation

virtual ModuleLabelSelector* edm::ModuleLabelSelector::clone ( void  ) const
inlinevirtual

Implements edm::SelectorBase.

Definition at line 144 of file Selector.h.

References ModuleLabelSelector().

145  {
146  return new ModuleLabelSelector(*this);
147  }
ModuleLabelSelector(const std::string &label)
Definition: Selector.h:135
virtual bool edm::ModuleLabelSelector::doMatch ( ConstBranchDescription const &  p) const
inlinevirtual

Implements edm::SelectorBase.

Definition at line 139 of file Selector.h.

References label_, and edm::ConstBranchDescription::moduleLabel().

140  {
141  return p.moduleLabel() == label_;
142  }

Member Data Documentation

std::string edm::ModuleLabelSelector::label_
private