CMS 3D CMS Logo

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