Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
RecoTracker
TkNavigation
plugins
CfgNavigationSchoolESProducer.cc
Go to the documentation of this file.
1
#include <
FWCore/Utilities/interface/ESInputTag.h
>
2
#include "
RecoTracker/TkNavigation/plugins/CfgNavigationSchoolESProducer.h
"
3
#include "
RecoTracker/TkNavigation/interface/CfgNavigationSchool.h
"
4
5
NavigationSchoolESProducer::ReturnType
CfgNavigationSchoolESProducer::produce
(
const
NavigationSchoolRecord
& iRecord){
6
using namespace
edm::es;
7
8
// get the field
9
edm::ESHandle<MagneticField>
field
;
10
std::string
mfName =
""
;
11
if
(
theNavigationPSet
.
exists
(
"SimpleMagneticField"
))
12
mfName =
theNavigationPSet
.
getParameter
<
std::string
>(
"SimpleMagneticField"
);
13
iRecord.
getRecord
<
IdealMagneticFieldRecord
>().
get
(mfName,
field
);
14
// edm::ESInputTag mfESInputTag(mfName);
15
// iRecord.getRecord<IdealMagneticFieldRecord>().get(mfESInputTag,field);
16
17
//get the geometricsearch tracker geometry
18
edm::ESHandle<GeometricSearchTracker>
geometricSearchTracker;
19
iRecord.
getRecord
<
TrackerRecoGeometryRecord
>().
get
(geometricSearchTracker);
20
21
theNavigationSchool
.reset(
new
CfgNavigationSchool
(
theNavigationPSet
,
22
geometricSearchTracker.product(),
23
field
.product()) );
24
25
return
theNavigationSchool
;
26
}
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
CfgNavigationSchoolESProducer::produce
ReturnType produce(const NavigationSchoolRecord &)
Definition:
CfgNavigationSchoolESProducer.cc:5
TrackerRecoGeometryRecord
Definition:
TrackerRecoGeometryRecord.h:12
ESInputTag.h
edm::ParameterSet::exists
bool exists(std::string const ¶meterName) const
checks if a parameter exists
Definition:
ParameterSet.cc:759
IdealMagneticFieldRecord
Definition:
IdealMagneticFieldRecord.h:12
CfgNavigationSchoolESProducer.h
NavigationSchoolESProducer::ReturnType
boost::shared_ptr< NavigationSchool > ReturnType
Definition:
NavigationSchoolESProducer.h:25
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
statics.field
tuple field
Definition:
statics.py:62
edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT & getRecord() const
Definition:
DependentRecordImplementation.h:46
NavigationSchoolRecord
Definition:
NavigationSchoolRecord.h:14
edm::ESHandle< MagneticField >
CfgNavigationSchool.h
NavigationSchoolESProducer::theNavigationSchool
boost::shared_ptr< NavigationSchool > theNavigationSchool
Definition:
NavigationSchoolESProducer.h:32
NavigationSchoolESProducer::theNavigationPSet
edm::ParameterSet theNavigationPSet
Definition:
NavigationSchoolESProducer.h:30
CfgNavigationSchool
Definition:
CfgNavigationSchool.h:13
Generated for CMSSW Reference Manual by
1.8.5