Open cmantill opened 3 years ago
The timing of the different pulses (and how they are digitized) is intimately connected to how the HgcrocEmulator handles timing. The current version of the emulator on ldmx-sw/trunk is a good first pass, but it has several flaws highlighted in https://github.com/LDMX-Software/ldmx-sw/issues/946 .
I intentionally wanted to separate the subsystem-specific stuff (steps 1 through 5 above) and the shared stuff (the digitization done by the chip step 6). The steps above won't really change as I improve the emulator, but you probably won't get very realistic (or even helpful) digitized outputs until after I update the emulator to effectively handle pulses separated by a good amount of time. This is complicated by the fact that if a bar has multiple hits in the HCal, they are probably near in space and time, so these bugs would only be seen rarely in simulation. For this reason, I would encourage you to add to your to-do list expanding the digi-test to include multiple-sim-hit reconstruction that makes sure hits separated by space or time or both behaves properly.
Long story short: Don't worry about (or even test) the output digis until after I've updated the emulator to be better. You can still work on getting steps 1 through 5 to behave realistically, but step 6 is where my bugs come in.
Ok will do:
The scintillator relaxes over a finite time, so the photons arrive over a range of times, even if they are produced at the same point in the bar. This should account for effects of the scintillator bar itself and the wavelength shifter (Y-11).
Jeremy's suggestion: