42 std::vector<std::array<PadLayerEvent, constants::PADS_NLAYERS>>
mPadEvents;
43 std::vector<std::array<PixelLayerEvent, constants::PIXELS_NLAYERS>>
mPixelEvent;
45 std::vector<std::vector<int>>
mFEEs;
48 RawDecoderSpec(uint32_t outputSubspec,
bool usePadData,
bool usePixelData,
bool debug) : mDebugMode(
debug), mUsePadData(usePadData), mUsePixelData(usePixelData), mOutputSubspec(outputSubspec) {}
59 void resetContainers();
63 std::array<PadLayerEvent, constants::PADS_NLAYERS> createPadLayerEvent(
const o2::focal::PadData&
data)
const;
65 void fillEventPixeHitContainer(std::vector<PixelHit>& eventHits, std::vector<PixelChipRecord>& eventChips,
const PixelLayerEvent& pixelLayer,
int layerIndex);
66 int filterIncompletePixelsEventsHBF(
HBFData&
data,
const std::vector<int>& expectFEEs);
68 bool consistencyCheckPixelFEE(
const std::unordered_map<int, int>&
counters)
const;
69 int maxCounter(
const std::unordered_map<int, int>&
counters)
const;
70 void printCounters(
const std::unordered_map<int, int>&
counters)
const;
71 void printEvents(
const std::unordered_map<
int, std::vector<int>>&
counters)
const;
72 bool checkEventsHBFConsistency(
const std::unordered_map<
int, std::vector<int>>&
counters)
const;
73 void fillPixelEventHBFCount(
const std::unordered_map<
int, std::vector<int>>&
counters);
75 bool mDebugMode =
false;
76 bool mDisplayInconsistent =
false;
77 bool mUsePadData =
true;
78 bool mUsePixelData =
true;
79 bool mFilterIncomplete =
false;
80 bool mTimeframeHasPadData =
false;
81 bool mTimeframeHasPixelData =
false;
82 uint32_t mOutputSubspec = 0;
85 std::unique_ptr<PixelMapper> mPixelMapping;
86 std::map<o2::InteractionRecord, HBFData> mHBFs;
87 std::vector<TriggerRecord> mOutputTriggerRecords;
88 std::vector<PixelHit> mOutputPixelHits;
89 std::vector<PixelChipRecord> mOutputPixelChips;
90 std::vector<PadLayerEvent> mOutputPadLayers;
93 int mNumTimeframes = 0;
95 int mNumHBFPixels = 0;
96 int mNumEventsPads = 0;
97 int mNumEventsPixels = 0;
98 int mNumInconsistencyPixelHBF = 0;
99 int mNumInconsistencyPixelEvent = 0;
100 int mNumInconsistencyPixelEventHBF = 0;
101 std::map<int, int> mNumEventsHBFPads;
102 std::map<int, int> mNumEventsHBFPixels;
103 std::map<int, int> mNumHBFperTFPads;
104 std::map<int, int> mNumHBFperTFPixels;