Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CommonTools
CandAlgos
plugins
CandViewSelector.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 OwnVector of clones.
6
* Usage:
7
*
8
* module selectedCands = CandViewSelector {
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
<
22
edm::View<reco::Candidate>
,
23
StringCutObjectSelector<reco::Candidate, true>
,
24
reco::CandidateCollection
25
>
CandViewSelector
;
26
27
DEFINE_FWK_MODULE
(
CandViewSelector
);
StringCutObjectSelector.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
StringCutObjectSelector< reco::Candidate, true >
MakerMacros.h
edm::View< reco::Candidate >
Candidate.h
SingleObjectSelector
Definition:
SingleObjectSelector.h:19
edm::OwnVector< Candidate >
CandViewSelector
SingleObjectSelector< edm::View< reco::Candidate >, StringCutObjectSelector< reco::Candidate, true >, reco::CandidateCollection > CandViewSelector
Definition:
CandViewSelector.cc:25
SingleObjectSelector.h
Generated for CMSSW Reference Manual by
1.8.5