Main Page
Namespaces
Classes
Package Documentation
CommonTools
CandAlgos
plugins
PdgIdAndStatusCandDecaySelector.cc
Go to the documentation of this file.
1
/* \class PdgIdAndStatusCandDecaySelector
2
*
3
* Candidate Selector based on a pdgId set
4
* cloning the full decay chain
5
* Usage:
6
*
7
* module leptons = PdgIdAndStatusCandDecaySelector {
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/CandAlgos/interface/CandDecaySelector.h
"
18
#include "
CommonTools/UtilAlgos/interface/SingleObjectSelector.h
"
19
#include "
CommonTools/UtilAlgos/interface/AndSelector.h
"
20
#include "
CommonTools/UtilAlgos/interface/PdgIdSelector.h
"
21
#include "
CommonTools/UtilAlgos/interface/StatusSelector.h
"
22
#include "
DataFormats/Candidate/interface/Candidate.h
"
23
24
typedef
SingleObjectSelector
<
25
reco::CandidateCollection
,
26
AndSelector
<
27
PdgIdSelector
,
28
StatusSelector
29
>
30
>
PdgIdAndStatusCandDecaySelector
;
31
32
DEFINE_FWK_MODULE
(
PdgIdAndStatusCandDecaySelector
);
PdgIdSelector.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
MakerMacros.h
StatusSelector.h
Candidate.h
StatusSelector
Definition:
StatusSelector.h:12
SingleObjectSelector.h
PdgIdAndStatusCandDecaySelector
SingleObjectSelector< reco::CandidateCollection, AndSelector< PdgIdSelector, StatusSelector > > PdgIdAndStatusCandDecaySelector
Definition:
PdgIdAndStatusCandDecaySelector.cc:30
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:28
AndSelector.h
AndSelector
Definition:
AndSelector.h:23
CandDecaySelector.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.11