Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement waveform simulation and hit finding algorithm for mPMT #9

Open
wants to merge 42 commits into
base: master
Choose a base branch
from

Conversation

kmtsui
Copy link

@kmtsui kmtsui commented Oct 22, 2024

This PR should be merged after PR #7


This PR implements the hit finding algorithm as described in issue #8
In addition, the simulated waveform and the Q and T pulls (digi minus truth) can be saved in the output file.

Waveform simulation

Implementation in HitDigitizer_mPMT::BuildWavetrain()
For each photon hit, the expected voltage is sampled at a 8 ns interval.
image
There is no variation in the 1PE pulse shape, but the sampling time (relative to t=0 in the 1PE pulse shape) is dependent on the photon detection time, which introduces randomness in the sampled waveform. Below are the few examples.
image
If there are multiple photons arriving a PMT in a short time, the waveforms are added together. Below are the examples of a 2-photon (left) and 4-photon (right) waveform.
image

Hit finding algorithm

Implementation in HitDigitizer_mPMT::FitWavetrain()
Each waveform is scanned to find the local maxima that satisfy trigger conditions. Then digi time is estimated using Constant Fraction Discriminator, and digi Q from the sum of eight samples around the maximum.
Below are the pull distributions (digi minus truth) from a 156 MeV kinetic energy pi+ beam particle simulation in WCTE. For a multi-photon hit, true time is defined as the first photon detection time, true charge is the number of photons, in a time interval of (-1, +8)*8ns around the digi time.
image
image
image
image
image

Time pull is usually small. Meanwhile the digi charge can be off by more than 1 unit, due to photons arriving at a time larger than the charge integration window but less than the dead time period. Figures below show such waveforms.
image

kmtsui added 30 commits May 23, 2023 15:16
Merge pull request #3 from kmtsui/develop/wcte
Merge pull request #1 from WCTE/develop/wcte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant