14#ifndef ALICEO2_TRK_DIGITIZER_H
15#define ALICEO2_TRK_DIGITIZER_H
42 using ExtraDig = std::vector<itsmft::PreDigitLabelRef>;
45 void setDigits(std::vector<o2::itsmft::Digit>* dig) { mDigits = dig; }
55 void process(
const std::vector<itsmft::Hit>* hits,
int evID,
int srcID);
77 mEventROFrameMin = 0xffffffff;
84 void processHit(
const o2::itsmft::Hit& hit, uint32_t& maxFr,
int evID,
int srcID);
88 ExtraDig* getExtraDigBuffer(uint32_t roFrame)
90 if (mROFrameMin > roFrame) {
93 int ind = roFrame - mROFrameMin;
94 while (ind >=
int(mExtraBuff.size())) {
95 mExtraBuff.emplace_back(std::make_unique<ExtraDig>());
97 return mExtraBuff[ind].get();
100 static constexpr float sec2ns = 1e9;
105 double mCollisionTimeWrtROF{};
106 uint32_t mROFrameMin = 0;
107 uint32_t mROFrameMax = 0;
108 uint32_t mNewROFrame = 0;
110 uint32_t mEventROFrameMin = 0xffffffff;
111 uint32_t mEventROFrameMax = 0;
117 std::vector<o2::itsmft::ChipDigitsContainer> mChips;
118 std::deque<std::unique_ptr<ExtraDig>> mExtraBuff;
120 std::vector<o2::itsmft::Digit>* mDigits =
nullptr;
121 std::vector<o2::itsmft::ROFRecord>* mROFRecords =
nullptr;
126 ClassDef(Digitizer, 1);
transient container for single chip digits accumulation
Simulation parameters for the ALIPIDE chip.
Definition of the ITSMFT Hit class.
Definition of a container to keep Monte Carlo truth external to simulation objects.
Container for similated points connected to a given chip.
double getTimeOffset() const
bool isContinuous() const
float getROFrameLength() const
void setContinuous(bool v)
NoiseMap class for the ITS and MFT.
void setEventTime(const o2::InteractionTimeRecord &irt)
bool isContinuous() const
void setDigiParams(const o2::itsmft::DigiParams &par)
const o2::itsmft::DigiParams & getParams() const
void setContinuous(bool v)
uint32_t getEventROFrameMin() const
void setDigits(std::vector< o2::itsmft::Digit > *dig)
o2::itsmft::DigiParams & getParams()
void setROFRecords(std::vector< o2::itsmft::ROFRecord > *rec)
void fillOutputContainer(uint32_t maxFrame=0xffffffff)
void setDeadChannelsMap(const o2::itsmft::NoiseMap *mp)
double getEndTimeOfROFMax() const
void setMCLabels(o2::dataformats::MCTruthContainer< o2::MCCompLabel > *mclb)
const o2::itsmft::DigiParams & getDigitParams() const
void setGeometry(const o2::trk::GeometryTGeo *gm)
uint32_t getEventROFrameMax() const
void resetEventROFrames()