29 std::streambuf* backing =
nullptr)
33 o2::framework::internal::SHA1Init(&mSHA1);
40 unsigned char digest[20];
41 o2::framework::internal::SHA1Final(digest, ©);
43 static constexpr char hex[] =
"0123456789ABCDEF";
47 for (
unsigned char byte : digest) {
49 result += hex[
byte & 0x0f];
57 std::streamsize
size)
override
75 if (traits_type::eq_int_type(ch, traits_type::eof()))
76 return traits_type::not_eof(ch);
78 const char c = traits_type::to_char_type(ch);
81 const auto result = mBacking->sputc(
c);
83 if (traits_type::eq_int_type(
result,
84 traits_type::eof())) {
85 return traits_type::eof();
98 s = mBacking->pubsync();
104 std::streambuf* mBacking =
nullptr;
106 bool mDoHash =
false;
108 void updateHash(
const char*
data,
size_t size)
111 o2::framework::internal::SHA1Update(&mSHA1,
reinterpret_cast<const unsigned char*
>(
data),
size);
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error s
std::streamsize xsputn(const char *data, std::streamsize size) override
int_type overflow(int_type ch) override
HashStreamBuf(bool doHash, std::streambuf *backing=nullptr)