38 vector<string> noPropagators;
39 vector<string> propagatorNames;
47 if(propagatorNames.empty())
48 LogDebug(
"Muon|RecoMuon|MuonServiceProxy") <<
"NO propagator(s) selected!";
50 for(vector<string>::iterator propagatorName = propagatorNames.begin();
51 propagatorName != propagatorNames.end(); ++propagatorName)
72 thePropagators.clear();
73 if(theSchool)
delete theSchool;
82 theEventSetup = &
setup;
86 if ( newCacheId_GTG != theCacheId_GTG ) {
87 LogTrace(metname) <<
"GlobalTrackingGeometry changed!";
88 theCacheId_GTG = newCacheId_GTG;
94 if ( newCacheId_MG != theCacheId_MG ) {
95 LogTrace(metname) <<
"Magnetic Field changed!";
96 theCacheId_MG = newCacheId_MG;
102 if ( newCacheId_DG != theCacheId_DG ) {
103 LogTrace(metname) <<
"Muon Reco Geometry changed!";
104 theCacheId_DG = newCacheId_DG;
108 if ( theMuonNavigationFlag ) {
109 if(theSchool)
delete theSchool;
116 if ( newCacheId_P != theCacheId_P ) {
117 LogTrace(metname) <<
"Tracking Component changed!";
118 theChangeInTrackingComponentsRecord =
true;
119 theCacheId_P = newCacheId_P;
120 for(propagators::iterator prop = thePropagators.begin(); prop != thePropagators.end();
125 theChangeInTrackingComponentsRecord =
false;
132 propagators::const_iterator prop = thePropagators.find(propagatorName);
134 if (prop == thePropagators.end()){
135 LogError(
"Muon|RecoMuon|MuonServiceProxy")
136 <<
"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