Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
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<reco::GenParticleCollection, StringCutObjectSelector<reco::GenParticle>
>
21
GenParticleRefSelector
;
22
23
DEFINE_FWK_MODULE
(
GenParticleRefSelector
);
StringCutObjectSelector.h
GenParticle.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
MakerMacros.h
SingleObjectSelector.h
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:31
GenParticleRefSelector
SingleObjectSelector< reco::GenParticleCollection, StringCutObjectSelector< reco::GenParticle > > GenParticleRefSelector
Definition:
GenParticleRefSelector.cc:21
Generated for CMSSW Reference Manual by
1.8.5