#include <TRandomAdaptor.h>
|
void | Grumble (std::string const &errortext) const |
|
Definition at line 13 of file TRandomAdaptor.h.
◆ TRandom3Ptr
◆ TRandomAdaptor() [1/4]
edm::TRandomAdaptor::TRandomAdaptor |
( |
| ) |
|
◆ TRandomAdaptor() [2/4]
edm::TRandomAdaptor::TRandomAdaptor |
( |
long |
seed | ) |
|
◆ TRandomAdaptor() [3/4]
edm::TRandomAdaptor::TRandomAdaptor |
( |
int |
rowIndex, |
|
|
int |
colIndex |
|
) |
| |
◆ TRandomAdaptor() [4/4]
edm::TRandomAdaptor::TRandomAdaptor |
( |
std::istream & |
is | ) |
|
◆ ~TRandomAdaptor()
edm::TRandomAdaptor::~TRandomAdaptor |
( |
| ) |
|
|
override |
◆ beginTag()
std::string edm::TRandomAdaptor::beginTag |
( |
| ) |
|
|
inline |
◆ engineName()
static std::string edm::TRandomAdaptor::engineName |
( |
| ) |
|
|
inlinestatic |
◆ flat()
double edm::TRandomAdaptor::flat |
( |
void |
| ) |
|
|
inlineoverride |
◆ flatArray()
void edm::TRandomAdaptor::flatArray |
( |
int const |
size, |
|
|
double * |
vect |
|
) |
| |
|
inlineoverride |
◆ get() [1/2]
std::istream & edm::TRandomAdaptor::get |
( |
std::istream & |
is | ) |
|
|
override |
◆ get() [2/2]
bool edm::TRandomAdaptor::get |
( |
std::vector< unsigned long > const & |
v | ) |
|
|
override |
Definition at line 94 of file TRandomAdaptor.cc.
97 if (
v[0] != CLHEP::engineIDulong<TRandomAdaptor>())
99 int32_t numItems =
v.size() - 1;
101 int32_t itemSize =
sizeof(uint32_t);
102 TBufferFile
buffer(TBuffer::kRead, numItems * itemSize + 1024);
103 char* bufferPtr =
buffer.Buffer();
104 for (int32_t
i = 0;
i < numItems; ++
i) {
105 *reinterpret_cast<uint32_t*>(bufferPtr +
i * itemSize) = static_cast<uint32_t>(
v[
i + 1] & 0xffffffff);
References edmScanValgrind::buffer, mps_fire::i, trand_, and findQualityFiles::v.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), and submitPVValidationJobs.BetterConfigParser::getResultingSection().
◆ getRootEngine()
TRandom3* edm::TRandomAdaptor::getRootEngine |
( |
| ) |
|
|
inline |
◆ getState() [1/2]
std::istream & edm::TRandomAdaptor::getState |
( |
std::istream & |
is | ) |
|
|
override |
◆ getState() [2/2]
bool edm::TRandomAdaptor::getState |
( |
std::vector< unsigned long > const & |
v | ) |
|
|
inlineoverride |
◆ Grumble()
void edm::TRandomAdaptor::Grumble |
( |
std::string const & |
errortext | ) |
const |
|
private |
◆ name()
std::string edm::TRandomAdaptor::name |
( |
void |
| ) |
const |
|
inlineoverride |
◆ operator float()
edm::TRandomAdaptor::operator float |
( |
| ) |
|
|
inlineoverride |
◆ operator unsigned int()
edm::TRandomAdaptor::operator unsigned int |
( |
| ) |
|
|
inlineoverride |
◆ put() [1/2]
std::vector< unsigned long > edm::TRandomAdaptor::put |
( |
| ) |
const |
|
override |
Definition at line 34 of file TRandomAdaptor.cc.
35 std::vector<unsigned long>
v;
37 int32_t itemSize =
sizeof(uint32_t);
38 TBufferFile
buffer(TBuffer::kWrite, 2048 * itemSize);
41 char* bufferPtr =
buffer.Buffer();
42 int32_t numItems = (
buffer.Length() + itemSize - 1) / itemSize;
43 v.reserve(numItems + 1);
44 v.push_back(CLHEP::engineIDulong<TRandomAdaptor>());
45 for (
int i = 0;
i < numItems; ++
i) {
54 uint32_t value32 = *reinterpret_cast<uint32_t*>(bufferPtr +
i * itemSize);
56 if (
i == numItems - 1) {
57 int nBytes =
buffer.Length() % itemSize;
67 v.push_back(static_cast<unsigned long>(value32));
References edmScanValgrind::buffer, mps_fire::i, trand_, and findQualityFiles::v.
◆ put() [2/2]
std::ostream & edm::TRandomAdaptor::put |
( |
std::ostream & |
os | ) |
const |
|
override |
◆ restoreStatus()
void edm::TRandomAdaptor::restoreStatus |
( |
char const |
filename[] = "TRandom.conf" | ) |
|
|
inlineoverride |
◆ saveStatus()
void edm::TRandomAdaptor::saveStatus |
( |
char const |
filename[] = "TRandom.conf" | ) |
const |
|
inlineoverride |
◆ setSeed()
void edm::TRandomAdaptor::setSeed |
( |
long |
seed, |
|
|
int |
|
|
) |
| |
|
override |
◆ setSeeds()
void edm::TRandomAdaptor::setSeeds |
( |
long const * |
seeds, |
|
|
int |
|
|
) |
| |
|
override |
◆ showStatus()
void edm::TRandomAdaptor::showStatus |
( |
| ) |
const |
|
inlineoverride |
◆ trand_
Definition at line 71 of file TRandomAdaptor.h.
Referenced by beginTag(), flat(), flatArray(), get(), getRootEngine(), name(), operator float(), operator unsigned int(), put(), restoreStatus(), saveStatus(), setSeed(), setSeeds(), showStatus(), and TRandomAdaptor().