-
Notifications
You must be signed in to change notification settings - Fork 0
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
kmtsui
wants to merge
44
commits into
master
Choose a base branch
from
merge_waveform_simulation
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
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. The waveform amplitude is sampled from a Gaussian distribution with a sigma of 0.37PE. Below are the few sampled 1PE waveform examples.
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.
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 (-3, +8)*8ns around the digi time.
In general, Digi T resolution ~ 0.27 ns when photons arrive at the same time, but can be >1ns if late photons have larger amplitude; while Digi Q resolution ~ sqrt(n)*1PE sigma. Below are two examples of multi-photon hits which have large PullT.