Main Page
Namespaces
Classes
Package Documentation
src
CommonTools
RecoAlgos
plugins
PhotonRefSelector.cc
Go to the documentation of this file.
1
/* \class PhotonRefSelector
2
*
3
* Selects photon with a configurable string-based cut.
4
* Saves references to the selected photons
5
*
6
* \author: Luca Lista, INFN
7
*
8
* usage:
9
*
10
* module bestPhotons = PhotonRefSelector {
11
* src = photons
12
* string cut = "pt > 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/EgammaCandidates/interface/Photon.h
"
27
#include "
DataFormats/EgammaCandidates/interface/PhotonFwd.h
"
28
29
typedef
SingleObjectSelector
<
30
reco::PhotonCollection
,
31
StringCutObjectSelector<reco::Photon>
,
32
reco::PhotonRefVector
33
>
PhotonRefSelector
;
34
35
DEFINE_FWK_MODULE
(
PhotonRefSelector
);
PhotonRefSelector
SingleObjectSelector< reco::PhotonCollection, StringCutObjectSelector< reco::Photon >, reco::PhotonRefVector > PhotonRefSelector
Definition:
PhotonRefSelector.cc:33
StringCutObjectSelector.h
StringCutObjectSelector< reco::Photon >
MakerMacros.h
Photon.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
SingleObjectSelector.h
reco::PhotonCollection
std::vector< Photon > PhotonCollection
collectin of Photon objects
Definition:
PhotonFwd.h:9
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:28
edm::RefVector
Definition:
EDProductfwd.h:23
PhotonFwd.h
Generated for CMSSW Reference Manual by
1.8.11