12#ifndef ALICEO2_EMCAL_EMCDCSPROCESSOR_H_
13#define ALICEO2_EMCAL_EMCDCSPROCESSOR_H_
55 void init(
const std::vector<DPID>& pids);
56 int process(
const gsl::span<const DPCOM> dps);
82 const std::map<std::string, std::string>& md);
91 TFType mElmbCCDBupdateRate{1000};
92 bool mVerbose =
false;
93 int mRunNumberFromGRP = -2;
95 std::unordered_map<DPID, bool> mPids;
97 std::unordered_map<DPID, std::vector<DPVAL>> mapFEEcfg;
99 bool mUpdateFEEcfg{
false};
100 bool mUpdateELMB{
false};
104 std::unique_ptr<FeeDCS> mFEECFG;
105 std::unique_ptr<EMCELMB> mELMB;
106 std::unique_ptr<ElmbData> mELMBdata;
111 void FillFeeDP(
const DPCOM& dpcom);
112 void FillElmbDP(
const DPCOM& dpcom);
119 const std::map<std::string, std::string>& md)
126 info.setObjectType(clName);
127 info.setFileName(flName);
128 info.setStartValidityTimestamp(
tf);
130 info.setMetaData(md);
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 process
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
DCS processor for EMCAL DPs.
static std::string generateFileName(const std::string &inp)
static constexpr long MONTH
CcdbObjectInfo & getccdbFeeDCSinfo()
void init(const std::vector< DPID > &pids)
void updateElmbCCDBinfo()
void setRunNumberFromGRP(int rn)
void printPDCOM(const DPCOM &dpcom)
const FeeDCS & getFeeDCSdata() const
void setElmbCCDBupdateRate(TFType tf)
void prepareCCDBobjectInfo(const T &obj, CcdbObjectInfo &info, const std::string &path, TFType tf, const std::map< std::string, std::string > &md)
const CcdbObjectInfo & getccdbFeeDCSinfo() const
const ElmbData & getELMBdata() const
const CcdbObjectInfo & getccdbELMBinfo() const
int processDP(const DPCOM &dpcom)
EMCDCSProcessor()=default
~EMCDCSProcessor()=default
int getRunNumberFromGRP()
CcdbObjectInfo & getccdbELMBinfo()
CCDB container for the DCS data in EMCAL.
CCDB container for STU DCS data in EMCAL.
CCDB container for TRU DCS data in EMCAL.
GLsizei const GLchar *const * path
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::unique_ptr< GPUReconstructionTimeframe > tf
static std::string getClassName(const T &obj)
get the class name of the object