From 4d08950ae3cb70f1036799ceefa8200d992bd69f Mon Sep 17 00:00:00 2001 From: Henry Lay Date: Fri, 28 Feb 2025 14:36:43 -0600 Subject: [PATCH] Stop pretending to simulate PPS --- sbndcode/CRT/CRTSimulation/CRTDetSimAlg.cxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sbndcode/CRT/CRTSimulation/CRTDetSimAlg.cxx b/sbndcode/CRT/CRTSimulation/CRTDetSimAlg.cxx index 1ee6fe122..017500980 100644 --- a/sbndcode/CRT/CRTSimulation/CRTDetSimAlg.cxx +++ b/sbndcode/CRT/CRTSimulation/CRTDetSimAlg.cxx @@ -435,9 +435,6 @@ namespace crt { ts1_ch1 = ts1_ch0; } - // Time relative to PPS: Random for now! (FIXME) - uint32_t ppsTicks = CLHEP::RandFlat::shootInt(&fEngine, fParams.ClockSpeedCRT() * 1e6); - // Adjacent channels on a strip are numbered sequentially. // // In the AuxDetWireReadoutGeom methods, channels are identified by an @@ -477,14 +474,18 @@ namespace crt { std::swap(sipm0ID, sipm1ID); } + // Note we use the time relative to the event trigger for both + // T0 and T1 because we cannot simulate T0 effectively. + // This will make MC/Data comparisons much easier. + SiPMData sipm0 = SiPMData(sipm0ID, channel0ID, - ppsTicks, + ts1_ch0, ts1_ch0, q0); SiPMData sipm1 = SiPMData(sipm1ID, channel1ID, - ppsTicks, + ts1_ch1, ts1_ch1, q1);