CMS 3D CMS Logo

Public Member Functions | Private Attributes

edm::ProcessNameSelector Class Reference

#include <Selector.h>

Inheritance diagram for edm::ProcessNameSelector:
edm::SelectorBase

List of all members.

Public Member Functions

virtual ProcessNameSelectorclone () const
virtual bool doMatch (ConstBranchDescription const &p) const
std::string const & name () const
 ProcessNameSelector (const std::string &pn)

Private Attributes

std::string pn_

Detailed Description

Class ProcessNameSelector. Selects EDProducts based upon process name.

As a special case, a ProcessNameSelector created with the string "*" matches *any* process (and so is rather like having no ProcessNameSelector at all).

Definition at line 69 of file Selector.h.


Constructor & Destructor Documentation

edm::ProcessNameSelector::ProcessNameSelector ( const std::string &  pn) [inline]

Definition at line 71 of file Selector.h.

Referenced by clone().

                                             :
    pn_(pn.empty() ? std::string("*") : pn) {
    }

Member Function Documentation

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

Implements edm::SelectorBase.

Definition at line 79 of file Selector.h.

References ProcessNameSelector().

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

Implements edm::SelectorBase.

Definition at line 75 of file Selector.h.

References pn_, and edm::ConstBranchDescription::processName().

                                                                {
      return (pn_=="*") || (p.processName() == pn_);
    }
std::string const& edm::ProcessNameSelector::name ( void  ) const [inline]

Definition at line 83 of file Selector.h.

References pn_.

                                  {
      return pn_;
    }

Member Data Documentation

std::string edm::ProcessNameSelector::pn_ [private]

Definition at line 88 of file Selector.h.

Referenced by doMatch(), and name().