12#ifndef O2_MCH_RAW_ENCODER_BARE_ELINK_ENCODER_MERGER_H
13#define O2_MCH_RAW_ENCODER_BARE_ELINK_ENCODER_MERGER_H
23template <
typename CHARGESUM>
26 auto len = elinks[0].len();
27 for (
auto i = 1;
i < elinks.size();
i++) {
35template <
typename CHARGESUM>
41 auto e = std::max_element(elinks.begin(), elinks.end(),
43 return a.len() < b.len();
47 for (
auto& elink : elinks) {
48 elink.fillWithSync(
e->len());
52template <
typename CHARGESUM>
56 for (
int j = jstart;
j < jend;
j += 2) {
57 for (
int k = 0; k <= 1; k++) {
58 bool v = elinks[
j / 2].get(
i + 1 - k);
70template <
typename CHARGESUM>
73 int n = elinks[0].len();
75 for (
int i = 0;
i <
n - 1;
i += 2) {
83template <
typename CHARGESUM>
87 std::vector<uint64_t>& b64)
unsigned short int uint16_t
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 First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char Directory with events to Events directory is and not inside events Show standalone event Run event generator maximum time bin of continuous for triggered for automatic continuous for automatic continuous triggered uint64_t
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 First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char e
GLboolean GLboolean GLboolean b
GLenum GLenum GLsizei len
GLboolean GLboolean GLboolean GLboolean a
GLubyte GLubyte GLubyte GLubyte w
void elink2gbt(gsl::span< ElinkEncoder< BareFormat, CHARGESUM > > elinks, std::vector< uint64_t > &b64)
bool areElinksAligned(gsl::span< ElinkEncoder< BareFormat, CHARGESUM > > elinks)
uint64_t aggregate(gsl::span< ElinkEncoder< BareFormat, CHARGESUM > > elinks, int jstart, int jend, int i)
void align(gsl::span< ElinkEncoder< BareFormat, CHARGESUM > > elinks)