#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 |
| ) |
|
|
inline |
void edm::TRandomAdaptor::flatArray |
( |
int const |
size, |
|
|
double * |
vect |
|
) |
| |
|
inline |
std::istream & edm::TRandomAdaptor::get |
( |
std::istream & |
is | ) |
|
|
virtual |
bool edm::TRandomAdaptor::get |
( |
std::vector< unsigned long > const & |
v | ) |
|
TRandom3* edm::TRandomAdaptor::getRootEngine |
( |
| ) |
|
|
inline |
std::istream & edm::TRandomAdaptor::getState |
( |
std::istream & |
is | ) |
|
|
virtual |
bool edm::TRandomAdaptor::getState |
( |
std::vector< unsigned long > const & |
v | ) |
|
|
inline |
void edm::TRandomAdaptor::Grumble |
( |
std::string const & |
errortext | ) |
const |
|
private |
std::string edm::TRandomAdaptor::name |
( |
void |
| ) |
const |
|
inline |
edm::TRandomAdaptor::operator float |
( |
| ) |
|
|
inline |
edm::TRandomAdaptor::operator unsigned int |
( |
| ) |
|
|
inline |
std::ostream & edm::TRandomAdaptor::put |
( |
std::ostream & |
os | ) |
const |
|
virtual |
std::vector< unsigned long > edm::TRandomAdaptor::put |
( |
| ) |
const |
Definition at line 39 of file TRandomAdaptor.cc.
References i, trand_, and findQualityFiles::v.
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" | ) |
|
|
inline |
void edm::TRandomAdaptor::saveStatus |
( |
char const |
filename[] = "TRandom.conf" | ) |
const |
|
inline |
void edm::TRandomAdaptor::setSeed |
( |
long |
seed, |
|
|
int |
|
|
) |
| |
void edm::TRandomAdaptor::setSeeds |
( |
long const * |
seeds, |
|
|
int |
|
|
) |
| |
void edm::TRandomAdaptor::showStatus |
( |
| ) |
const |
|
inline |
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().