30 : theTrackingGeometry(nullptr),
32 theDetLayerGeometry(nullptr),
33 theEventSetup(nullptr),
63 std::vector<std::string> noPropagators;
64 std::vector<std::string> propagatorNames =
67 if (propagatorNames.empty())
68 LogDebug(
"Muon|RecoMuon|MuonServiceProxy") <<
"NO propagator(s) selected!";
85 element.second.eventToken_ =
119 LogTrace(metname) <<
"GlobalTrackingGeometry changed!";
131 LogTrace(metname) <<
"Magnetic Field changed!";
143 LogTrace(metname) <<
"Muon Reco Geometry changed!";
162 LogTrace(metname) <<
"Tracking Component changed!";
167 element.second.esHandle_ = setup.
getHandle(element.second.eventToken_);
169 element.second.esHandle_ = setup.
getHandle(element.second.runToken_);
178 PropagatorMap::const_iterator prop =
thePropagators.find(propagatorName);
181 edm::LogError(
"Muon|RecoMuon|MuonServiceProxy") <<
"MuonServiceProxy: propagator with name: " << propagatorName
182 <<
" not found! Please load it in the MuonServiceProxy.cff";
185 return prop->second.esHandle_;
T getUntrackedParameter(std::string const &, T const &) const
unsigned long long theCacheId_MG
unsigned long long theCacheId_P
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
const std::string metname
PropagatorMap thePropagators
Log< level::Error, false > LogError
virtual ~MuonServiceProxy()
Destructor.
edm::ESHandle< MagneticField > theMGField
MuonServiceProxy(const edm::ParameterSet &, edm::ConsumesCollector &&, UseEventSetupIn useEventSetupIn=UseEventSetupIn::Event)
Constructor.
bool theChangeInTrackingComponentsRecord
unsigned long long theCacheId_DG
edm::ESHandle< Propagator > propagator(std::string propagatorName) const
get the propagator
bool theMuonNavigationFlag
const MuonNavigationSchool * theSchool
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > globalTrackingGeometryEventToken_
const edm::EventSetup * theEventSetup
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magneticFieldRunToken_
T getParameter(std::string const &) const
edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > globalTrackingGeometryRunToken_
unsigned long long theCacheId_GTG
void update(const edm::EventSetup &setup, bool duringEvent=true)
update the services each event
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
edm::ESHandle< MuonDetLayerGeometry > theDetLayerGeometry
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magneticFieldEventToken_
edm::ESGetToken< MuonDetLayerGeometry, MuonRecoGeometryRecord > muonDetLayerGeometryEventToken_
edm::ESGetToken< MuonDetLayerGeometry, MuonRecoGeometryRecord > muonDetLayerGeometryRunToken_