CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MuonServiceProxy.h
Go to the documentation of this file.
1 #ifndef RecoMuon_TrackingTools_MuonServiceProxy_H
2 #define RecoMuon_TrackingTools_MuonServiceProxy_H
3 
17 
23 
24 namespace edm {class ParameterSet; class EventSetup;}
25 
27 public:
30 
32  virtual ~MuonServiceProxy();
33 
34  // Operations
35 
37  void update(const edm::EventSetup& setup);
38 
41 
44 
47 
49  edm::ESHandle<Propagator> propagator(std::string propagatorName) const;
50 
52  const edm::EventSetup &eventSetup() const {return *theEventSetup;}
53 
56 
58  return theSchool;
59  }
60 
61  protected:
62 
63  private:
64  typedef std::map<std::string, edm::ESHandle<Propagator> > propagators;
65 
75 
77 
78  unsigned long long theCacheId_GTG;
79  unsigned long long theCacheId_MG;
80  unsigned long long theCacheId_DG;
81  unsigned long long theCacheId_P;
82 
84 
85 };
86 #endif
87 
void update(const edm::EventSetup &setup)
update the services each event
std::map< std::string, edm::ESHandle< Propagator > > propagators
edm::ESHandle< MuonDetLayerGeometry > detLayerGeometry() const
get the detLayer geometry
unsigned long long theCacheId_MG
const edm::EventSetup & eventSetup() const
get the whole EventSetup
unsigned long long theCacheId_P
virtual ~MuonServiceProxy()
Destructor.
edm::ESHandle< MagneticField > magneticField() const
get the magnetic field
edm::ESHandle< MagneticField > theMGField
bool theChangeInTrackingComponentsRecord
unsigned long long theCacheId_DG
const MuonNavigationSchool * theSchool
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
propagators thePropagators
const edm::EventSetup * theEventSetup
MuonServiceProxy(const edm::ParameterSet &par)
Constructor.
unsigned long long theCacheId_GTG
edm::ESHandle< GlobalTrackingGeometry > trackingGeometry() const
get the tracking geometry
edm::ESHandle< MuonDetLayerGeometry > theDetLayerGeometry
const MuonNavigationSchool * muonNavigationSchool() const
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
edm::ESHandle< Propagator > propagator(std::string propagatorName) const
get the propagator
bool isTrackingComponentsRecordChanged() const
check if the MuonReco Geometry has been changed