37 vector<string> noPropagators;
38 vector<string> propagatorNames;
46 if(propagatorNames.empty())
47 LogDebug(
"Muon|RecoMuon|MuonServiceProxy") <<
"NO propagator(s) selected!";
49 for(vector<string>::iterator propagatorName = propagatorNames.begin();
50 propagatorName != propagatorNames.end(); ++propagatorName)
71 thePropagators.clear();
72 if(theSchool)
delete theSchool;
81 theEventSetup = &
setup;
85 if ( newCacheId_GTG != theCacheId_GTG ) {
86 LogTrace(metname) <<
"GlobalTrackingGeometry changed!";
87 theCacheId_GTG = newCacheId_GTG;
93 if ( newCacheId_MG != theCacheId_MG ) {
94 LogTrace(metname) <<
"Magnetic Field changed!";
95 theCacheId_MG = newCacheId_MG;
101 if ( newCacheId_DG != theCacheId_DG ) {
102 LogTrace(metname) <<
"Muon Reco Geometry changed!";
103 theCacheId_DG = newCacheId_DG;
107 if ( theMuonNavigationFlag ) {
108 if(theSchool)
delete theSchool;
115 if ( newCacheId_P != theCacheId_P ) {
116 LogTrace(metname) <<
"Tracking Component changed!";
117 theChangeInTrackingComponentsRecord =
true;
118 theCacheId_P = newCacheId_P;
119 for(propagators::iterator prop = thePropagators.begin(); prop != thePropagators.end();
124 theChangeInTrackingComponentsRecord =
false;
131 propagators::const_iterator prop = thePropagators.find(propagatorName);
133 if (prop == thePropagators.end()){
134 LogError(
"Muon|RecoMuon|MuonServiceProxy")
135 <<
"MuonServiceProxy: propagator with name: "<< propagatorName <<
" not found! Please load it in the MuonServiceProxy.cff";
void update(const edm::EventSetup &setup)
update the services each event
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
unsigned long long theCacheId_MG
unsigned long long theCacheId_P
const std::string metname
virtual ~MuonServiceProxy()
Destructor.
bool theChangeInTrackingComponentsRecord
unsigned long long theCacheId_DG
void get(HolderT &iHolder) const
bool theMuonNavigationFlag
propagators thePropagators
MuonServiceProxy(const edm::ParameterSet &par)
Constructor.
unsigned long long theCacheId_GTG
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
edm::ESHandle< Propagator > propagator(std::string propagatorName) const
get the propagator