Main Page
Namespaces
Classes
Package Documentation
CVS Directory
WorkBook
Offline Guide
Release schedule
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
CommonTools
Utils
src
CutBinaryOperator.h
Go to the documentation of this file.
1
#ifndef CommonTools_Utils_CutBinaryOperator_h
2
#define CommonTools_Utils_CutBinaryOperator_h
3
/* \class reco::parser::CutBinaryOperator
4
*
5
* Binary Operator expression
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/CutBase.h"
14
#include "CommonTools/Utils/src/CutStack.h"
15
16
namespace
reco
{
17
namespace
parser
{
18
template
<
typename
Op>
19
struct
CutBinaryOperator
:
public
CutBase {
20
virtual
double
value
(
const
edm::ObjectWithDict
&
o
)
const
{
21
return
op_
((*lhs_).value(o), (*rhs_).value(o));
22
}
23
CutBinaryOperator
(CutStack & cutStack) {
24
rhs_
= cutStack.back(); cutStack.pop_back();
25
lhs_
= cutStack.back(); cutStack.pop_back();
26
}
27
private
:
28
Op
op_
;
29
CutPtr
lhs_
,
rhs_
;
30
};
31
}
32
}
33
34
#endif
edm::ObjectWithDict
Definition:
ObjectWithDict.h:17
reco::parser::CutBinaryOperator
Definition:
CutBinaryOperator.h:19
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:111
reco::parser::CutBinaryOperator::CutBinaryOperator
CutBinaryOperator(CutStack &cutStack)
Definition:
CutBinaryOperator.h:23
reco::parser::CutBinaryOperator::op_
Op op_
Definition:
CutBinaryOperator.h:28
writedatasetfile.parser
tuple parser
Definition:
writedatasetfile.py:7
reco::parser::CutBinaryOperator::rhs_
CutPtr rhs_
Definition:
CutBinaryOperator.h:29
reco::parser::CutBinaryOperator::value
virtual double value(const edm::ObjectWithDict &o) const
Definition:
CutBinaryOperator.h:20
class-composition.o
tuple o
Definition:
class-composition.py:65
reco::parser::CutBinaryOperator::lhs_
CutPtr lhs_
Definition:
CutBinaryOperator.h:29
Generated for CMSSW Reference Manual by
1.8.5