Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
<
22
edm::View<reco::RecoCandidate>
,
23
StringCutObjectSelector<reco::RecoCandidate>
24
>
RecoCandViewRefSelector
;
25
26
DEFINE_FWK_MODULE
(
RecoCandViewRefSelector
);
StringCutObjectSelector.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
StringCutObjectSelector
Definition:
StringCutObjectSelector.h:16
MakerMacros.h
edm::View
Definition:
AssociativeIterator.h:46
SingleObjectSelector
Definition:
SingleObjectSelector.h:19
SingleObjectSelector.h
RecoCandViewRefSelector
SingleObjectSelector< edm::View< reco::RecoCandidate >, StringCutObjectSelector< reco::RecoCandidate > > RecoCandViewRefSelector
Definition:
RecoCandViewRefSelector.cc:24
RecoCandidate.h
Generated for CMSSW Reference Manual by
1.8.5