test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
PhysicsTools
HepMCCandAlgos
plugins
GenParticleRefSelector.cc
Go to the documentation of this file.
1
/* \class GenParticleRefSelector
2
*
3
* GenParticle Selector based on a configurable cut.
4
* saves a vector of references
5
* Usage:
6
*
7
* module selectedParticles = GenParticleRefSelector {
8
* InputTag src = genParticles
9
* string cut = "pt > 15.0"
10
* };
11
*
12
* \author: Luca Lista, INFN
13
*
14
*/
15
#include "
FWCore/Framework/interface/MakerMacros.h
"
16
#include "
CommonTools/UtilAlgos/interface/SingleObjectSelector.h
"
17
#include "
CommonTools/UtilAlgos/interface/StringCutObjectSelector.h
"
18
#include "
DataFormats/HepMCCandidate/interface/GenParticle.h
"
19
20
typedef
SingleObjectSelector
<
21
reco::GenParticleCollection
,
22
StringCutObjectSelector<reco::GenParticle>
23
>
GenParticleRefSelector
;
24
25
DEFINE_FWK_MODULE
(
GenParticleRefSelector
);
26
reco::GenParticleCollection
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
Definition:
GenParticleFwd.h:10
StringCutObjectSelector.h
GenParticle.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
StringCutObjectSelector< reco::GenParticle >
MakerMacros.h
SingleObjectSelector.h
GenParticleRefSelector
SingleObjectSelector< reco::GenParticleCollection, StringCutObjectSelector< reco::GenParticle > > GenParticleRefSelector
Definition:
GenParticleRefSelector.cc:23
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:28
Generated for CMSSW Reference Manual by
1.8.5