LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
art::ModuleLabelSelector Class Reference

#include "Selector.h"

Inheritance diagram for art::ModuleLabelSelector:
art::SelectorBase

Public Member Functions

 ModuleLabelSelector (const std::string &label)
 
virtual ModuleLabelSelectorclone () const override
 
bool match (BranchDescription const &p) const
 

Private Member Functions

virtual bool doMatch (BranchDescription const &p) const override
 

Private Attributes

std::string label_
 

Detailed Description

Class ModuleLabelSelector. Selects EDProducts based upon module label.

Definition at line 135 of file Selector.h.

Constructor & Destructor Documentation

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

Definition at line 137 of file Selector.h.

137 : label_(label) {}

Member Function Documentation

virtual ModuleLabelSelector* art::ModuleLabelSelector::clone ( ) const
inlineoverridevirtual

Implements art::SelectorBase.

Definition at line 140 of file Selector.h.

141  {
142  return new ModuleLabelSelector(*this);
143  }
ModuleLabelSelector(const std::string &label)
Definition: Selector.h:137
virtual bool art::ModuleLabelSelector::doMatch ( BranchDescription const &  p) const
inlineoverrideprivatevirtual

Implements art::SelectorBase.

Definition at line 147 of file Selector.h.

References art::BranchDescription::moduleLabel().

148  {
149  return p.moduleLabel() == label_;
150  }
bool art::SelectorBase::match ( BranchDescription const &  p) const
inlineinherited

Definition at line 23 of file SelectorBase.h.

References art::SelectorBase::clone(), and art::SelectorBase::doMatch().

Referenced by art::Principal::findGroupsForProcess().

24  {
25  return doMatch(p);
26  }
virtual bool doMatch(BranchDescription const &p) const =0

Member Data Documentation

std::string art::ModuleLabelSelector::label_
private

Definition at line 152 of file Selector.h.


The documentation for this class was generated from the following file: