CommonTools
CandAlgos
plugins
EtaPtMinCandSelector.cc
Go to the documentation of this file.
1
/* \class EtaPtMinCandSelector
2
*
3
* Candidate Selector based on a minimum pt cut and an eta range.
4
* Usage:
5
*
6
* module selectedCands = EtaPtMinCandSelector {
7
* InputTag src = myCollection
8
* double ptMin = 15.0
9
* double etaMin = -2
10
* double etaMax = 2
11
* };
12
*
13
* \author: Luca Lista, INFN
14
*
15
*/
16
#include "
FWCore/Framework/interface/MakerMacros.h
"
17
#include "
DataFormats/Common/interface/View.h
"
18
#include "
CommonTools/UtilAlgos/interface/SingleObjectSelector.h
"
19
#include "
CommonTools/UtilAlgos/interface/PtMinSelector.h
"
20
#include "
CommonTools/UtilAlgos/interface/EtaRangeSelector.h
"
21
#include "
CommonTools/UtilAlgos/interface/AndSelector.h
"
22
#include "
DataFormats/Candidate/interface/Candidate.h
"
23
24
typedef
SingleObjectSelector<reco::CandidateCollection, AndSelector<PtMinSelector, EtaRangeSelector>
>
25
EtaPtMinCandSelector
;
26
27
DEFINE_FWK_MODULE
(
EtaPtMinCandSelector
);
EtaRangeSelector.h
PtMinSelector.h
SingleObjectSelector.h
MakerMacros.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
EtaPtMinCandSelector
SingleObjectSelector< reco::CandidateCollection, AndSelector< PtMinSelector, EtaRangeSelector > > EtaPtMinCandSelector
Definition:
EtaPtMinCandSelector.cc:25
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:26
AndSelector.h
Candidate.h
View.h
Generated for CMSSW Reference Manual by
1.8.16