Main Page
Namespaces
Classes
Package Documentation
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
<
22
reco::CandidateView
,
23
PdgIdSelector
24
>
PdgIdCandViewSelector
;
25
26
DEFINE_FWK_MODULE
(
PdgIdCandViewSelector
);
PdgIdSelector.h
MakerMacros.h
Candidate.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
PdgIdCandViewSelector
SingleObjectSelector< reco::CandidateView, PdgIdSelector > PdgIdCandViewSelector
Definition:
PdgIdCandViewSelector.cc:24
SingleObjectSelector.h
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:28
reco::CandidateView
edm::View< Candidate > CandidateView
view of a collection containing candidates
Definition:
CandidateFwd.h:23
PdgIdSelector
Definition:
PdgIdSelector.h:12
Generated for CMSSW Reference Manual by
1.8.11