diff --git a/EventFilter/Utilities/interface/FastMonitoringService.h b/EventFilter/Utilities/interface/FastMonitoringService.h index 347eb77a33923..4c6dd0f19be8c 100644 --- a/EventFilter/Utilities/interface/FastMonitoringService.h +++ b/EventFilter/Utilities/interface/FastMonitoringService.h @@ -69,7 +69,7 @@ namespace evf{ return (it!=quickReference_.end()) ? (*it).second : 0; } const void* decode(unsigned int index){return decoder_[index];} - void fillReserved(void* add, unsigned int i){ + void fillReserved(const void* add, unsigned int i){ // translation_[*name]=current_; quickReference_[add]=i; if(decoder_.size()<=i) @@ -77,7 +77,7 @@ namespace evf{ else decoder_[currentReserved_] = add; } - void updateReserved(void* add){ + void updateReserved(const void* add){ fillReserved(add,currentReserved_); currentReserved_++; } @@ -86,7 +86,7 @@ namespace evf{ for(unsigned int i = currentReserved_; i(encPath_[0].decode(i))))); Json::Value valReserved(nReservedPaths); Json::Value pathLegend; pathLegend["names"]=legendaVector; @@ -100,7 +100,7 @@ namespace evf{ std::string FastMonitoringService::makeModuleLegendaJson(){ Json::Value legendaVector(Json::arrayValue); for(int i = 0; i < encModule_.current_; i++) - legendaVector.append(Json::Value(((const edm::ModuleDescription *)(encModule_.decode(i)))->moduleLabel())); + legendaVector.append(Json::Value((static_cast(encModule_.decode(i)))->moduleLabel())); Json::Value valReserved(nReservedModules); Json::Value valSpecial(nSpecialModules); Json::Value valOutputModules(nOutputModules_); @@ -179,7 +179,7 @@ namespace evf{ macrostate_=FastMonitoringThread::sInit; for(unsigned int i = 0; i < (mCOUNT); i++) - encModule_.updateReserved((void*)(reservedMicroStateNames+i)); + encModule_.updateReserved(static_cast(reservedMicroStateNames+i)); encModule_.completeReservedWithDummies(); for (unsigned int i=0;i(&nopath_)); eventCountForPathInit_.push_back(0); firstEventId_.push_back(0); collectedPathList_.push_back(new std::atomic(0)); @@ -239,7 +239,6 @@ namespace evf{ << " LS:" << sc.eventID().luminosityBlock() << " " << context; std::lock_guard lock(fmt_.monlock_); exceptionInLS_.push_back(sc.eventID().luminosityBlock()); - //exception_detected_=true; } void FastMonitoringService::preGlobalEarlyTermination(edm::GlobalContext const& gc, edm::TerminationOrigin to) @@ -252,7 +251,6 @@ namespace evf{ << gc.luminosityBlockID().luminosityBlock() << " " << context; std::lock_guard lock(fmt_.monlock_); exceptionInLS_.push_back(gc.luminosityBlockID().luminosityBlock()); - //exception_detected_=true; } void FastMonitoringService::preSourceEarlyTermination(edm::TerminationOrigin to)