CommonTools
CandAlgos
plugins
PdgIdAndStatusCandViewSelector.cc
Go to the documentation of this file.
1
/* \class PdgIdAndStatusCandViewSelector
2
*
3
* Candidate Selector based on a pdgId set and status.
4
* The input collection is a View<Candidate>.
5
* Saves a collection of references to the selected objects.
6
*
7
* Usage:
8
*
9
* module leptonRefs = PdgIdAndStatusCandViewSelector {
10
* InputTag src = myCollection
11
* vint32 pdgId = { 11, 13 }
12
* vint32 status = { 1 }
13
* };
14
*
15
* \author: Luca Lista, INFN
16
*
17
*/
18
#include "
FWCore/Framework/interface/MakerMacros.h
"
19
#include "
CommonTools/UtilAlgos/interface/SingleObjectSelector.h
"
20
#include "
CommonTools/UtilAlgos/interface/AndSelector.h
"
21
#include "
CommonTools/UtilAlgos/interface/PdgIdSelector.h
"
22
#include "
CommonTools/UtilAlgos/interface/StatusSelector.h
"
23
#include "
DataFormats/Candidate/interface/Candidate.h
"
24
25
typedef
SingleObjectSelector<reco::CandidateView, AndSelector<PdgIdSelector, StatusSelector>
>
26
PdgIdAndStatusCandViewSelector
;
27
28
DEFINE_FWK_MODULE
(
PdgIdAndStatusCandViewSelector
);
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
PdgIdAndStatusCandViewSelector
SingleObjectSelector< reco::CandidateView, AndSelector< PdgIdSelector, StatusSelector > > PdgIdAndStatusCandViewSelector
Definition:
PdgIdAndStatusCandViewSelector.cc:26
AndSelector.h
MakerMacros.h
Generated for CMSSW Reference Manual by
1.8.14