19#ifndef ALICEO2_IOTOF_DIGITIZER_H
20#define ALICEO2_IOTOF_DIGITIZER_H
53 void setDigits(std::vector<o2::iotof::Digit>* dig) { mDigits = dig; }
61 void process(
const std::vector<o2::itsmft::Hit>* hits,
int evID,
int srcID);
82 void registerDigits(
Chip& chip, uint32_t roFrame,
double time,
int nROF,
85 void stepping(
const o2::itsmft::Hit& hit,
float**& respMatrix,
int& rowStart,
int& colStart,
int& rowSpan,
int& colSpan);
88 double smearTime(
double time)
const;
91 int energyToCharge(
float energyLoss)
const;
94 bool isEfficient()
const;
96 std::vector<o2::iotof::McLabelRef>* getExtraLabelBuffer(uint32_t roFrame)
104 while (
index >=
int(mExtraLabelBuffer.size())) {
105 mExtraLabelBuffer.emplace_back(std::make_unique<std::vector<o2::iotof::McLabelRef>>());
107 return mExtraLabelBuffer[
index].get();
110 static constexpr float sec2ns = 1e9f;
114 std::vector<o2::iotof::Chip> mChips;
115 std::deque<std::unique_ptr<std::vector<o2::iotof::McLabelRef>>> mExtraLabelBuffer;
117 std::vector<o2::iotof::Digit>* mDigits =
nullptr;
118 std::vector<o2::itsmft::ROFRecord>* mROFRecords =
nullptr;
123 bool mContinuous =
true;
127 ClassDefNV(Digitizer, 1);
Definition of the ITSMFT Hit class.
Definition of a container to keep Monte Carlo truth external to simulation objects.
Definition of the Segmentation class.
Container for similated points connected to a given TOF Chip This will be used in order to allow a mo...
Digitizer for the ALICE3 Inner/Outer TOF detector.
void setROFRecords(std::vector< o2::itsmft::ROFRecord > *rec)
void setROFRecordIR(const o2::InteractionRecord &ir)
void init()
Initialize the digitizer.
void fillOutputContainer()
Flush the output container.
void setDigits(std::vector< o2::iotof::Digit > *dig)
void process(const std::vector< o2::itsmft::Hit > *hits, int evID, int srcID)
Steer conversion of hits to digits.
bool isContinuous() const
void setEventTime(const o2::InteractionTimeRecord &irt)
Set the event time.
void setContinuous(bool v)
Set continuous readout mode.
void setMCLabels(o2::dataformats::MCTruthContainer< o2::MCCompLabel > *mclb)
void setGeometry(const o2::iotof::GeometryTGeo *gm)
GLuint GLsizei const GLchar * label
o2::InteractionRecord ir(0, 0)