CommonTools
CandAlgos
plugins
PdgIdAndStatusCandSelector.cc
Go to the documentation of this file.
1
/* \class PdgIdAndStatusCandSelector
2
*
3
* Candidate Selector based on a pdgId set
4
* and status.
5
* Usage:
6
*
7
* module leptons = PdgIdAndStatusCandSelector {
8
* InputTag src = myCollection
9
* vint32 pdgId = { 11, 13 }
10
* vint32 status = { 1 }
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/AndSelector.h
"
19
#include "
CommonTools/UtilAlgos/interface/PdgIdSelector.h
"
20
#include "
CommonTools/UtilAlgos/interface/StatusSelector.h
"
21
#include "
DataFormats/Candidate/interface/Candidate.h
"
22
23
typedef
SingleObjectSelector<reco::CandidateCollection, AndSelector<PdgIdSelector, StatusSelector>
>
24
PdgIdAndStatusCandSelector
;
25
26
DEFINE_FWK_MODULE
(
PdgIdAndStatusCandSelector
);
PdgIdSelector.h
StatusSelector.h
Candidate.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
SingleObjectSelector.h
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:31
AndSelector.h
PdgIdAndStatusCandSelector
SingleObjectSelector< reco::CandidateCollection, AndSelector< PdgIdSelector, StatusSelector > > PdgIdAndStatusCandSelector
Definition:
PdgIdAndStatusCandSelector.cc:24
MakerMacros.h
Generated for CMSSW Reference Manual by
1.8.14