CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MuonServiceProxy.h
Go to the documentation of this file.
1 #ifndef RecoMuon_TrackingTools_MuonServiceProxy_H
2 #define RecoMuon_TrackingTools_MuonServiceProxy_H
3 
20 
21 // EventSetup data types
26 
27 // EventSetup record types
32 
34 
35 #include <map>
36 #include <string>
37 
39 public:
41 
45  UseEventSetupIn useEventSetupIn = UseEventSetupIn::Event);
46 
48  virtual ~MuonServiceProxy();
49 
50  // Operations
51 
53  void update(const edm::EventSetup& setup, bool duringEvent = true);
54 
57 
60 
63 
66 
76  const edm::EventSetup& eventSetup() const { return *theEventSetup; }
77 
80 
82 
83 private:
85  public:
89  };
90 
91  using PropagatorMap = std::map<std::string, PropagatorInfo>;
92 
96 
100 
104 
112 
114 
115  unsigned long long theCacheId_GTG;
116  unsigned long long theCacheId_MG;
117  unsigned long long theCacheId_DG;
118  unsigned long long theCacheId_P;
119 
121 };
122 #endif
edm::ESHandle< MuonDetLayerGeometry > detLayerGeometry() const
get the detLayer geometry
unsigned long long theCacheId_MG
const edm::EventSetup & eventSetup() const
unsigned long long theCacheId_P
tuple propagatorName
PropagatorMap thePropagators
virtual ~MuonServiceProxy()
Destructor.
edm::ESHandle< MagneticField > magneticField() const
get the magnetic field
edm::ESHandle< MagneticField > theMGField
edm::ESGetToken< Propagator, TrackingComponentsRecord > eventToken_
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
const MuonNavigationSchool * theSchool
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > globalTrackingGeometryEventToken_
const edm::EventSetup * theEventSetup
std::map< std::string, PropagatorInfo > PropagatorMap
edm::ESHandle< Propagator > esHandle_
edm::ESGetToken< Propagator, TrackingComponentsRecord > runToken_
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magneticFieldRunToken_
edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > globalTrackingGeometryRunToken_
unsigned long long theCacheId_GTG
edm::ESHandle< GlobalTrackingGeometry > trackingGeometry() const
get the tracking geometry
void update(const edm::EventSetup &setup, bool duringEvent=true)
update the services each event
edm::ESHandle< MuonDetLayerGeometry > theDetLayerGeometry
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magneticFieldEventToken_
edm::ESGetToken< MuonDetLayerGeometry, MuonRecoGeometryRecord > muonDetLayerGeometryEventToken_
const MuonNavigationSchool * muonNavigationSchool() const
edm::ESGetToken< MuonDetLayerGeometry, MuonRecoGeometryRecord > muonDetLayerGeometryRunToken_
bool isTrackingComponentsRecordChanged() const
check if the MuonReco Geometry has been changed