CommonTools
RecoAlgos
plugins
SuperClusterRefSelector.cc
Go to the documentation of this file.
1
/* \class SuperClusterRefSelector
2
*
3
* Selects super-cluster with a configurable string-based cut.
4
* Saves references to the selected super-clusters
5
*
6
* \author: Luca Lista, INFN
7
*
8
* usage:
9
*
10
* module bestSuperClusters = SuperClusterRefSelector {
11
* src = hybridSuperClusters
12
* string cut = "energy > 20 & abs( eta ) < 2"
13
* }
14
*
15
* for more details about the cut syntax, see the documentation
16
* page below:
17
*
18
* https://twiki.cern.ch/twiki/bin/view/CMS/SWGuidePhysicsCutParser
19
*
20
*
21
*/
22
23
#include "
FWCore/Framework/interface/MakerMacros.h
"
24
#include "
CommonTools/UtilAlgos/interface/SingleObjectSelector.h
"
25
#include "
CommonTools/UtilAlgos/interface/StringCutObjectSelector.h
"
26
#include "
DataFormats/EgammaReco/interface/SuperCluster.h
"
27
#include "
DataFormats/EgammaReco/interface/SuperClusterFwd.h
"
28
29
typedef
SingleObjectSelector
<
reco::SuperClusterCollection
,
30
StringCutObjectSelector<reco::SuperCluster>
,
31
reco::SuperClusterRefVector
>
32
SuperClusterRefSelector
;
33
34
DEFINE_FWK_MODULE
(
SuperClusterRefSelector
);
StringCutObjectSelector.h
SingleObjectSelector.h
edm::RefVector
Definition:
EDProductfwd.h:27
reco::SuperClusterCollection
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
Definition:
SuperClusterFwd.h:9
MakerMacros.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:26
SuperClusterRefSelector
SingleObjectSelector< reco::SuperClusterCollection, StringCutObjectSelector< reco::SuperCluster >, reco::SuperClusterRefVector > SuperClusterRefSelector
Definition:
SuperClusterRefSelector.cc:32
SuperClusterFwd.h
StringCutObjectSelector
Definition:
StringCutObjectSelector.h:16
SuperCluster.h
Generated for CMSSW Reference Manual by
1.8.16