Main Page
Namespaces
Classes
Package Documentation
CommonTools
CandAlgos
plugins
PtMinAssociatedVariableMaxCutCandSelector.cc
Go to the documentation of this file.
1
/* \class PtMinAssociatedVariableMaxCutCandSelector
2
*
3
* Candidate Selector based on a minimum pt cut
4
* plus a cut on an associated variable (e.g.: isolation)
5
*
6
* Usage:
7
*
8
* module selectedCands = PtMinAssociatedVariableMaxCutCandSelector {
9
* InputTag src = myCollection
10
* double ptMin = 15.0
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/PtMinSelector.h
"
22
#include "
CommonTools/UtilAlgos/interface/MaxSelector.h
"
23
#include "
DataFormats/Candidate/interface/Candidate.h
"
24
25
typedef
double
isolation
;
26
27
typedef
SingleObjectSelector<edm::AssociationVector<reco::CandidateRefProd, std::vector<isolation>
>,
28
PairSelector<RefSelector<PtMinSelector>
,
MaxSelector<isolation>
> >
29
PtMinAssociatedVariableMaxCutCandSelector
;
30
31
DEFINE_FWK_MODULE
(
PtMinAssociatedVariableMaxCutCandSelector
);
isolation
double isolation
Definition:
PtMinAssociatedVariableMaxCutCandSelector.cc:25
MaxSelector.h
RefSelector.h
MakerMacros.h
PtMinSelector.h
PairSelector
Definition:
PairSelector.h:11
Candidate.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
SingleObjectSelector.h
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:26
PairSelector.h
MaxSelector
Definition:
MaxSelector.h:11
PtMinAssociatedVariableMaxCutCandSelector
SingleObjectSelector< edm::AssociationVector< reco::CandidateRefProd, std::vector< isolation > >, PairSelector< RefSelector< PtMinSelector >, MaxSelector< isolation > > > PtMinAssociatedVariableMaxCutCandSelector
Definition:
PtMinAssociatedVariableMaxCutCandSelector.cc:29
Generated for CMSSW Reference Manual by
1.8.11