19#ifndef ALICEO2_IOTOF_DIGITIZER_H
20#define ALICEO2_IOTOF_DIGITIZER_H
54 void setDigits(std::vector<o2::iotof::Digit>* dig) { mDigits = dig; }
62 void process(
const std::vector<o2::itsmft::Hit>* hits,
int evID,
int srcID);
92 void stepping(
const o2::itsmft::Hit& hit,
float**& respMatrix,
float**& avgHitLocalX,
float**& avgHitLocalZ,
int& rowStart,
int& colStart,
int& rowSpan,
int& colSpan);
95 double smearTime(
double time,
const float x,
const float z)
const;
98 int energyToCharge(
float energyLoss)
const;
103 bool isEfficient(
const float x,
const float z)
const;
105 std::vector<o2::iotof::McLabelRef>* getExtraLabelBuffer(
uint32_t roFrame)
113 while (
index >=
int(mExtraLabelBuffer.size())) {
114 mExtraLabelBuffer.emplace_back(std::make_unique<std::vector<o2::iotof::McLabelRef>>());
116 return mExtraLabelBuffer[
index].get();
119 static constexpr float ps2ns = 1e-3f;
120 static constexpr float sec2ns = 1e9f;
121 static constexpr float cm2um = 1e4f;
124 TH2D* mEfficiencyMap =
nullptr;
125 TH2D* mResolutionMap =
nullptr;
126 TH2D* mScaledResolutionMap =
nullptr;
127 TH2D* mTimeOfArrivalMap =
nullptr;
129 std::vector<o2::iotof::Chip> mChips;
130 std::deque<std::unique_ptr<std::vector<o2::iotof::McLabelRef>>> mExtraLabelBuffer;
132 std::vector<o2::iotof::Digit>* mDigits =
nullptr;
133 std::vector<o2::itsmft::ROFRecord>* mROFRecords =
nullptr;
138 bool mContinuous =
true;
142 ClassDefNV(Digitizer, 1);
Definition of the ITSMFT Hit class.
unsigned short int uint16_t
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
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 prepareScaledResolutionMap()
void loadResolutionMap(TH2D *map)
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 loadTimeOfArrivalMap(TH2D *map)
void setDigits(std::vector< o2::iotof::Digit > *dig)
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)
void loadEfficiencyMap(TH2D *map)
Segmentation and response for pixels in inner and outer TOF of the ALICE 3 apparatus.
GLuint GLsizei const GLchar * label
GLdouble GLdouble GLdouble z
o2::InteractionRecord ir(0, 0)