#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 |
( |
| ) |
|
|
virtual |
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 | ) |
|
|
overridevirtual |
bool edm::TRandomAdaptor::get |
( |
std::vector< unsigned long > const & |
v | ) |
|
|
override |
TRandom3* edm::TRandomAdaptor::getRootEngine |
( |
| ) |
|
|
inline |
std::istream & edm::TRandomAdaptor::getState |
( |
std::istream & |
is | ) |
|
|
overridevirtual |
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 |
|
overridevirtual |
std::vector< unsigned long > edm::TRandomAdaptor::put |
( |
| ) |
const |
|
overridevirtual |
Definition at line 39 of file TRandomAdaptor.cc.
References mps_fire::i, trand_, and findQualityFiles::v.
Referenced by engineName(), and operator unsigned int().
40 std::vector<unsigned long>
v;
42 int32_t itemSize =
sizeof(uint32_t);
43 TBufferFile buffer(TBuffer::kWrite, 2048 * itemSize);
46 char* bufferPtr = buffer.Buffer();
47 int32_t numItems = (buffer.Length() + itemSize - 1) / itemSize;
48 v.reserve(numItems + 1);
49 v.push_back(CLHEP::engineIDulong<TRandomAdaptor>());
50 for(
int i = 0;
i < numItems; ++
i) {
60 uint32_t value32 = *
reinterpret_cast<uint32_t*
>(bufferPtr +
i * itemSize);
62 if(
i == numItems - 1) {
63 int nBytes = buffer.Length() % itemSize;
64 if(nBytes == 1) value32 &= 0xffu;
65 else if(nBytes == 2) value32 &= 0xffffu;
66 else if(nBytes == 3) value32 &= 0xffffffu;
70 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 73 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().