Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
RecoLocalTracker
SiPixelRecHits
plugins
PixelCPETemplateRecoESProducer.cc
Go to the documentation of this file.
1
#include "
RecoLocalTracker/SiPixelRecHits/interface/PixelCPETemplateRecoESProducer.h
"
2
#include "
RecoLocalTracker/SiPixelRecHits/interface/PixelCPETemplateReco.h
"
3
#include "
MagneticField/Engine/interface/MagneticField.h
"
4
#include "
MagneticField/Records/interface/IdealMagneticFieldRecord.h
"
5
#include "
Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h
"
6
#include "
Geometry/Records/interface/TrackerDigiGeometryRecord.h
"
7
8
#include "
FWCore/Framework/interface/EventSetup.h
"
9
#include "
FWCore/Framework/interface/ESHandle.h
"
10
#include "
FWCore/Framework/interface/ModuleFactory.h
"
11
#include "
FWCore/Framework/interface/ESProducer.h
"
12
13
14
15
#include <string>
16
#include <memory>
17
18
using namespace
edm;
19
20
PixelCPETemplateRecoESProducer::PixelCPETemplateRecoESProducer
(
const
edm::ParameterSet
&
p
)
21
{
22
std::string myname = p.
getParameter
<std::string>(
"ComponentName"
);
23
pset_ =
p
;
24
setWhatProduced(
this
,myname);
25
}
26
27
PixelCPETemplateRecoESProducer::~PixelCPETemplateRecoESProducer
() {}
28
29
boost::shared_ptr<PixelClusterParameterEstimator>
30
PixelCPETemplateRecoESProducer::produce
(
const
TkPixelCPERecord
& iRecord){
31
32
ESHandle<MagneticField>
magfield
;
33
iRecord.
getRecord
<
IdealMagneticFieldRecord
>().
get
(magfield );
34
35
edm::ESHandle<TrackerGeometry>
pDD;
36
iRecord.
getRecord
<
TrackerDigiGeometryRecord
>().
get
( pDD );
37
38
edm::ESHandle<SiPixelLorentzAngle>
lorentzAngle;
39
iRecord.
getRecord
<
SiPixelLorentzAngleRcd
>().
get
(lorentzAngle);
40
41
ESHandle<SiPixelTemplateDBObject>
templateDBobject;
42
iRecord.
getRecord
<
SiPixelTemplateDBObjectESProducerRcd
>().
get
(templateDBobject);
43
44
cpe_ = boost::shared_ptr<PixelClusterParameterEstimator>(
new
PixelCPETemplateReco
(pset_,magfield.
product
(),lorentzAngle.
product
(),templateDBobject.
product
() ));
45
return
cpe_;
46
}
47
48
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
TrackerDigiGeometryRecord.h
PixelCPETemplateRecoESProducer.h
PixelCPETemplateReco.h
EventSetup.h
HLT_ES_cff.magfield
tuple magfield
Definition:
HLT_ES_cff.py:2311
PixelCPETemplateReco
Definition:
PixelCPETemplateReco.h:34
IdealMagneticFieldRecord
Definition:
IdealMagneticFieldRecord.h:11
SiPixelTemplateDBObjectESProducerRcd
Definition:
SiPixelTemplateDBObjectESProducerRcd.h:11
MagneticField.h
edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT & getRecord() const
Definition:
DependentRecordImplementation.h:46
SiPixelLorentzAngleRcd
Definition:
SiPixelLorentzAngleRcd.h:24
edm::ESHandle< MagneticField >
PixelCPETemplateRecoESProducer::produce
boost::shared_ptr< PixelClusterParameterEstimator > produce(const TkPixelCPERecord &)
Definition:
PixelCPETemplateRecoESProducer.cc:30
ESHandle.h
TkPixelCPERecord
Definition:
TkPixelCPERecord.h:16
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:62
ESProducer.h
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
PixelCPETemplateRecoESProducer::PixelCPETemplateRecoESProducer
PixelCPETemplateRecoESProducer(const edm::ParameterSet &p)
Definition:
PixelCPETemplateRecoESProducer.cc:20
TrackerGeometry.h
edm::ParameterSet
Definition:
ParameterSet.h:35
ModuleFactory.h
PixelCPETemplateRecoESProducer::~PixelCPETemplateRecoESProducer
virtual ~PixelCPETemplateRecoESProducer()
Definition:
PixelCPETemplateRecoESProducer.cc:27
TrackerDigiGeometryRecord
Definition:
TrackerDigiGeometryRecord.h:32
IdealMagneticFieldRecord.h
Generated for CMSSW Reference Manual by
1.8.5