CommonTools
Utils
src
BinaryCutSetter.h
Go to the documentation of this file.
1
#ifndef CommonTools_Utils_BinaryCutSetter_h
2
#define CommonTools_Utils_BinaryCutSetter_h
3
/* \class reco::parser::BinaryCutSetter
4
*
5
* Cut setter
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/SelectorStack.h
"
14
#include "
CommonTools/Utils/src/LogicalBinaryOperator.h
"
15
16
namespace
reco
{
17
namespace
parser
{
18
template
<
typename
Op>
19
struct
BinaryCutSetter
{
20
BinaryCutSetter
(
SelectorStack
& selStack) :
selStack_
(selStack) {}
21
void
operator()
(
const
char
*,
const
char
*)
const
{
22
selStack_
.push_back(
SelectorPtr
(
new
LogicalBinaryOperator<Op>
(
selStack_
)));
23
}
24
void
operator()
(
const
char
&)
const
{
25
const
char
*
c
;
26
operator()
(
c
,
c
);
27
}
28
SelectorStack
&
selStack_
;
29
};
30
}
// namespace parser
31
}
// namespace reco
32
33
#endif
LogicalBinaryOperator.h
SelectorStack.h
writedatasetfile.parser
parser
Definition:
writedatasetfile.py:7
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:45
reco::parser::BinaryCutSetter::operator()
void operator()(const char *, const char *) const
Definition:
BinaryCutSetter.h:21
reco::parser::BinaryCutSetter
Definition:
BinaryCutSetter.h:19
reco::parser::BinaryCutSetter::operator()
void operator()(const char &) const
Definition:
BinaryCutSetter.h:24
reco::parser::LogicalBinaryOperator
Definition:
LogicalBinaryOperator.h:19
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
reco::parser::BinaryCutSetter::selStack_
SelectorStack & selStack_
Definition:
BinaryCutSetter.h:28
reco::parser::BinaryCutSetter::BinaryCutSetter
BinaryCutSetter(SelectorStack &selStack)
Definition:
BinaryCutSetter.h:20
reco::parser::SelectorPtr
std::shared_ptr< SelectorBase > SelectorPtr
Definition:
SelectorPtr.h:18
reco::parser::SelectorStack
std::vector< SelectorPtr > SelectorStack
Definition:
SelectorStack.h:18
Generated for CMSSW Reference Manual by
1.8.16