40 vector<string> noPropagators;
41 vector<string> propagatorNames;
49 if(propagatorNames.empty())
50 LogDebug(
"Muon|RecoMuon|MuonServiceProxy") <<
"NO propagator(s) selected!";
52 for(vector<string>::iterator propagatorName = propagatorNames.begin();
53 propagatorName != propagatorNames.end(); ++propagatorName)
74 thePropagators.clear();
75 if(theSchool)
delete theSchool;
82 const std::string
metname =
"Muon|RecoMuon|MuonServiceProxy";
84 theEventSetup = &setup;
88 if ( newCacheId_GTG != theCacheId_GTG ) {
89 LogTrace(metname) <<
"GlobalTrackingGeometry changed!";
90 theCacheId_GTG = newCacheId_GTG;
96 if ( newCacheId_MG != theCacheId_MG ) {
97 LogTrace(metname) <<
"Magnetic Field changed!";
98 theCacheId_MG = newCacheId_MG;
104 if ( newCacheId_DG != theCacheId_DG ) {
105 LogTrace(metname) <<
"Muon Reco Geometry changed!";
106 theCacheId_DG = newCacheId_DG;
110 if ( theMuonNavigationFlag ) {
111 if(theSchool)
delete theSchool;
118 if ( newCacheId_P != theCacheId_P ) {
119 LogTrace(metname) <<
"Tracking Component changed!";
120 theChangeInTrackingComponentsRecord =
true;
121 theCacheId_P = newCacheId_P;
122 for(propagators::iterator prop = thePropagators.begin(); prop != thePropagators.end();
127 theChangeInTrackingComponentsRecord =
false;
134 propagators::const_iterator prop = thePropagators.find(propagatorName);
136 if (prop == thePropagators.end()){
137 LogError(
"Muon|RecoMuon|MuonServiceProxy")
138 <<
"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
edm::ESHandle< Propagator > propagator(std::string propagatorName) const
get the propagator
const double par[8 *NPar][4]