CMS 3D CMS Logo

SharedResourceNames.cc
Go to the documentation of this file.
2 
3 #include <sstream>
4 #include <atomic>
5 
14 
15 static std::atomic<unsigned int> counter;
16 
17 // See comments in header file for the purpose of this function.
19  std::stringstream ss;
20  ss << "uniqueSharedResourceName" << counter.fetch_add(1);
21  return ss.str();
22 }
counter
Definition: counter.py:1
edm::SharedResourceNames::kHerwig6
static const std::string kHerwig6
Definition: SharedResourceNames.h:31
edm::SharedResourceNames::kCLHEPRandomEngine
static const std::string kCLHEPRandomEngine
Definition: SharedResourceNames.h:25
edm::uniqueSharedResourceName
std::string uniqueSharedResourceName()
Definition: SharedResourceNames.cc:18
edm::SharedResourceNames::kPythia8
static const std::string kPythia8
Definition: SharedResourceNames.h:27
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
edm::SharedResourceNames::kPhotos
static const std::string kPhotos
Definition: SharedResourceNames.h:28
SharedResourceNames.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
counter
static std::atomic< unsigned int > counter
Definition: SharedResourceNames.cc:15
edm::SharedResourceNames::kEvtGen
static const std::string kEvtGen
Definition: SharedResourceNames.h:30
edm::SharedResourceNames::kPythia6
static const std::string kPythia6
Definition: SharedResourceNames.h:26
edm::SharedResourceNames::kGEANT
static const std::string kGEANT
Definition: SharedResourceNames.h:24
edm::SharedResourceNames::kTauola
static const std::string kTauola
Definition: SharedResourceNames.h:29