CMS 3D CMS Logo

AndCombiner.h
Go to the documentation of this file.
1 #ifndef CommonTools_Utils_AndCombiner_h
2 #define CommonTools_Utils_AndCombiner_h
3 /* \class reco::parser::AndCombiner
4  *
5  * logical AND combiner
6  *
7  * \author original version: Chris Jones, Cornell,
8  * adapted by Luca Lista, INFN
9  *
10  * \version $Revision: 1.2 $
11  *
12  */
15 
16 namespace reco {
17  namespace parser {
18  struct AndCombiner : public SelectorBase {
19  AndCombiner(SelectorPtr lhs, SelectorPtr rhs) : lhs_(lhs), rhs_(rhs) {}
20  bool operator()(const edm::ObjectWithDict& o) const override { return (*lhs_)(o) && (*rhs_)(o); }
21 
22  private:
24  };
25  } // namespace parser
26 } // namespace reco
27 
28 #endif
reco::parser::AndCombiner::AndCombiner
AndCombiner(SelectorPtr lhs, SelectorPtr rhs)
Definition: AndCombiner.h:19
edm::ObjectWithDict
Definition: ObjectWithDict.h:17
writedatasetfile.parser
parser
Definition: writedatasetfile.py:7
reco::parser::AndCombiner
Definition: AndCombiner.h:18
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:42
reco::parser::AndCombiner::lhs_
SelectorPtr lhs_
Definition: AndCombiner.h:23
reco::parser::AndCombiner::operator()
bool operator()(const edm::ObjectWithDict &o) const override
return true if the object is selected
Definition: AndCombiner.h:20
SelectorPtr.h
reco::parser::AndCombiner::rhs_
SelectorPtr rhs_
Definition: AndCombiner.h:23
reco::parser::SelectorPtr
std::shared_ptr< SelectorBase > SelectorPtr
Definition: SelectorPtr.h:18
reco::parser::SelectorBase
Definition: SelectorBase.h:19
SelectorBase.h