FWCore
Concurrency
src
SharedResourceNames.cc
Go to the documentation of this file.
1
#include "
FWCore/Concurrency/interface/SharedResourceNames.h
"
2
3
#include <sstream>
4
#include <atomic>
5
6
const
std::string
edm::SharedResourceNames::kGEANT
=
"GEANT"
;
7
const
std::string
edm::SharedResourceNames::kCLHEPRandomEngine
=
"CLHEPRandomEngine"
;
8
const
std::string
edm::SharedResourceNames::kPythia6
=
"Pythia6"
;
9
const
std::string
edm::SharedResourceNames::kPythia8
=
"Pythia8"
;
10
const
std::string
edm::SharedResourceNames::kPhotos
=
"Photos"
;
11
const
std::string
edm::SharedResourceNames::kTauola
=
"Tauola"
;
12
const
std::string
edm::SharedResourceNames::kEvtGen
=
"EvtGen"
;
13
const
std::string
edm::SharedResourceNames::kHerwig6
=
"Herwig6"
;
14
15
static
std::atomic<unsigned int>
counter
;
16
17
// See comments in header file for the purpose of this function.
18
std::string
edm::uniqueSharedResourceName
() {
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
Generated for CMSSW Reference Manual by
1.8.16