test
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 
15 
21 
22 namespace edm {class ParameterSet; class EventSetup;}
23 
25 public:
28 
30  virtual ~MuonServiceProxy();
31 
32  // Operations
33 
35  void update(const edm::EventSetup& setup);
36 
39 
42 
45 
47  edm::ESHandle<Propagator> propagator(std::string propagatorName) const;
48 
50  const edm::EventSetup &eventSetup() const {return *theEventSetup;}
51 
54 
56  return theSchool;
57  }
58 
59  protected:
60 
61  private:
62  typedef std::map<std::string, edm::ESHandle<Propagator> > propagators;
63 
71 
73 
74  unsigned long long theCacheId_GTG;
75  unsigned long long theCacheId_MG;
76  unsigned long long theCacheId_DG;
77  unsigned long long theCacheId_P;
78 
80 
81 };
82 #endif
83 
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