LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
SelectorBase.h
Go to the documentation of this file.
1 #ifndef art_Framework_Principal_SelectorBase_h
2 #define art_Framework_Principal_SelectorBase_h
3 
4 /*----------------------------------------------------------------------
5 
6 Selector: Base class for all "selector" objects, used to select
7 EDProducts based on information in the associated Provenance.
8 
9 Developers who make their own Selectors should inherit from SelectorBase.
10 
11 ----------------------------------------------------------------------*/
12 
14 
15 namespace art {
16  class BranchDescription;
17 }
18 
20 public:
21  virtual ~SelectorBase();
22  bool
23  match(BranchDescription const& p) const
24  {
25  return doMatch(p);
26  }
27  virtual SelectorBase* clone() const = 0;
28 
29 private:
30  virtual bool doMatch(BranchDescription const& p) const = 0;
31 };
32 
33 #endif /* art_Framework_Principal_SelectorBase_h */
34 
35 // Local Variables:
36 // mode: c++
37 // End:
virtual ~SelectorBase()
Definition: SelectorBase.cc:15
virtual bool doMatch(BranchDescription const &p) const =0
virtual SelectorBase * clone() const =0
HLT enums.
bool match(BranchDescription const &p) const
Definition: SelectorBase.h:23