Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CommonTools
Utils
src
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
*/
13
#include "
CommonTools/Utils/src/SelectorBase.h
"
14
#include "
CommonTools/Utils/src/SelectorPtr.h
"
15
16
namespace
reco
{
17
namespace
parser
{
18
struct
AndCombiner
:
public
SelectorBase
{
19
AndCombiner
(
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
geometryXMLtoCSV.parser
tuple parser
Definition:
geometryXMLtoCSV.py:78
reco::parser::AndCombiner::rhs_
SelectorPtr rhs_
Definition:
AndCombiner.h:25
reco::parser::AndCombiner::AndCombiner
AndCombiner(SelectorPtr lhs, SelectorPtr rhs)
Definition:
AndCombiner.h:19
reco::parser::AndCombiner::lhs_
SelectorPtr lhs_
Definition:
AndCombiner.h:25
SelectorBase.h
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:106
SelectorPtr.h
reco::parser::AndCombiner::operator()
virtual bool operator()(const edm::ObjectWithDict &o) const
return true if the object is selected
Definition:
AndCombiner.h:21
reco::parser::AndCombiner
Definition:
AndCombiner.h:18
python.connectstrParser.o
string o
Definition:
connectstrParser.py:70
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