Main Page
Namespaces
Classes
Package Documentation
CommonTools
CandAlgos
plugins
PdgIdCandRefSelector.cc
Go to the documentation of this file.
1
/* \class PdgIdCandRefSelector
2
*
3
* Candidate Selector based on a pdgId set.
4
* Saves a collection of references to selected objects
5
* Usage:
6
*
7
* module leptonRefs = PdgIdCandRefSelector {
8
* InputTag src = myCollection
9
* vint32 pdgId = { 11, 13 }
10
* };
11
*
12
* \author: Luca Lista, INFN
13
*
14
*/
15
#include "
FWCore/Framework/interface/MakerMacros.h
"
16
#include "
CommonTools/UtilAlgos/interface/SingleObjectSelector.h
"
17
#include "
CommonTools/UtilAlgos/interface/PdgIdSelector.h
"
18
#include "
DataFormats/Candidate/interface/Candidate.h
"
19
20
typedef
SingleObjectSelector
<
21
reco::CandidateCollection
,
22
PdgIdSelector
,
23
reco::CandidateRefVector
24
>
PdgIdCandRefSelector
;
25
26
DEFINE_FWK_MODULE
(
PdgIdCandRefSelector
);
PdgIdSelector.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
MakerMacros.h
Candidate.h
PdgIdCandRefSelector
SingleObjectSelector< reco::CandidateCollection, PdgIdSelector, reco::CandidateRefVector > PdgIdCandRefSelector
Definition:
PdgIdCandRefSelector.cc:24
SingleObjectSelector.h
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:28
edm::RefVector
Definition:
EDProductfwd.h:23
reco::CandidateCollection
edm::OwnVector< Candidate > CandidateCollection
collection of Candidate objects
Definition:
CandidateFwd.h:21
PdgIdSelector
Definition:
PdgIdSelector.h:12
Generated for CMSSW Reference Manual by
1.8.11