Main Page
Namespaces
Classes
Package Documentation
CVS Directory
WorkBook
Offline Guide
Release schedule
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
RecoEgamma
ElectronIdentification
src
ElectronIDAlgo.cc
Go to the documentation of this file.
1
#include "
RecoEgamma/ElectronIdentification/interface/ElectronIDAlgo.h
"
2
#include "
DataFormats/EgammaReco/interface/BasicCluster.h
"
3
#include "
DataFormats/EgammaReco/interface/BasicClusterShapeAssociation.h
"
4
5
void
ElectronIDAlgo::baseSetup
(
const
edm::ParameterSet
&
conf
) {
6
reducedBarrelRecHitCollection_
= conf.
getParameter
<
edm::InputTag
>(
"reducedBarrelRecHitCollection"
);
7
reducedEndcapRecHitCollection_
= conf.
getParameter
<
edm::InputTag
>(
"reducedEndcapRecHitCollection"
);
8
}
9
10
EcalClusterLazyTools
ElectronIDAlgo::getClusterShape
(
const
edm::Event
& ev,
11
const
edm::EventSetup
& es)
12
{
13
14
edm::Handle< EcalRecHitCollection >
pEBRecHits;
15
ev.
getByLabel
(
reducedBarrelRecHitCollection_
, pEBRecHits );
16
17
edm::Handle< EcalRecHitCollection >
pEERecHits;
18
ev.
getByLabel
(
reducedEndcapRecHitCollection_
, pEERecHits );
19
20
EcalClusterLazyTools
lazyTools( ev, es,
reducedBarrelRecHitCollection_
,
reducedEndcapRecHitCollection_
) ;
21
return
lazyTools ;
22
23
}
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
ElectronIDAlgo.h
ElectronIDAlgo::baseSetup
void baseSetup(const edm::ParameterSet &conf)
Definition:
ElectronIDAlgo.cc:5
edm::Handle
Definition:
AssociativeIterator.h:48
edm::EventSetup
Definition:
EventSetup.h:44
edm::Event::getByLabel
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition:
Event.h:356
BasicClusterShapeAssociation.h
dbtoconf.conf
tuple conf
Definition:
dbtoconf.py:185
ElectronIDAlgo::reducedEndcapRecHitCollection_
edm::InputTag reducedEndcapRecHitCollection_
Definition:
ElectronIDAlgo.h:38
edm::InputTag
Definition:
InputTag.h:12
ElectronIDAlgo::getClusterShape
EcalClusterLazyTools getClusterShape(const edm::Event &, const edm::EventSetup &)
Definition:
ElectronIDAlgo.cc:10
edm::ParameterSet
Definition:
ParameterSet.h:35
edm::Event
Definition:
Event.h:50
BasicCluster.h
EcalClusterLazyTools
Definition:
EcalClusterLazyTools.h:33
ElectronIDAlgo::reducedBarrelRecHitCollection_
edm::InputTag reducedBarrelRecHitCollection_
Definition:
ElectronIDAlgo.h:37
Generated for CMSSW Reference Manual by
1.8.5