Skip to content

Offline PMT Decoder - #423

Merged
fjnicolas merged 19 commits into
developfrom
feature/lynnt_pmt_decoder
Mar 12, 2024
Merged

Offline PMT Decoder#423
fjnicolas merged 19 commits into
developfrom
feature/lynnt_pmt_decoder

Conversation

@lynnt20

@lynnt20 lynnt20 commented Feb 29, 2024

Copy link
Copy Markdown
Contributor

Offline PMT Decoder that reads in artdaq::Fragments from the CAEN 1730 Digitizers and outputs raw::OpDetWaveforms. This PR is not necessary for the production release.

Main features:

  • stores a timestamp for the raw::OpDetWaveform based on other timing subsystems, such as SPEC TDC and PTB. In the case that the products for the SPEC TDC or the PTB do not exist, the timestamp that will be stored is the start of the waveform w.r.t. the CAEN timing reference system.
  • combines waveforms from extended triggers. An extension is identified if two conditions are followed: (1) the length of the waveform is shorter than the nominal (set by fcl param) and (2) if the start of the short waveform is less than 10 us away from the previous waveform.
  • outputs histograms of the waveforms for a single event (event number changed w/ fcl param).
  • this decoder does not perform jitter correction; the timing corrections will be performed in another downstream module.

There are more features that I'd like to add to the decoder, but wanted at least a working version of it available on sbndcode with the hope that we'll soon be looking at real PMT waveforms 😄. Such features include:

  • FTRIG thresholds specified per board (instead of one FTRIG threshold for every board)
  • storing FTRIG tick into a data product rather than saving the entire waveform into artroot (which currently can only turn on/off the option to save)

lynnt20 and others added 17 commits August 27, 2023 23:30
- add fcl for specifying boards to ignore
- specify nominal waveform length
- specify spectdc input, add to pmt decoder chain
- fcl parameter `timing_type` to choose which timing subsystem to use for the event trigger time
- add fcl configs for PTB inputs
- remove unused variables
- add debug verbosity levels
- add the fragID offset as a fcl config
- add check for # of channels in the fragment, should be protected if ch15 is missing

@tomjunk tomjunk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! We still have some old getByLabel calls in there instead of newer things, but the art team has not made any more noises about deprecating it. As long as it's tested, we should get this into a release.

@fjnicolas

Copy link
Copy Markdown
Contributor

trigger build LArSoft/lar*@LARSOFT_SUITE_v09_85_00

@FNALbuild

Copy link
Copy Markdown
Collaborator

✔️ CI build for LArSoft Succeeded on slf7 for c14:prof -- details available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown
Collaborator

✔️ CI build for LArSoft Succeeded on slf7 for e26:prof -- details available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown
Collaborator

❌ CI build for SBND Failed at phase unit_test SBND on slf7 for c14:prof - ignored warnings for build -- details available through the CI dashboard

🚨 For more details about the failed phase, check the unit_test SBND phase logs

parent CI build details are available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown
Collaborator

⚠️ CI build for SBND Warning at phase ci_tests SBND on slf7 for e26:prof - ignored warnings for build -- details available through the CI dashboard

🚨 For more details about the warning phase, check the ci_tests SBND phase logs

parent CI build details are available through the CI dashboard

@lynnt20

lynnt20 commented Mar 11, 2024

Copy link
Copy Markdown
Contributor Author

found a bug, need to do one more commit before merge!

@fjnicolas

Copy link
Copy Markdown
Contributor

found a bug, need to do one more commit before merge!

OK! btw, all the CI warnings are obviously unrelated

@lynnt20

lynnt20 commented Mar 11, 2024

Copy link
Copy Markdown
Contributor Author

ok should be good now :)

@fjnicolas

Copy link
Copy Markdown
Contributor

trigger build LArSoft/lar*@LARSOFT_SUITE_v09_85_00

@FNALbuild

Copy link
Copy Markdown
Collaborator

✔️ CI build for LArSoft Succeeded on slf7 for c14:prof -- details available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown
Collaborator

✔️ CI build for LArSoft Succeeded on slf7 for e26:prof -- details available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown
Collaborator

❌ CI build for SBND Failed at phase unit_test SBND on slf7 for c14:prof - ignored warnings for build -- details available through the CI dashboard

🚨 For more details about the failed phase, check the unit_test SBND phase logs

parent CI build details are available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown
Collaborator

⚠️ CI build for SBND Warning at phase ci_tests SBND on slf7 for e26:prof - ignored warnings for build -- details available through the CI dashboard

🚨 For more details about the warning phase, check the ci_tests SBND phase logs

parent CI build details are available through the CI dashboard

@fjnicolas
fjnicolas merged commit fc94af2 into develop Mar 12, 2024
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.

5 participants