1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* \class PtMinCandViewSelector
*
* Candidate Selector based on a minimum pt cut.
* Reads a edm::View<Candidate> as input
* and saves a vector of references
* Usage:
*
* module selectedCands = PtMinCandViewSelector {
* InputTag src = myCollection
* double ptMin = 15.0
* };
*
* \author: Luca Lista, INFN
*
*/
#include "FWCore/Framework/interface/MakerMacros.h"
#include "CommonTools/UtilAlgos/interface/SingleObjectSelector.h"
#include "CommonTools/UtilAlgos/interface/PtMinSelector.h"
#include "DataFormats/Candidate/interface/Candidate.h"
typedef SingleObjectSelector<edm::View<reco::Candidate>, PtMinSelector> PtMinCandViewSelector;
DEFINE_FWK_MODULE(PtMinCandViewSelector);
|