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