12#ifndef DETECTOR_MFTDCSPROCESSOR_H_
13#define DETECTOR_MFTDCSPROCESSOR_H_
17#include <unordered_map>
55 lastValue = std::make_pair(0, -999999999);
56 meanValue = std::make_pair(0, -999999999);
58 midValue = std::make_pair(0, -999999999);
59 maxChange = std::make_pair(0, -999999999);
60 summary = std::make_pair(0, -999999999);
83 void init(
const std::vector<DPID>& pids);
85 int process(
const gsl::span<const DPCOM> dps);
93 const std::unordered_map<DPID, MFTDCSinfo>&
getMFTDPsInfo()
const {
return mMFTDCS; }
103 mThresholdBackBiasCurrent = thre;
107 mThresholdDigitalCurrent = thre;
111 mThresholdAnalogCurrent = thre;
115 mThresholdBackBiasVoltage = thre;
119 mThresholdRULV = thre;
123 mDpsdoublesmap.clear();
128 std::unordered_map<DPID, MFTDCSinfo> mMFTDCS;
129 std::unordered_map<DPID, bool> mPids;
131 std::unordered_map<DPID, std::vector<DPVAL>> mDpsdoublesmap;
137 bool mStartTFset =
false;
139 bool mVerbose =
false;
141 bool mSendToCCDB =
false;
143 double mThresholdAnalogCurrent;
144 double mThresholdBackBiasCurrent;
145 double mThresholdDigitalCurrent;
146 double mThresholdBackBiasVoltage;
147 double mThresholdRULV;
160 info.setObjectType(clName);
161 info.setFileName(flName);
162 info.setStartValidityTimestamp(
tf);
164 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
static std::string generateFileName(const std::string &inp)
static constexpr long MONTH
void setThreAnalogCurrent(float thre)
void prepareCCDBobjectInfo(T &obj, CcdbObjectInfo &info, const std::string &path, TFType tf, const std::map< std::string, std::string > &md)
std::deque< double > DQDoubles
int processDP(const DPCOM &dpcom)
void setThreRULV(float thre)
MFTDCSProcessor()=default
void setThreDigitCurrent(float thre)
CcdbObjectInfo & getccdbDPsInfo()
void setThreBackBiasVoltage(float thre)
void setThreBackBiasCurrent(float thre)
const std::unordered_map< DPID, MFTDCSinfo > & getMFTDPsInfo() const
const CcdbObjectInfo & getccdbDPsInfo() const
void init(const std::vector< DPID > &pids)
~MFTDCSProcessor()=default
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
std::pair< O2LongUInt, double > summary
std::pair< O2LongUInt, double > stddevValue
std::pair< O2LongUInt, double > meanValue
std::pair< O2LongUInt, double > maxChange
std::pair< O2LongUInt, double > midValue
ClassDefNV(MFTDCSinfo, 2)
std::pair< O2LongUInt, double > lastValue
std::pair< O2LongUInt, double > firstValue
static std::string getClassName(const T &obj)
get the class name of the object