15#ifndef _CTP_RUNMANAGER_H_
16#define _CTP_RUNMANAGER_H_
19#include "BookkeepingApi/BkpClientFactory.h"
20#include "BookkeepingApi/BkpClient.h"
22using namespace o2::bkp::api;
27typedef std::map<uint32_t, std::array<uint32_t, 6>>
counters_t;
36 int send2BK(std::unique_ptr<BkpClient>& BKClient,
size_t ts,
bool start);
50 int loadRun(
const std::string& cfg);
52 int stopRun(uint32_t irun,
long timeStamp);
58 void setBKHost(std::string host) { mBKHost = host; };
65 std::string mBKHost =
"";
66 std::array<CTPActiveRun*, NRUNS> mActiveRuns;
67 std::array<std::uint32_t, NRUNS> mActiveRunNumbers;
68 std::array<uint32_t, CTPRunScalers::NCOUNTERS> mCounters;
69 std::map<std::string, uint32_t> mScalerName2Position;
70 std::map<uint32_t, CTPActiveRun*> mRunsLoaded;
71 std::unique_ptr<BkpClient> mBKClient;
74 int mQCWritePeriod = 3;
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
int stopRun(uint32_t irun, long timeStamp)
int setRunConfigBK(uint32_t runNumber, const std::string &cfg)
void printActiveRuns() const
int processMessage(std::string &topic, const std::string &message)
void setQCWritePeriod(int period)
int loadRun(const std::string &cfg)
void setBKHost(std::string host)
int addScalers(uint32_t irun, std::time_t time, bool start=0)
uint64_t checkOverflow(uint32_t lcnt0, uint32_t lcnt1, uint64_t lcntcor)
GLuint GLsizei const GLchar * message
std::map< uint32_t, std::array< uint32_t, 6 > > counters_t
std::map< uint32_t, std::array< uint64_t, 6 > > counters64_t
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
int send2BK(std::unique_ptr< BkpClient > &BKClient, size_t ts, bool start)