Main Page
Namespaces
Classes
Package Documentation
src
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
<
26
reco::CandidateView
,
27
AndSelector
<
28
PdgIdSelector
,
29
StatusSelector
30
>
31
>
PdgIdAndStatusCandViewSelector
;
32
33
DEFINE_FWK_MODULE
(
PdgIdAndStatusCandViewSelector
);
PdgIdSelector.h
MakerMacros.h
StatusSelector.h
Candidate.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
StatusSelector
Definition:
StatusSelector.h:12
SingleObjectSelector.h
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:28
PdgIdAndStatusCandViewSelector
SingleObjectSelector< reco::CandidateView, AndSelector< PdgIdSelector, StatusSelector > > PdgIdAndStatusCandViewSelector
Definition:
PdgIdAndStatusCandViewSelector.cc:31
AndSelector.h
AndSelector
Definition:
AndSelector.h:23
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