CommonTools
CandAlgos
plugins
EtaPtMinPdgIdCandSelector.cc
Go to the documentation of this file.
1
/* \class EtaPtMinPdgIdCandSelector
2
*
3
* Candidate Selector based on a minimum pt cut and an eta range.
4
* Usage:
5
*
6
* module selectedCands = EtaPtMinPdgIdCandSelector {
7
* InputTag src = myCollection
8
* double ptMin = 15.0
9
* double etaMin = -2
10
* double etaMax = 2
11
* int pdgId = 11
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/PtMinSelector.h
"
20
#include "
CommonTools/UtilAlgos/interface/EtaRangeSelector.h
"
21
#include "
CommonTools/UtilAlgos/interface/PdgIdSelector.h
"
22
#include "
CommonTools/UtilAlgos/interface/AndSelector.h
"
23
#include "
DataFormats/Candidate/interface/Candidate.h
"
24
25
typedef
SingleObjectSelector<reco::CandidateCollection, AndSelector<PtMinSelector, EtaRangeSelector, PdgIdSelector>
>
26
EtaPtMinPdgIdCandSelector
;
27
28
DEFINE_FWK_MODULE
(
EtaPtMinPdgIdCandSelector
);
EtaRangeSelector.h
PtMinSelector.h
SingleObjectSelector.h
MakerMacros.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:26
AndSelector.h
EtaPtMinPdgIdCandSelector
SingleObjectSelector< reco::CandidateCollection, AndSelector< PtMinSelector, EtaRangeSelector, PdgIdSelector > > EtaPtMinPdgIdCandSelector
Definition:
EtaPtMinPdgIdCandSelector.cc:26
Candidate.h
PdgIdSelector.h
Generated for CMSSW Reference Manual by
1.8.16