Skip to content

[private] consolidating pmt updates from feature/gp_overlayFix#901

Merged
mvicenzi merged 22 commits into
SBNSoftware:feature/pmtsim_gainfrom
PetrilloAtWork:feature/gp_overlayFix
May 18, 2026
Merged

[private] consolidating pmt updates from feature/gp_overlayFix#901
mvicenzi merged 22 commits into
SBNSoftware:feature/pmtsim_gainfrom
PetrilloAtWork:feature/gp_overlayFix

Conversation

@mvicenzi
Copy link
Copy Markdown
Member

No description provided.

Added also a configuration item specifying its Run3 and default value.
Also reveals a bug in TableAs, which needs a wordy workaround.
* debug tree branch variables isolated from the rest of the member variables
* merged the SimPhotons and SimPhotonsLite loops to avoid code duplication
  (in a way preserving the interface with PMTsimulationAlg)
…t baseline

Rounding changed from truncation to nearest integer.
Removed the workaround, made obsolete, of setting the baseline to 14999.5:
now it is back to the intended 15000.
Removed unused parts, adhered to standards. No actual change.
Replaces the functionality of the "generalist" OverlayProducts module
(which has overlapping detection broken and hard-coded simulation baselines,
things that can be in principle fixed).
This module does the minimum it has to in order to make the overlay workflow
work and flow.
Overlay job configuration is changed to adopt it.
A new configuration of DetectorClocksService is introduced for simulation workflows.
A drop-in override is provided (`override_services_for_simulation.fcl`).
Stage0, Stage1, CAF and overlay configurations are updated to use it.
Includes the change of discrimination threshold from Run1 (400 ADC#)
to Run2 standard (390 ADC#) and internal adjustments.
Enabled by the change in PMTsimulationAlg that produces the baselines.
… gate time

In the plain simulation, defined as the one performed with standard DetectorClocks configuration,
simulation time and beam time scales coincide.
Introducing a time scale shift in the workflow, we redefine the beam gate time,
adding a margin before the beam, which separates the two scales.
The beam gate produced at generation stage refers to simulation time,
as all the gates derived by it do.
The beam gate start time in raw::Trigger et al. assumed the input gate to be
in the (current) beam gate time scale, but that may be not true.
The gate is always output in electronics time anyway.
This accounts for the average time it takes the hardware trigger to emit a response.
Beam gates may need to be corrected accordingly, as the beam gate start time is not
subject to this delay.
The delay is encoded in the configurations for Run2. The value, obtained by visual calibration,
is statistically compatible with the one from Run3.
It is now the same for simulation as it is for data.
* added `--suffix` and `--and` options
* explicit support for compressed raw data, "raw" became uncompressed only
@mvicenzi mvicenzi added the private Issue or pull request about/between user branches: not aimed to the care of release managers label May 18, 2026
@mvicenzi mvicenzi changed the title [private] consolidating pmt updates form feature/gp_overlayFix [private] consolidating pmt updates from feature/gp_overlayFix May 18, 2026
@mvicenzi mvicenzi merged commit b821df9 into SBNSoftware:feature/pmtsim_gain May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

private Issue or pull request about/between user branches: not aimed to the care of release managers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants