32 std::vector<std::pair<uint64_t, double>>
values;
33 for (
auto& dp : dpMap) {
34 if (alias == dp.first.get_alias()) {
35 for (
auto& dpVal : dp.second) {
36 converter.raw_data = dpVal.payload_pt1;
37 values.emplace_back(dpVal.get_epoch_time(), converter.value);
46 double num = 0., den = 0.;
47 for (
size_t ival = 1; ival <
values.size(); ++ival) {
48 double delta =
values[ival].first -
values[ival - 1].first;
52 return (den > 0.) ?
num / den :
num;
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
void setHV(int deId, double hv)
Sets the HV for detection element.
GLsizei const GLfloat * value
GLenum GLsizei GLsizei GLint * values
constexpr int NDetectionElements
Number of RPCs.
ChamberHV createDefaultChamberHV()
Creates the default chamber voltages.
double getAverage(std::vector< std::pair< uint64_t, double > > &values)
std::vector< std::pair< uint64_t, double > > getValues(const std::unordered_map< o2::dcs::DataPointIdentifier, std::vector< o2::dcs::DataPointValue > > &dpMap, std::string alias)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...