src
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
);
TrackingComponentsRecord.h
ModuleFactory.h
KFUpdatorESProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition:
KFUpdatorESProducer.cc:38
TrackingComponentsRecord
Definition:
TrackingComponentsRecord.h:12
EventSetup.h
KFUpdatorESProducer::KFUpdatorESProducer
KFUpdatorESProducer(const edm::ParameterSet &p)
Definition:
KFUpdatorESProducer.cc:29
KFUpdatorESProducer::produce
std::unique_ptr< TrajectoryStateUpdator > produce(const TrackingComponentsRecord &)
Definition:
KFUpdatorESProducer.cc:34
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
ESProducer.h
edm::ESProducer
Definition:
ESProducer.h:104
MagneticField.h
ParameterSet.h
edm::ConfigurationDescriptions::addDefault
void addDefault(ParameterSetDescription const &psetDescription)
Definition:
ConfigurationDescriptions.cc:99
KFUpdator.h
submitPVResolutionJobs.desc
string desc
Definition:
submitPVResolutionJobs.py:254
ESHandle.h
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:61
fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
KFUpdatorESProducer_cfi.KFUpdatorESProducer
KFUpdatorESProducer
Definition:
KFUpdatorESProducer_cfi.py:3
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::ParameterSet
Definition:
ParameterSet.h:48
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
IdealMagneticFieldRecord.h
AlCaHLTBitMon_ParallelJobs.p
def p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
Generated for CMSSW Reference Manual by
1.8.14