CommonTools
CandAlgos
plugins
AssociatedVariableMaxCutCandSelector.cc
Go to the documentation of this file.
1
/* \class AssociatedVariableMaxCutCandSelector
2
*
3
* Candidate Selector based on a maximum cut on
4
* an associated variable (e.g.: isolation).
5
*
6
* Usage:
7
*
8
* module selectedCands = AssociatedVariableMaxCutCandSelector {
9
* InputTag src = myCollection
10
* double max = 0.2
11
* }
12
*
13
* \author: Luca Lista, INFN
14
*
15
*/
16
#include "
FWCore/Framework/interface/MakerMacros.h
"
17
#include "
CommonTools/UtilAlgos/interface/SingleObjectSelector.h
"
18
#include "
CommonTools/UtilAlgos/interface/PairSelector.h
"
19
#include "
CommonTools/UtilAlgos/interface/RefSelector.h
"
20
#include "
CommonTools/UtilAlgos/interface/AnySelector.h
"
21
#include "
CommonTools/UtilAlgos/interface/MaxSelector.h
"
22
#include "
DataFormats/Candidate/interface/Candidate.h
"
23
24
typedef
double
isolation
;
25
26
typedef
SingleObjectSelector<edm::AssociationVector<reco::CandidateRefProd, std::vector<isolation>
>,
27
PairSelector<RefSelector<AnySelector>
,
MaxSelector<isolation>
> >
28
AssociatedVariableMaxCutCandSelector
;
29
30
DEFINE_FWK_MODULE
(
AssociatedVariableMaxCutCandSelector
);
MaxSelector.h
RefSelector.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
MakerMacros.h
PairSelector
Definition:
PairSelector.h:11
Candidate.h
AssociatedVariableMaxCutCandSelector
SingleObjectSelector< edm::AssociationVector< reco::CandidateRefProd, std::vector< isolation > >, PairSelector< RefSelector< AnySelector >, MaxSelector< isolation > > > AssociatedVariableMaxCutCandSelector
Definition:
AssociatedVariableMaxCutCandSelector.cc:28
isolation
double isolation
Definition:
AssociatedVariableMaxCutCandSelector.cc:24
SingleObjectSelector.h
AnySelector.h
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:31
PairSelector.h
MaxSelector
Definition:
MaxSelector.h:11
Generated for CMSSW Reference Manual by
1.8.14