From 690103a24d45b682f3db0ee362c1528e22a510de Mon Sep 17 00:00:00 2001 From: Suvankar Roy Chowdhury Date: Mon, 13 Sep 2021 05:50:51 +0200 Subject: [PATCH] make modules thread safe --- CondTools/DT/plugins/DTKeyedConfigDBDump.cc | 9 ++------- CondTools/DT/plugins/DTKeyedConfigDBInit.h | 4 ++-- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/CondTools/DT/plugins/DTKeyedConfigDBDump.cc b/CondTools/DT/plugins/DTKeyedConfigDBDump.cc index 7459cd4e7e254..0f850e975616e 100644 --- a/CondTools/DT/plugins/DTKeyedConfigDBDump.cc +++ b/CondTools/DT/plugins/DTKeyedConfigDBDump.cc @@ -10,7 +10,7 @@ //---------------------- // Base Class Headers -- //---------------------- -#include "FWCore/Framework/interface/EDAnalyzer.h" +#include "FWCore/Framework/interface/one/EDAnalyzer.h" //------------------------------------ // Collaborating Class Declarations -- //------------------------------------ @@ -29,7 +29,7 @@ //----------------------- // This Class' Header -- //----------------------- -class DTKeyedConfigDBDump : public edm::EDAnalyzer { +class DTKeyedConfigDBDump : public edm::one::EDAnalyzer<> { public: /** Constructor */ @@ -75,11 +75,6 @@ void DTKeyedConfigDBDump::analyze(const edm::Event& iEvent, const edm::EventSetu edm::LogWarning("DTKeyedConfigDBDump") << "Record \"DTKeyedConfigListRcd " << "\" does not exist " << std::endl; } - //edm::ESHandle klh; - //std::cout << "got eshandle" << std::endl; - //iSetup.get().get(klh); - //std::cout << "got context" << std::endl; - //cond::persistency::KeyList const& kl = *klh.product(); cond::persistency::KeyList const* kp = &iSetup.getData(perskeylistToken_); edm::LogInfo("DTKeyedConfigDBDump") << "now load and get" << std::endl; auto pkc = kp->getUsingKey(999999999); diff --git a/CondTools/DT/plugins/DTKeyedConfigDBInit.h b/CondTools/DT/plugins/DTKeyedConfigDBInit.h index 3ba081d05ce4c..acd8c9a26af5b 100644 --- a/CondTools/DT/plugins/DTKeyedConfigDBInit.h +++ b/CondTools/DT/plugins/DTKeyedConfigDBInit.h @@ -14,7 +14,7 @@ //---------------------- // Base Class Headers -- //---------------------- -#include "FWCore/Framework/interface/EDAnalyzer.h" +#include "FWCore/Framework/interface/one/EDAnalyzer.h" //------------------------------------ // Collaborating Class Declarations -- @@ -32,7 +32,7 @@ // -- Class Interface -- // --------------------- -class DTKeyedConfigDBInit : public edm::EDAnalyzer { +class DTKeyedConfigDBInit : public edm::one::EDAnalyzer<> { public: /** Constructor */