CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LargestPtCandViewSelector.cc
Go to the documentation of this file.
1 /* \class LargestPtCandViewSelector
2  *
3  * Keep a fixed number of largest pt candidates.
4  * The input collection is read as View<Candidate>.
5  * Saves a collection of references to selected objects.
6  * Usage:
7  *
8  *
9  * module McPartonRefs = LargestPtCandViewSelector {
10  * InputTag src = myCollection
11  * uint32 maxNumber = 3
12  * }
13  *
14  * \author: Loic Quertenmont, UCL
15  *
16  */
17 
23 
24 typedef ObjectSelector<
28  >
30 
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
ObjectSelector< SortCollectionSelector< reco::CandidateView, GreaterByPt< reco::Candidate > > > LargestPtCandViewSelector
edm::View< Candidate > CandidateView
view of a collection containing candidates
Definition: CandidateFwd.h:23