the summed pulse area between `trig_pre_samples` and `trig_post_samples`, less the baseline. We used `trig_pre_samples` = 3 ns and `trig_post_samples` = 10 ns.

![image](BLAlgoExplain_v2.pdf){width="80.00000%"}

The use of a moving average of the baseline attenuates high frequency components of the signal pedestal noise; allowing a `max_amplitude` value of approximately 0.3 photoelectrons.

Simulation Model
----------------

We have used Geant4 v10.0 [@Agostinelli2003etal] to simulate detectors A and B, the energy deposit in the hodoscopes and scintillator, and the optical photon measurements by the PMTs.

For modeling the optical photon processes, the optical properties of the detector materials were required. Where possible we used measured values. Our measurements of the excitation and emission spectra and optical attenuation coefficient spectrum of the scintillators used in this study were incorporated into the model. The wavelength-shifting absorption coefficient was taken to be equal to the difference between the WbLS optical attenuation coefficient and the optical attenuation coefficient of water. The scintillation emission spectrum was assumed to be identical to that produced when excited by 290 nm photons. The refractive index of water and optical absorbance of water were taken from Segelstein [@Segelstein1981]. The refractive index and re-emission probability of liquid scintillator were taken from the Daya Bay simulation 