16#ifndef O2_MID_DIGITIZER_H
17#define O2_MID_DIGITIZER_H
49 void setSrcID(
int sourceID) { mSrcID = sourceID; }
64 void setSeed(
unsigned int seed) { mGenerator.seed(seed); }
68 bool addBPStrips(
double xPos,
double yPos,
int deId,
double prob,
double xOffset);
70 const std::array<double, 2>& initialDist,
double xOffset = 0.);
71 bool hitToDigits(
const Hit& hit);
72 bool getLabelLimits(
int cathode,
const ColumnData&
col,
int& firstStrip,
int& lastStrip)
const;
77 std::default_random_engine mGenerator;
78 std::uniform_real_distribution<double> mRandom;
79 ChamberResponse mResponse;
80 ChamberEfficiencyResponse mEfficiencyResponse;
82 GeometryTransformer mTransformer;
83 std::vector<ColumnData> mDigits;
Chamber efficiency counters.
MID RPC effciency response.
Strip pattern (aka digits)
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.
Checks validity of hardware address (HW) and transform it to digit AbsId index.
void setFromCounters(const std::vector< ChEffCounter > &counters)
Sets the chamber efficiency from the counters.
ChamberResponse & getChamberResponse()
Gets the chamber response.
void setChamberResponse(const ChamberResponse &chamberResponse)
Sets the chamber response.
void setChamberEfficiency(const std::vector< ChEffCounter > &counters)
Sets the chamber efficiency.
void setSeed(unsigned int seed)
Sets the seed.
void setEventID(int entryID)
Sets the event ID.
void setSrcID(int sourceID)
Sets the source ID.
void setGeometryTransformer(const GeometryTransformer &transformer)
Sets the geometry transformer.
virtual ~Digitizer()=default
GLint GLint GLsizei GLuint * counters
Digitizer createDefaultDigitizer()
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Column data structure for MID.
Indexes required to define a strip in the detection element.