#include <TRandomAdaptor.h>
|
void | Grumble (std::string const &errortext) const |
|
Definition at line 13 of file TRandomAdaptor.h.
edm::TRandomAdaptor::TRandomAdaptor |
( |
| ) |
|
edm::TRandomAdaptor::TRandomAdaptor |
( |
long |
seed | ) |
|
edm::TRandomAdaptor::TRandomAdaptor |
( |
int |
rowIndex, |
|
|
int |
colIndex |
|
) |
| |
edm::TRandomAdaptor::TRandomAdaptor |
( |
std::istream & |
is | ) |
|
edm::TRandomAdaptor::~TRandomAdaptor |
( |
| ) |
|
|
override |
std::string edm::TRandomAdaptor::beginTag |
( |
| ) |
|
|
inline |
static std::string edm::TRandomAdaptor::engineName |
( |
| ) |
|
|
inlinestatic |
double edm::TRandomAdaptor::flat |
( |
void |
| ) |
|
|
inlineoverride |
void edm::TRandomAdaptor::flatArray |
( |
int const |
size, |
|
|
double * |
vect |
|
) |
| |
|
inlineoverride |
std::istream & edm::TRandomAdaptor::get |
( |
std::istream & |
is | ) |
|
|
override |
bool edm::TRandomAdaptor::get |
( |
std::vector< unsigned long > const & |
v | ) |
|
|
override |
TRandom3* edm::TRandomAdaptor::getRootEngine |
( |
| ) |
|
|
inline |
std::istream & edm::TRandomAdaptor::getState |
( |
std::istream & |
is | ) |
|
|
override |
bool edm::TRandomAdaptor::getState |
( |
std::vector< unsigned long > const & |
v | ) |
|
|
inlineoverride |
void edm::TRandomAdaptor::Grumble |
( |
std::string const & |
errortext | ) |
const |
|
private |
std::string edm::TRandomAdaptor::name |
( |
void |
| ) |
const |
|
inlineoverride |
edm::TRandomAdaptor::operator float |
( |
| ) |
|
|
inlineoverride |
edm::TRandomAdaptor::operator unsigned int |
( |
| ) |
|
|
inlineoverride |
std::ostream & edm::TRandomAdaptor::put |
( |
std::ostream & |
os | ) |
const |
|
override |
std::vector< unsigned long > edm::TRandomAdaptor::put |
( |
| ) |
const |
|
override |
Definition at line 34 of file TRandomAdaptor.cc.
References edmScanValgrind::buffer, mps_fire::i, trand_, and findQualityFiles::v.
Referenced by engineName(), and operator unsigned int().
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));
void edm::TRandomAdaptor::restoreStatus |
( |
char const |
filename[] = "TRandom.conf" | ) |
|
|
inlineoverride |
void edm::TRandomAdaptor::saveStatus |
( |
char const |
filename[] = "TRandom.conf" | ) |
const |
|
inlineoverride |
void edm::TRandomAdaptor::setSeed |
( |
long |
seed, |
|
|
int |
|
|
) |
| |
|
override |
void edm::TRandomAdaptor::setSeeds |
( |
long const * |
seeds, |
|
|
int |
|
|
) |
| |
|
override |
void edm::TRandomAdaptor::showStatus |
( |
| ) |
const |
|
inlineoverride |
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().