Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
CommonTools
CandAlgos
plugins
LargestPtCandSelector.cc
Go to the documentation of this file.
1
/* \class LargestPtCandSelector
2
*
3
* Keep the maxNumber biggest (in respect to Pt) Candidates from myCollection
4
* Usage:
5
*
6
*
7
* module McPartonSele = LargestPtCandSelector {
8
* InputTag src = myCollection
9
* uint32 maxNumber = 3
10
* }
11
*
12
* \author: Loic Quertenmont, UCL
13
*
14
*/
15
16
#include "
FWCore/Framework/interface/MakerMacros.h
"
17
#include "
CommonTools/UtilAlgos/interface/ObjectSelector.h
"
18
#include "
CommonTools/UtilAlgos/interface/SortCollectionSelector.h
"
19
#include "
CommonTools/Utils/interface/PtComparator.h
"
20
#include "
DataFormats/Candidate/interface/Candidate.h
"
21
22
typedef
ObjectSelector<SortCollectionSelector<reco::CandidateCollection, GreaterByPt<reco::Candidate>
> >
23
LargestPtCandSelector
;
24
25
DEFINE_FWK_MODULE
(
LargestPtCandSelector
);
ObjectSelector
LargestPtCandSelector
ObjectSelector< SortCollectionSelector< reco::CandidateCollection, GreaterByPt< reco::Candidate > > > LargestPtCandSelector
Definition:
LargestPtCandSelector.cc:23
SortCollectionSelector.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
MakerMacros.h
ObjectSelector.h
PtComparator.h
Candidate.h
Generated for CMSSW Reference Manual by
1.8.5