TrackingTools
KalmanUpdators
plugins
KFUpdatorESProducer.cc
Go to the documentation of this file.
1
#include "
FWCore/Framework/interface/ESProducer.h
"
2
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
3
#include "
TrackingTools/Records/interface/TrackingComponentsRecord.h
"
4
#include "
TrackingTools/KalmanUpdators/interface/KFUpdator.h
"
5
#include <memory>
6
7
#include "
MagneticField/Engine/interface/MagneticField.h
"
8
#include "
MagneticField/Records/interface/IdealMagneticFieldRecord.h
"
9
10
#include "
FWCore/Framework/interface/EventSetup.h
"
11
#include "
FWCore/Framework/interface/ESHandle.h
"
12
#include "
FWCore/Framework/interface/ModuleFactory.h
"
13
#include "
FWCore/Framework/interface/ESProducer.h
"
14
15
#include <string>
16
#include <memory>
17
18
using namespace
edm
;
19
class
KFUpdatorESProducer
:
public
edm::ESProducer
{
20
public
:
21
KFUpdatorESProducer
(
const
edm::ParameterSet
&
p
);
22
std::unique_ptr<TrajectoryStateUpdator> produce(
const
TrackingComponentsRecord
&);
23
24
static
void
fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions);
25
26
private
:
27
};
28
29
KFUpdatorESProducer::KFUpdatorESProducer
(
const
edm::ParameterSet
&
p
) {
30
std::string
myname =
p
.getParameter<
std::string
>(
"ComponentName"
);
31
setWhatProduced(
this
, myname);
32
}
33
34
std::unique_ptr<TrajectoryStateUpdator>
KFUpdatorESProducer::produce
(
const
TrackingComponentsRecord
& iRecord) {
35
return
std::make_unique<KFUpdator>();
36
}
37
38
void
KFUpdatorESProducer::fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions) {
39
edm::ParameterSetDescription
desc;
40
desc.
add
<
std::string
>(
"ComponentName"
);
41
descriptions.
addDefault
(desc);
42
}
43
44
DEFINE_FWK_EVENTSETUP_MODULE
(
KFUpdatorESProducer
);
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition:
ParameterSetDescription.h:95
ESHandle.h
edm
HLT enums.
Definition:
AlignableModifier.h:19
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
ESProducer.h
KFUpdatorESProducer_cfi.KFUpdatorESProducer
KFUpdatorESProducer
Definition:
KFUpdatorESProducer_cfi.py:3
KFUpdatorESProducer::KFUpdatorESProducer
KFUpdatorESProducer(const edm::ParameterSet &p)
Definition:
KFUpdatorESProducer.cc:29
KFUpdatorESProducer::produce
std::unique_ptr< TrajectoryStateUpdator > produce(const TrackingComponentsRecord &)
Definition:
KFUpdatorESProducer.cc:34
fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
IdealMagneticFieldRecord.h
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
KFUpdator.h
edm::ParameterSet
Definition:
ParameterSet.h:36
MagneticField.h
KFUpdatorESProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition:
KFUpdatorESProducer.cc:38
ModuleFactory.h
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
TrackingComponentsRecord.h
EventSetup.h
edm::ESProducer
Definition:
ESProducer.h:101
ParameterSet.h
edm::ConfigurationDescriptions::addDefault
void addDefault(ParameterSetDescription const &psetDescription)
Definition:
ConfigurationDescriptions.cc:99
TrackingComponentsRecord
Definition:
TrackingComponentsRecord.h:12
Generated for CMSSW Reference Manual by
1.8.16