CommonTools
CandAlgos
plugins
PdgIdCandViewSelector.cc
Go to the documentation of this file.
1
/* \class PdgIdCandViewSelector
2
*
3
* Candidate Selector based on a pdgId set. The input collection
4
* is a View<Candidate>.
5
* Saves a collection of references to selected objects
6
* Usage:
7
*
8
* module leptonRefs = PdgIdCandViewSelector {
9
* InputTag src = myCollection
10
* vint32 pdgId = { 11, 13 }
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/PdgIdSelector.h
"
19
#include "
DataFormats/Candidate/interface/Candidate.h
"
20
21
typedef
SingleObjectSelector<reco::CandidateView, PdgIdSelector>
PdgIdCandViewSelector
;
22
23
DEFINE_FWK_MODULE
(
PdgIdCandViewSelector
);
PdgIdCandViewSelector
SingleObjectSelector< reco::CandidateView, PdgIdSelector > PdgIdCandViewSelector
Definition:
PdgIdCandViewSelector.cc:21
SingleObjectSelector.h
MakerMacros.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:26
Candidate.h
PdgIdSelector.h
Generated for CMSSW Reference Manual by
1.8.16