Skip to content

Commit 4d08950

Browse files
committed
Stop pretending to simulate PPS
1 parent 364bd0b commit 4d08950

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

sbndcode/CRT/CRTSimulation/CRTDetSimAlg.cxx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -435,9 +435,6 @@ namespace crt {
435435
ts1_ch1 = ts1_ch0;
436436
}
437437

438-
// Time relative to PPS: Random for now! (FIXME)
439-
uint32_t ppsTicks = CLHEP::RandFlat::shootInt(&fEngine, fParams.ClockSpeedCRT() * 1e6);
440-
441438
// Adjacent channels on a strip are numbered sequentially.
442439
//
443440
// In the AuxDetWireReadoutGeom methods, channels are identified by an
@@ -477,14 +474,18 @@ namespace crt {
477474
std::swap(sipm0ID, sipm1ID);
478475
}
479476

477+
// Note we use the time relative to the event trigger for both
478+
// T0 and T1 because we cannot simulate T0 effectively.
479+
// This will make MC/Data comparisons much easier.
480+
480481
SiPMData sipm0 = SiPMData(sipm0ID,
481482
channel0ID,
482-
ppsTicks,
483+
ts1_ch0,
483484
ts1_ch0,
484485
q0);
485486
SiPMData sipm1 = SiPMData(sipm1ID,
486487
channel1ID,
487-
ppsTicks,
488+
ts1_ch1,
488489
ts1_ch1,
489490
q1);
490491

0 commit comments

Comments
 (0)