Main Page
Namespaces
Classes
Package Documentation
CommonTools
Utils
src
OrCombiner.h
Go to the documentation of this file.
1
#ifndef CommonTools_Utils_OrCombiner_h
2
#define CommonTools_Utils_OrCombiner_h
3
/* \class reco::parser::OrCombiner
4
*
5
* logical OR combiner
6
*
7
* \author original version: Chris Jones, Cornell,
8
* adapted by Luca Lista, INFN
9
*
10
* \version $Revision: 1.2 $
11
*
12
*/
13
#include "
CommonTools/Utils/src/SelectorBase.h
"
14
#include "
CommonTools/Utils/src/SelectorPtr.h
"
15
16
namespace
reco
{
17
namespace
parser
{
18
struct
OrCombiner
:
public
SelectorBase
{
19
OrCombiner
(
SelectorPtr
lhs,
SelectorPtr
rhs ) :
20
lhs_
( lhs ),
rhs_
( rhs ) {}
21
virtual
bool
operator()
(
const
edm::ObjectWithDict
&
o
)
const
{
22
return
(*
lhs_
)(
o
) || (*
rhs_
)(
o
);
23
}
24
private
:
25
SelectorPtr
lhs_
,
rhs_
;
26
};
27
}
28
}
29
30
#endif
edm::ObjectWithDict
Definition:
ObjectWithDict.h:17
reco::parser::OrCombiner::lhs_
SelectorPtr lhs_
Definition:
OrCombiner.h:25
reco::parser::OrCombiner::rhs_
SelectorPtr rhs_
Definition:
OrCombiner.h:25
reco::parser::OrCombiner
Definition:
OrCombiner.h:18
SelectorBase.h
SelectorPtr.h
createfilelist.parser
parser
Definition:
createfilelist.py:7
reco::parser::OrCombiner::operator()
virtual bool operator()(const edm::ObjectWithDict &o) const
return true if the object is selected
Definition:
OrCombiner.h:21
reco::parser::OrCombiner::OrCombiner
OrCombiner(SelectorPtr lhs, SelectorPtr rhs)
Definition:
OrCombiner.h:19
connectstrParser.o
o
Definition:
connectstrParser.py:70
reco::parser::SelectorPtr
boost::shared_ptr< SelectorBase > SelectorPtr
Definition:
SelectorPtr.h:17
reco::parser::SelectorBase
Definition:
SelectorBase.h:17
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:43
Generated for CMSSW Reference Manual by
1.8.11