CommonTools
Utils
src
NotCombiner.h
Go to the documentation of this file.
1
#ifndef CommonTools_Utils_NotCombiner_h
2
#define CommonTools_Utils_NotCombiner_h
3
/* \class reco::parser::NotCombiner
4
*
5
* logical NOT 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
NotCombiner
:
public
SelectorBase
{
19
NotCombiner
(
SelectorPtr
arg
) :
arg_
(
arg
) {}
20
bool
operator()
(
const
edm::ObjectWithDict
&
o
)
const override
{
return
!(*arg_)(
o
); }
21
22
private
:
23
SelectorPtr
arg_
;
24
};
25
}
// namespace parser
26
}
// namespace reco
27
28
#endif
reco::parser::NotCombiner
Definition:
NotCombiner.h:18
reco::parser::NotCombiner::NotCombiner
NotCombiner(SelectorPtr arg)
Definition:
NotCombiner.h:19
edm::ObjectWithDict
Definition:
ObjectWithDict.h:17
writedatasetfile.parser
parser
Definition:
writedatasetfile.py:7
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:45
EcalTangentSkim_cfg.o
o
Definition:
EcalTangentSkim_cfg.py:42
reco::parser::NotCombiner::arg_
SelectorPtr arg_
Definition:
NotCombiner.h:23
SelectorPtr.h
reco::parser::SelectorPtr
std::shared_ptr< SelectorBase > SelectorPtr
Definition:
SelectorPtr.h:18
reco::parser::NotCombiner::operator()
bool operator()(const edm::ObjectWithDict &o) const override
return true if the object is selected
Definition:
NotCombiner.h:20
funct::arg
A arg
Definition:
Factorize.h:31
reco::parser::SelectorBase
Definition:
SelectorBase.h:19
SelectorBase.h
Generated for CMSSW Reference Manual by
1.8.16