16#ifndef ALICEO2_TPC_Digitizer_H_
17#define ALICEO2_TPC_Digitizer_H_
34class ElectronTransport;
35class GEMAmplification;
76 void process(
const std::vector<o2::tpc::HitGroup>& hits,
const int eventID,
77 const int sourceID = 0);
86 std::vector<o2::tpc::CommonMode>& commonModeOutput,
bool finalFlush =
false);
93 mDigitContainer.
reset();
166 void initSectorSeeding();
172 std::unique_ptr<ElectronTransport> mElectronTransport;
173 std::unique_ptr<GEMAmplification> mGEMAmplification;
174 std::unique_ptr<SAMPAProcessing> mSAMPAProcessing;
176 ULong64_t mSeedingTimeframe = 0;
177 bool mUseSectorSeeding =
false;
178 bool mFlushDebugStreamer =
true;
181 std::vector<float> mSignalArray;
182 std::unique_ptr<SC> mSpaceChargeOwned;
183 SC* mSpaceCharge =
nullptr;
184 SC* mSpaceChargeDer =
nullptr;
186 double mEventTime = 0.f;
187 double mOutputDigitTimeOffset = 0;
189 float mTDriftOffset = 0;
191 bool mUseSCDistortions =
false;
192 int mDistortionScaleType = 0;
193 float mLumiScaleFactor = 0;
194 bool mUseScaledDistortions =
false;
Definition of the Digit Container.
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
Timeframe settings Average distance in cm of events merged into timeframe
std::vector< o2::MCCompLabel > labels
void reset()
Reset the container.
void setSeedingTimeframe(ULong64_t timeframe)
Set the timeframe identifier that enters the sector seeding.
void setMeanLumiDistortions(float meanLumi)
void setUseSCDistortions(const SCDistortionType &distortionType, const TH3 *hisInitialSCDensity)
void setMeanLumiDistortionsDerivative(float meanLumi)
void setDistortionScaleType(int distortionScaleType)
void flush(std::vector< o2::tpc::Digit > &digits, o2::dataformats::MCTruthContainer< o2::MCCompLabel > &labels, std::vector< o2::tpc::CommonMode > &commonModeOutput, bool finalFlush=false)
void setUseSectorSeeding(ULong64_t seed)
void setSector(Sector sec)
void setSCDistortionsFrom(const Digitizer &other)
Use the distortion maps and scaling of another digitizer, which keeps ownership of the maps.
void setOutputDigitTimeOffset(double offset)
Set mOutputDigitTimeOffset.
Digitizer(const Digitizer &)=delete
void setSCDistortionsDerivative(SC *spaceCharge)
void setLumiScaleFactor()
Digitizer & operator=(const Digitizer &)=delete
int getDistortionScaleType() const
void setStartTime(double time)
void recalculateDistortions()
in case of scaled distortions, the distortions can be recalculated to ensure consistent distortions a...
void setFlushDebugStreamer(bool flush)
Whether flush() also flushes the process-wide debug streamer.
void setContinuousReadout(bool isContinuous)
void setEventTime(double time)
void setSectorSeedingFrom(Digitizer &other)
Use copies of the sector-seeding random rings of another digitizer, which fills them if needed.
Digitizer()
Default constructor.
void setTDriftOffset(float t)
bool isContinuousReadout()
uint8_t int statusCode int
SCDistortionType
Enumerator for setting the space-charge distortion mode.
std::vector< Digit > DigitContainer
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
VectorOfTObjectPtrs other
std::vector< Digit > digits