Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Add n_pe to truth #246

Merged
merged 6 commits into from
Nov 19, 2021
Merged

Add n_pe to truth #246

merged 6 commits into from
Nov 19, 2021

Conversation

petergaemers
Copy link
Contributor

Right now the n_photons field in the truth is the number of detected photons + double pe emission.
This PR changes that to have n_photons be the number of detected photons and n_pe for the number of detected photo electrons (so photons+dpe)

Right now the n_photons field in the truth is the number of detected photons + double pe emission.
This PR changes that to have n_photons be the number of detected photons and n_pe for the number of detected photo electrons (so photons+dpe)
@JoranAngevaare
Copy link
Contributor

@petergaemers , this is super useful! Would you think we could also add a small field for the number of photons actually passing the DAQ-thresholds, as in the number of "truely" registered hits?

@ershockley
Copy link
Contributor

@petergaemers thanks for this! Can we also save the true sampled gain values?

@petergaemers
Copy link
Contributor Author

Hi guys, I'm sorry I completly missed these comments.

First for Jorans we don't have a number of photons passing the threshold, we have a current which is a bunch of them.

And for Evans point: maybe but it will not be straightforward at all. The main point is straxs fixed length arrays you need to set in advance

@petergaemers petergaemers marked this pull request as ready for review November 16, 2021 10:48
@JoranAngevaare
Copy link
Contributor

JoranAngevaare commented Nov 16, 2021

@petergaemers thanks a lot! Do you think it would make sense to remove the exclude_dpe_in_truth option all-together from WFSim after this change?

@petergaemers
Copy link
Contributor Author

Yes I do

@petergaemers petergaemers merged commit ad163ae into master Nov 19, 2021
@petergaemers petergaemers deleted the petergaemers-patch-1 branch November 19, 2021 12:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants