diff --git a/src/plugins/Utilities/evio_writer/DEventWriterEVIO.cc b/src/plugins/Utilities/evio_writer/DEventWriterEVIO.cc index 2216af8c1..cfe10b3f2 100644 --- a/src/plugins/Utilities/evio_writer/DEventWriterEVIO.cc +++ b/src/plugins/Utilities/evio_writer/DEventWriterEVIO.cc @@ -205,7 +205,7 @@ bool DEventWriterEVIO::Write_EVIOEvent(const std::shared_ptr& locE //check to see if the EVIO file is open if(Get_EVIOOutputters().find(locOutputFileName) == Get_EVIOOutputters().end()) { //not open, open it - if(!Open_OutputFile(locEventLoop, locOutputFileName)){ + if(!Open_OutputFile(locEvent, locOutputFileName)){ lockService->Unlock("EVIOWriter"); // release lock return false; //failed to open } diff --git a/src/plugins/monitoring/FDC_Efficiency/JEventProcessor_FDC_Efficiency.cc b/src/plugins/monitoring/FDC_Efficiency/JEventProcessor_FDC_Efficiency.cc index ce003c4bf..ce604a329 100644 --- a/src/plugins/monitoring/FDC_Efficiency/JEventProcessor_FDC_Efficiency.cc +++ b/src/plugins/monitoring/FDC_Efficiency/JEventProcessor_FDC_Efficiency.cc @@ -310,9 +310,9 @@ void JEventProcessor_FDC_Efficiency::Process(const std::shared_ptr for (unsigned int i = 0; i < pulls.size(); i++){ const DFDCPseudo * thisTrackFDCHit = pulls[i].fdc_hit; if (thisTrackFDCHit != NULL){ - japp->RootFillLock(this); //ACQUIRE ROOT FILL LOCK + lockService->RootFillLock(this); //ACQUIRE ROOT FILL LOCK hPullTime[thisTrackFDCHit->wire->layer]->Fill(pulls[i].tdrift); - japp->RootFillUnLock(this); //RELEASE ROOT FILL LOCK + lockService->RootFillUnLock(this); //RELEASE ROOT FILL LOCK if ( find(cellsHit.begin(), cellsHit.end(), thisTrackFDCHit->wire->layer) == cellsHit.end()) cellsHit.push_back(thisTrackFDCHit->wire->layer); } diff --git a/src/plugins/monitoring/FMWPC_Performance/JEventProcessor_FMWPC_Performance.cc b/src/plugins/monitoring/FMWPC_Performance/JEventProcessor_FMWPC_Performance.cc index 8f5484cb6..721f05071 100644 --- a/src/plugins/monitoring/FMWPC_Performance/JEventProcessor_FMWPC_Performance.cc +++ b/src/plugins/monitoring/FMWPC_Performance/JEventProcessor_FMWPC_Performance.cc @@ -442,7 +442,7 @@ void JEventProcessor_FMWPC_Performance::Process(const std::shared_ptrpimem_ML_classifier; double MLPClassifierPlus=cppepem->pipep_ML_classifier; - japp->RootFillLock(this); //ACQUIRE ROOT FILL LOCK + DEvent::GetLockService(event)->RootFillLock(this); //ACQUIRE ROOT FILL LOCK hpimem_ML_classifier->Fill(MLPClassifierMinus); hpipep_ML_classifier->Fill(MLPClassifierPlus); if(MLPClassifierPlus > 0.8 && MLPClassifierMinus > 0.8){ @@ -486,7 +486,7 @@ void JEventProcessor_FMWPC_Performance::Process(const std::shared_ptrFill(CosTheta,weight); hCosTheta_vs_psi_mumu->Fill(psi*TMath::RadToDeg(), CosTheta); } - japp->RootFillUnLock(this); //RELEASE ROOT FILL LOCK + DEvent::GetLockService(event)->RootFillUnLock(this); //RELEASE ROOT FILL LOCK }