Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
CommonTools
CandAlgos
plugins
AssociatedVariableMaxCutCandRefSelector.cc
Go to the documentation of this file.
1
/* \class AssociatedVariableMaxCutCandRefSelector
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 = AssociatedVariableMaxCutCandRefSelector {
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
25
typedef
double
isolation
;
26
27
typedef
SingleObjectSelector<edm::AssociationVector<reco::CandidateRefProd, std::vector<isolation>
>,
28
PairSelector<RefSelector<AnySelector>
,
MaxSelector<isolation>
>,
29
reco::CandidateRefVector
>
30
AssociatedVariableMaxCutCandRefSelector
;
31
32
DEFINE_FWK_MODULE
(
AssociatedVariableMaxCutCandRefSelector
);
MaxSelector.h
RefSelector.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
MakerMacros.h
isolation
double isolation
Definition:
AssociatedVariableMaxCutCandRefSelector.cc:25
PairSelector
Definition:
PairSelector.h:11
Candidate.h
AssociatedVariableMaxCutCandRefSelector
SingleObjectSelector< edm::AssociationVector< reco::CandidateRefProd, std::vector< isolation > >, PairSelector< RefSelector< AnySelector >, MaxSelector< isolation > >, reco::CandidateRefVector > AssociatedVariableMaxCutCandRefSelector
Definition:
AssociatedVariableMaxCutCandRefSelector.cc:30
SingleObjectSelector.h
AnySelector.h
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:31
edm::RefVector
Definition:
EDProductfwd.h:27
PairSelector.h
MaxSelector
Definition:
MaxSelector.h:11
Generated for CMSSW Reference Manual by
1.8.5