Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CommonTools
CandAlgos
plugins
PdgIdCandSelector.cc
Go to the documentation of this file.
1
/* \class PdgIdCandSelector
2
*
3
* Candidate Selector based on a pdgId set
4
* Usage:
5
*
6
* module leptons = PdgIdCandSelector {
7
* InputTag src = myCollection
8
* vint32 pdgId = { 11, 13 }
9
* };
10
*
11
* \author: Luca Lista, INFN
12
*
13
*/
14
#include "
FWCore/Framework/interface/MakerMacros.h
"
15
#include "
CommonTools/UtilAlgos/interface/SingleObjectSelector.h
"
16
#include "
CommonTools/UtilAlgos/interface/PdgIdSelector.h
"
17
#include "
DataFormats/Candidate/interface/Candidate.h
"
18
19
typedef
SingleObjectSelector
<
20
reco::CandidateCollection
,
21
PdgIdSelector
22
>
PdgIdCandSelector
;
23
24
DEFINE_FWK_MODULE
(
PdgIdCandSelector
);
PdgIdSelector.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
MakerMacros.h
Candidate.h
SingleObjectSelector
Definition:
SingleObjectSelector.h:19
PdgIdCandSelector
SingleObjectSelector< reco::CandidateCollection, PdgIdSelector > PdgIdCandSelector
Definition:
PdgIdCandSelector.cc:22
SingleObjectSelector.h
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.5