Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
RecoLocalTracker
SiPixelRecHits
plugins
PixelCPEGenericESProducer.cc
Go to the documentation of this file.
1
#include "
RecoLocalTracker/SiPixelRecHits/interface/PixelCPEGenericESProducer.h
"
2
#include "
RecoLocalTracker/SiPixelRecHits/interface/PixelCPEGeneric.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
PixelCPEGenericESProducer::PixelCPEGenericESProducer
(
const
edm::ParameterSet
&
p
)
21
{
22
std::string
myname = p.
getParameter
<
std::string
>(
"ComponentName"
);
23
pset_ =
p
;
24
setWhatProduced(
this
,myname);
25
}
26
27
PixelCPEGenericESProducer::~PixelCPEGenericESProducer
() {}
28
29
boost::shared_ptr<PixelClusterParameterEstimator>
30
PixelCPEGenericESProducer::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
ESHandle<SiPixelLorentzAngle>
lorentzAngle;
39
iRecord.
getRecord
<
SiPixelLorentzAngleRcd
>().
get
(lorentzAngle );
40
41
ESHandle<SiPixelCPEGenericErrorParm>
genErrorParm;
42
iRecord.
getRecord
<
SiPixelCPEGenericErrorParmRcd
>().
get
(genErrorParm);
43
44
ESHandle<SiPixelTemplateDBObject>
templateDBobject;
45
iRecord.
getRecord
<
SiPixelTemplateDBObjectESProducerRcd
>().
get
(templateDBobject);
46
47
cpe_ = boost::shared_ptr<PixelClusterParameterEstimator>(
new
PixelCPEGeneric
(pset_,magfield.
product
(),lorentzAngle.
product
(),genErrorParm.
product
(),templateDBobject.
product
()) );
48
//ToDo? Replace blah.product() with ESHandle
49
50
return
cpe_;
51
}
52
53
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
TrackerDigiGeometryRecord.h
EventSetup.h
HLT_ES_cff.magfield
tuple magfield
Definition:
HLT_ES_cff.py:2311
IdealMagneticFieldRecord
Definition:
IdealMagneticFieldRecord.h:12
PixelCPEGeneric.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
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 >
ESHandle.h
PixelCPEGeneric
Definition:
PixelCPEGeneric.h:54
SiPixelCPEGenericErrorParmRcd
Definition:
SiPixelCPEGenericErrorParmRcd.h:24
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
PixelCPEGenericESProducer::produce
boost::shared_ptr< PixelClusterParameterEstimator > produce(const TkPixelCPERecord &)
Definition:
PixelCPEGenericESProducer.cc:30
TrackerGeometry.h
edm::ParameterSet
Definition:
ParameterSet.h:35
ModuleFactory.h
PixelCPEGenericESProducer.h
TrackerDigiGeometryRecord
Definition:
TrackerDigiGeometryRecord.h:31
PixelCPEGenericESProducer::~PixelCPEGenericESProducer
virtual ~PixelCPEGenericESProducer()
Definition:
PixelCPEGenericESProducer.cc:27
PixelCPEGenericESProducer::PixelCPEGenericESProducer
PixelCPEGenericESProducer(const edm::ParameterSet &p)
Definition:
PixelCPEGenericESProducer.cc:20
IdealMagneticFieldRecord.h
Generated for CMSSW Reference Manual by
1.8.5