Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
RecoTracker
SiTrackerMRHTools
plugins
SiTrackerMultiRecHitUpdatorESProducer.cc
Go to the documentation of this file.
1
#include "
RecoTracker/SiTrackerMRHTools/plugins/SiTrackerMultiRecHitUpdatorESProducer.h
"
2
#include "
TrackingTools/Records/interface/TransientRecHitRecord.h
"
3
#include "
RecoTracker/Record/interface/CkfComponentsRecord.h
"
4
5
#include "
FWCore/Framework/interface/EventSetup.h
"
6
#include "
FWCore/Framework/interface/ESHandle.h
"
7
#include "
FWCore/Framework/interface/ModuleFactory.h
"
8
#include "
FWCore/Framework/interface/ESProducer.h
"
9
10
#include <string>
11
#include <memory>
12
13
using namespace
edm;
14
15
SiTrackerMultiRecHitUpdatorESProducer::SiTrackerMultiRecHitUpdatorESProducer
(
const
edm::ParameterSet
&
p
)
16
{
17
std::string
myname = p.
getParameter
<
std::string
>(
"ComponentName"
);
18
pset_ =
p
;
19
setWhatProduced(
this
,myname);
20
}
21
22
SiTrackerMultiRecHitUpdatorESProducer::~SiTrackerMultiRecHitUpdatorESProducer
() {}
23
24
boost::shared_ptr<SiTrackerMultiRecHitUpdator>
25
SiTrackerMultiRecHitUpdatorESProducer::produce
(
const
MultiRecHitRecord
& iRecord){
26
std::vector<double> annealingProgram = pset_.getParameter<std::vector<double> >(
"AnnealingProgram"
);
27
float
Chi2Cut=pset_.getParameter<
double
>(
"ChiSquareCut"
);
28
29
edm::ESHandle<TransientTrackingRecHitBuilder>
hbuilder;
30
std::string
sname
= pset_.getParameter<
std::string
>(
"TTRHBuilder"
);
31
iRecord.
getRecord
<
TransientRecHitRecord
>().
get
(sname, hbuilder);
32
std::string
hitpropagator = pset_.getParameter<
std::string
>(
"HitPropagator"
);
33
edm::ESHandle<TrackingRecHitPropagator>
hhitpropagator;
34
iRecord.
getRecord
<
CkfComponentsRecord
>().getRecord<TrackingComponentsRecord>().
get
(hitpropagator, hhitpropagator);
35
36
bool
debug
= pset_.getParameter<
bool
>(
"Debug"
);
37
//_updator = boost::shared_ptr<SiTrackerMultiRecHitUpdator>(new SiTrackerMultiRecHitUpdator(pDD.product(), pp, sp, mp, annealingProgram));
38
_updator = boost::shared_ptr<SiTrackerMultiRecHitUpdator>(
new
SiTrackerMultiRecHitUpdator
(hbuilder.product(),hhitpropagator.product(), Chi2Cut, annealingProgram,
debug
));
39
// _updator = boost::shared_ptr<SiTrackerMultiRecHitUpdator>(new SiTrackerMultiRecHitUpdator(hhitpropagator.product(),annealingProgram));
40
return
_updator;
41
}
42
43
SiTrackerMultiRecHitUpdatorESProducer::~SiTrackerMultiRecHitUpdatorESProducer
virtual ~SiTrackerMultiRecHitUpdatorESProducer()
Definition:
SiTrackerMultiRecHitUpdatorESProducer.cc:22
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
EventSetup.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
TransientRecHitRecord
Definition:
TransientRecHitRecord.h:14
edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT & getRecord() const
Definition:
DependentRecordImplementation.h:46
CkfComponentsRecord
Definition:
CkfComponentsRecord.h:23
edm::ESHandle< TransientTrackingRecHitBuilder >
SiTrackerMultiRecHitUpdatorESProducer::produce
boost::shared_ptr< SiTrackerMultiRecHitUpdator > produce(const MultiRecHitRecord &)
Definition:
SiTrackerMultiRecHitUpdatorESProducer.cc:25
edm::eventsetup::EventSetupRecord::get
void get(HolderT &iHolder) const
Definition:
EventSetupRecord.h:93
ESHandle.h
TransientRecHitRecord.h
SiTrackerMultiRecHitUpdatorESProducer::SiTrackerMultiRecHitUpdatorESProducer
SiTrackerMultiRecHitUpdatorESProducer(const edm::ParameterSet &p)
Definition:
SiTrackerMultiRecHitUpdatorESProducer.cc:15
debug
#define debug
Definition:
HDRShower.cc:19
CkfComponentsRecord.h
ESProducer.h
MultiRecHitRecord
Definition:
MultiRecHitRecord.h:12
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
SiTrackerMultiRecHitUpdatorESProducer.h
SiTrackerMultiRecHitUpdator
Definition:
SiTrackerMultiRecHitUpdator.h:27
edm::ParameterSet
Definition:
ParameterSet.h:35
ModuleFactory.h
lumiContext.sname
sname
Definition:
lumiContext.py:192
Generated for CMSSW Reference Manual by
1.8.5