Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
<
24
reco::CandidateCollection
,
25
AndSelector
<
26
PdgIdSelector
,
27
StatusSelector
28
>
29
>
PdgIdAndStatusCandSelector
;
30
31
DEFINE_FWK_MODULE
(
PdgIdAndStatusCandSelector
);
PdgIdSelector.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
PdgIdAndStatusCandSelector
SingleObjectSelector< reco::CandidateCollection, AndSelector< PdgIdSelector, StatusSelector > > PdgIdAndStatusCandSelector
Definition:
PdgIdAndStatusCandSelector.cc:29
MakerMacros.h
StatusSelector.h
Candidate.h
SingleObjectSelector
Definition:
SingleObjectSelector.h:19
StatusSelector
Definition:
StatusSelector.h:12
SingleObjectSelector.h
AndSelector.h
AndSelector
Definition:
AndSelector.h:23
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.5