Skip to content

Commit

Permalink
make modules thread safe
Browse files Browse the repository at this point in the history
  • Loading branch information
sroychow committed Sep 13, 2021
1 parent 8ecff49 commit 690103a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 2 additions & 7 deletions CondTools/DT/plugins/DTKeyedConfigDBDump.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//----------------------
// Base Class Headers --
//----------------------
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
//------------------------------------
// Collaborating Class Declarations --
//------------------------------------
Expand All @@ -29,7 +29,7 @@
//-----------------------
// This Class' Header --
//-----------------------
class DTKeyedConfigDBDump : public edm::EDAnalyzer {
class DTKeyedConfigDBDump : public edm::one::EDAnalyzer<> {
public:
/** Constructor
*/
Expand Down Expand Up @@ -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<cond::persistency::KeyList> klh;
//std::cout << "got eshandle" << std::endl;
//iSetup.get<DTKeyedConfigListRcd>().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<DTKeyedConfig>(999999999);
Expand Down
4 changes: 2 additions & 2 deletions CondTools/DT/plugins/DTKeyedConfigDBInit.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
//----------------------
// Base Class Headers --
//----------------------
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"

//------------------------------------
// Collaborating Class Declarations --
Expand All @@ -32,7 +32,7 @@
// -- Class Interface --
// ---------------------

class DTKeyedConfigDBInit : public edm::EDAnalyzer {
class DTKeyedConfigDBInit : public edm::one::EDAnalyzer<> {
public:
/** Constructor
*/
Expand Down

0 comments on commit 690103a

Please sign in to comment.