CMS 3D CMS Logo

SharedResourceNames.cc
Go to the documentation of this file.
2 
3 #include <sstream>
4 #include <atomic>
5 
14 
17 
18 static std::atomic<unsigned int> counter;
19 
20 // See comments in header file for the purpose of this function.
22  std::stringstream ss;
23  ss << "uniqueSharedResourceName" << counter.fetch_add(1);
24  return ss.str();
25 }
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::ESSharedResourceNames::kDD4Hep
static const std::string kDD4Hep
Definition: SharedResourceNames.h:38
edm::uniqueSharedResourceName
std::string uniqueSharedResourceName()
Definition: SharedResourceNames.cc:21
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:18
edm::SharedResourceNames::kEvtGen
static const std::string kEvtGen
Definition: SharedResourceNames.h:30
edm::ESSharedResourceNames::kDDGeometry
static const std::string kDDGeometry
Definition: SharedResourceNames.h:37
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