src
CommonTools
CandAlgos
plugins
CandViewRefSelector.cc
Go to the documentation of this file.
1
/* \class CandViewRefSelector
2
*
3
* Candidate Selector based on a configurable cut.
4
* Reads a edm::View<Candidate> as input
5
* and saves a vector of references
6
* Usage:
7
*
8
* module selectedCands = CandViewRefSelector {
9
* InputTag src = myCollection
10
* string cut = "pt > 15.0"
11
* };
12
*
13
* \author: Luca Lista, INFN
14
*
15
*/
16
#include "
FWCore/Framework/interface/MakerMacros.h
"
17
#include "
CommonTools/UtilAlgos/interface/SingleObjectSelector.h
"
18
#include "
CommonTools/UtilAlgos/interface/StringCutObjectSelector.h
"
19
#include "
DataFormats/Candidate/interface/Candidate.h
"
20
21
typedef
SingleObjectSelector<edm::View<reco::Candidate>
,
StringCutObjectSelector<reco::Candidate>
>
CandViewRefSelector
;
22
23
DEFINE_FWK_MODULE
(
CandViewRefSelector
);
StringCutObjectSelector.h
StringCutObjectSelector< reco::Candidate >
Candidate.h
CandViewRefSelector
SingleObjectSelector< edm::View< reco::Candidate >, StringCutObjectSelector< reco::Candidate > > CandViewRefSelector
Definition:
CandViewRefSelector.cc:21
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
SingleObjectSelector.h
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:31
MakerMacros.h
Generated for CMSSW Reference Manual by
1.8.14