test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
createfilelist.parser
tuple parser
Definition:
createfilelist.py:7
SelectorBase.h
connectstrParser.o
string o
Definition:
connectstrParser.py:70
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:107
SelectorPtr.h
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
reco::parser::SelectorPtr
boost::shared_ptr< SelectorBase > SelectorPtr
Definition:
SelectorPtr.h:17
reco::parser::SelectorBase
Definition:
SelectorBase.h:17
Generated for CMSSW Reference Manual by
1.8.5