TrackingTools
KalmanUpdators
plugins
KFSwitching1DUpdatorESProducer.cc
Go to the documentation of this file.
1
7
#include "
FWCore/Framework/interface/ESProducer.h
"
8
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
9
#include "
TrackingTools/Records/interface/TrackingComponentsRecord.h
"
10
#include "
TrackingTools/KalmanUpdators/interface/KFSwitching1DUpdator.h
"
11
#include <memory>
12
13
#include "
MagneticField/Engine/interface/MagneticField.h
"
14
#include "
MagneticField/Records/interface/IdealMagneticFieldRecord.h
"
15
16
#include "
FWCore/Framework/interface/EventSetup.h
"
17
#include "
FWCore/Framework/interface/ESHandle.h
"
18
#include "
FWCore/Framework/interface/ModuleFactory.h
"
19
#include "
FWCore/Framework/interface/ESProducer.h
"
20
21
#include <string>
22
#include <memory>
23
24
class
KFSwitching1DUpdatorESProducer
:
public
edm::ESProducer
{
25
public
:
26
KFSwitching1DUpdatorESProducer
(
const
edm::ParameterSet
&
p
);
27
28
std::unique_ptr<TrajectoryStateUpdator>
produce
(
const
TrackingComponentsRecord
&);
29
30
static
void
fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions);
31
32
private
:
33
const
bool
doEndCap_
;
34
};
35
using namespace
edm
;
36
37
KFSwitching1DUpdatorESProducer::KFSwitching1DUpdatorESProducer
(
const
edm::ParameterSet
&
p
)
38
: doEndCap_(
p
.getParameter<
bool
>(
"doEndCap"
)) {
39
std::string
myname =
p
.getParameter<
std::string
>(
"ComponentName"
);
40
setWhatProduced
(
this
, myname);
41
}
42
43
std::unique_ptr<TrajectoryStateUpdator>
KFSwitching1DUpdatorESProducer::produce
(
44
const
TrackingComponentsRecord
& iRecord) {
45
return
std::make_unique<KFSwitching1DUpdator>(
doEndCap_
);
46
}
47
48
void
KFSwitching1DUpdatorESProducer::fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions) {
49
edm::ParameterSetDescription
desc
;
50
desc
.add<
bool
>(
"doEndCap"
);
51
desc
.add<
std::string
>(
"ComponentName"
);
52
descriptions.
addDefault
(
desc
);
53
}
54
DEFINE_FWK_EVENTSETUP_MODULE
(
KFSwitching1DUpdatorESProducer
);
KFSwitching1DUpdatorESProducer::KFSwitching1DUpdatorESProducer
KFSwitching1DUpdatorESProducer(const edm::ParameterSet &p)
Definition:
KFSwitching1DUpdatorESProducer.cc:37
KFSwitching1DUpdatorESProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition:
KFSwitching1DUpdatorESProducer.cc:48
electrons_cff.bool
bool
Definition:
electrons_cff.py:393
ESHandle.h
edm
HLT enums.
Definition:
AlignableModifier.h:19
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:163
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
ESProducer.h
KFSwitching1DUpdatorESProducer::produce
std::unique_ptr< TrajectoryStateUpdator > produce(const TrackingComponentsRecord &)
Definition:
KFSwitching1DUpdatorESProducer.cc:43
KFSwitching1DUpdator.h
IdealMagneticFieldRecord.h
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition:
ParameterSet.h:47
MagneticField.h
ModuleFactory.h
submitPVResolutionJobs.desc
string desc
Definition:
submitPVResolutionJobs.py:251
KFSwitching1DUpdatorESProducer
Definition:
KFSwitching1DUpdatorESProducer.cc:24
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
TrackingComponentsRecord.h
EventSetup.h
edm::ESProducer
Definition:
ESProducer.h:104
ParameterSet.h
KFSwitching1DUpdatorESProducer::doEndCap_
const bool doEndCap_
Definition:
KFSwitching1DUpdatorESProducer.cc:33
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