Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
<
27
edm::AssociationVector<reco::CandidateRefProd, std::vector<isolation>
>,
28
PairSelector
<
29
RefSelector<AnySelector>
,
30
MaxSelector<isolation>
31
>
32
>
AssociatedVariableMaxCutCandSelector
;
33
34
DEFINE_FWK_MODULE
(
AssociatedVariableMaxCutCandSelector
);
MaxSelector.h
RefSelector.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
MakerMacros.h
isolation
double isolation
Definition:
AssociatedVariableMaxCutCandRefSelector.cc:25
PairSelector
Definition:
PairSelector.h:11
RefSelector
Definition:
RefSelector.h:5
Candidate.h
SingleObjectSelector.h
AnySelector.h
edm::AssociationVector
Definition:
AssociationVector.h:62
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:28
PairSelector.h
AssociatedVariableMaxCutCandSelector
SingleObjectSelector< edm::AssociationVector< reco::CandidateRefProd, std::vector< isolation > >, PairSelector< RefSelector< AnySelector >, MaxSelector< isolation > > > AssociatedVariableMaxCutCandSelector
Definition:
AssociatedVariableMaxCutCandSelector.cc:32
MaxSelector
Definition:
MaxSelector.h:11
Generated for CMSSW Reference Manual by
1.8.5