Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ class Digitizer
bool mContinuous = true; ///< continuous readout mode

// Digitization parameters
float mChargeThreshold = 100.f; ///< charge threshold for digit creation (electrons)
float mTimeResolution = 0.020f; ///< time resolution sigma in ns (20 ps default)
float mEfficiency = 0.98f; ///< detection efficiency
float mEnergyToCharge = 3.6e-9f; ///< energy loss to electrons conversion (3.6 eV per e-h pair in Si)
float mChargeThreshold = 100.f; ///< charge threshold for digit creation (electrons)
float mTimeResolution = 0.020f; ///< time resolution sigma in ns (20 ps default)
float mEfficiency = 0.98f; ///< detection efficiency
float mEnergyToCharge = 3.6e-9f; ///< energy loss to electrons conversion (3.6 eV per e-h pair in Si)
};
} // namespace o2::iotof

Expand Down
12 changes: 6 additions & 6 deletions Detectors/Upgrades/ALICE3/IOTOF/simulation/src/Digitizer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,16 @@ void Digitizer::processHit(const o2::itsmft::Hit& hit, int evID, int srcID)

// Get hit time and apply smearing
// Hit time is in seconds, convert to ns and add event time
double hitTime = hit.GetTime() * sec2ns; // convert to ns
double eventTimeNS = mEventTime.getTimeNS(); // event time since orbit 0
double absoluteTime = hitTime + eventTimeNS; // absolute time
double smearedTime = smearTime(absoluteTime); // apply detector resolution
double hitTime = hit.GetTime() * sec2ns; // convert to ns
double eventTimeNS = mEventTime.getTimeNS(); // event time since orbit 0
double absoluteTime = hitTime + eventTimeNS; // absolute time
double smearedTime = smearTime(absoluteTime); // apply detector resolution

// For now, use simple row/col mapping from detector ID
// TODO: Implement proper segmentation when geometry is finalized
uint16_t chipIndex = static_cast<uint16_t>(detID);
uint16_t row = 0; // Will be determined from hit position
uint16_t col = 0; // Will be determined from hit position
uint16_t row = 0; // Will be determined from hit position
uint16_t col = 0; // Will be determined from hit position

// Create the digit with time information
int digID = mDigits->size();
Expand Down