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<reco::CandidateCollection, AndSelector<PdgIdSelector, StatusSelector>
>
25
PdgIdAndStatusCandDecaySelector
;
26
27
DEFINE_FWK_MODULE
(
PdgIdAndStatusCandDecaySelector
);
SingleObjectSelector.h
MakerMacros.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
CandDecaySelector.h
StatusSelector.h
PdgIdAndStatusCandDecaySelector
SingleObjectSelector< reco::CandidateCollection, AndSelector< PdgIdSelector, StatusSelector > > PdgIdAndStatusCandDecaySelector
Definition:
PdgIdAndStatusCandDecaySelector.cc:25
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:26
AndSelector.h
Candidate.h
PdgIdSelector.h
Generated for CMSSW Reference Manual by
1.8.16