14#ifndef O2_ITSMFT_DEADMAP_BUILDER_
15#define O2_ITSMFT_DEADMAP_BUILDER_
30#include <boost/asio/ip/host_name.hpp>
42#include <fairmq/Device.h>
82 std::string mSelfName;
85 bool mDoLocalOutput =
false;
86 bool mSkipStaticMap =
false;
87 bool mNoGroupITSLanes =
false;
92 uint mStepCounter = 0;
97 std::string mCCDBUrl =
"";
98 std::string mObjectName;
99 std::string mLocalOutputDir;
101 std::string MAP_VERSION =
"4";
103 std::vector<bool> mStaticChipStatus{};
105 std::vector<uint16_t> mDeadMapTF{};
108 unsigned long mFirstOrbitTF = 0x0;
109 unsigned long mFirstOrbitRun = 0x0;
111 std::string mDataSource =
"chipsstatus";
113 int mTFSampling = 350;
116 std::unordered_set<long> mSampledTFs{};
117 std::deque<long> mSampledHistory{};
118 int mTFSamplingTolerance = 20;
119 int mSampledSlidingWindowSize = 1000;
123 void finalizeOutput();
128 std::vector<uint16_t> getChipIDsOnSameCable(
uint16_t);
135 bool isEnded =
false;
138 bool mDoStuckPixels =
false;
139 std::string mStuckPixelFileName =
"";
142 Long64_t mErrOrbit = 0;
143 UShort_t mErrChipID = 0;
144 UShort_t mErrRow = 0;
145 UShort_t mErrCol = 0;
Utils and constants for calibration and related workflows.
unsigned short int uint16_t
Helper for geometry and GRP related CCDB requests.
Definition of the Alpide pixel reader for raw data processing.
CCDB-serializable container for stuck (repeating) pixel error records.
Definition of the ITSMFT time-dependend dead map.
static constexpr int getNChips()
number of chips per barrel
void endOfStream(EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
void stop() final
This is invoked on stop.
void init(InitContext &ic) final
~ITSMFTDeadMapBuilder() override
void run(ProcessingContext &pc) final
CCDB payload object: a run-level collection of stuck-pixel records.
Defining ITS Vertex explicitly as messageable.
o2::framework::DataProcessorSpec getITSMFTDeadMapBuilderSpec(std::string datasource, bool doMFT)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...