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