Main Page
Namespaces
Classes
Package Documentation
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
<
23
SortCollectionSelector
<
24
reco::CandidateCollection
,
25
GreaterByPt<reco::Candidate>
26
>
27
>
LargestPtCandSelector
;
28
29
DEFINE_FWK_MODULE
(
LargestPtCandSelector
);
ObjectSelector
Definition:
ObjectSelector.h:39
SortCollectionSelector.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
MakerMacros.h
PtComparator.h
Candidate.h
LargestPtCandSelector
ObjectSelector< SortCollectionSelector< reco::CandidateCollection, GreaterByPt< reco::Candidate > > > LargestPtCandSelector
Definition:
LargestPtCandSelector.cc:27
GreaterByPt
Definition:
PtComparator.h:26
ObjectSelector.h
reco::CandidateCollection
edm::OwnVector< Candidate > CandidateCollection
collection of Candidate objects
Definition:
CandidateFwd.h:21
SortCollectionSelector
Definition:
SortCollectionSelector.h:28
Generated for CMSSW Reference Manual by
1.8.11