CMS 3D CMS Logo

Public Member Functions | Private Attributes

edm::ModuleLabelSelector Class Reference

#include <Selector.h>

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

List of all members.

Public Member Functions

virtual ModuleLabelSelectorclone () const
virtual bool doMatch (ConstBranchDescription const &p) const
 ModuleLabelSelector (const std::string &label)

Private Attributes

std::string label_

Detailed Description

Class ModuleLabelSelector. Selects EDProducts based upon module label.

Definition at line 122 of file Selector.h.


Constructor & Destructor Documentation

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

Definition at line 124 of file Selector.h.

Referenced by clone().

                                                :
      label_(label) {
    }

Member Function Documentation

virtual ModuleLabelSelector* edm::ModuleLabelSelector::clone ( void  ) const [inline, virtual]

Implements edm::SelectorBase.

Definition at line 132 of file Selector.h.

References ModuleLabelSelector().

                                               {
      return new ModuleLabelSelector(*this);
    }
virtual bool edm::ModuleLabelSelector::doMatch ( ConstBranchDescription const &  p) const [inline, virtual]

Implements edm::SelectorBase.

Definition at line 128 of file Selector.h.

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

                                                                {
      return p.moduleLabel() == label_;
    }

Member Data Documentation

std::string edm::ModuleLabelSelector::label_ [private]

Definition at line 136 of file Selector.h.

Referenced by doMatch().