src
CommonTools
RecoAlgos
plugins
RecoCandViewRefSelector.cc
Go to the documentation of this file.
1
/* \class RefCandViewRefSelector
2
*
3
* RefCandidate Selector based on a configurable cut.
4
* Reads a edm::View<RefCandidate> as input
5
* and saves a vector of references
6
* Usage:
7
*
8
* module selectedCands = RefCandViewRefSelector {
9
* InputTag src = myCollection
10
* string cut = "pt > 15.0 & track().isValid()"
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/RecoCandidate/interface/RecoCandidate.h
"
20
21
typedef
SingleObjectSelector<edm::View<reco::RecoCandidate>
,
StringCutObjectSelector<reco::RecoCandidate>
>
22
RecoCandViewRefSelector
;
23
24
DEFINE_FWK_MODULE
(
RecoCandViewRefSelector
);
StringCutObjectSelector.h
StringCutObjectSelector
Definition:
StringCutObjectSelector.h:16
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
SingleObjectSelector.h
RecoCandViewRefSelector
SingleObjectSelector< edm::View< reco::RecoCandidate >, StringCutObjectSelector< reco::RecoCandidate > > RecoCandViewRefSelector
Definition:
RecoCandViewRefSelector.cc:22
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:31
MakerMacros.h
RecoCandidate.h
Generated for CMSSW Reference Manual by
1.8.14