Skip to content

Conversation

@jzennamo
Copy link
Contributor

@jzennamo jzennamo commented Dec 9, 2024

This PR will enable the variation of the signal shapes and gain across the YZ plane as measured for Run2. The support is in here to also model the electron lifetime separately in each cryostat (or TPC, or YZ bin).

To fully use all these features the following PRs will also be required to be merged:

  • icarus_data: feature/zennamo_yzsim
  • larwirecell: feature/jzennamo_wct_yzsim_update
  • lardataobj: feature/wketchum_FixSimChannelMerge
  • wire-cell-toolkit: jzennamo:feature/jzennamo_yzsim_updated

This simulation has been validated by @gputnam and @mrmooney (Thanks!)

This might require a patch once we reorganize all of our fcl files but the base line simulation is intended to consume "shifted" SimEnergyDeposits from the refactored LArG4.

@jzennamo jzennamo self-assigned this Dec 9, 2024
Copy link
Contributor

@SFBayLaser SFBayLaser left a comment

Choose a reason for hiding this comment

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

At this point I believe this PR is being held captive waiting for the updated WireCell Toolkit.

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good! One note here -- we'll have to tune time_offset_{u, v, y} parameters with the new signal shape simulation going in. Not something that should hold up the PR, but a validation step we should do once we merge it in. @brucehoward-physics has a study we did to do this previously.

Copy link
Contributor

@gputnam gputnam left a comment

Choose a reason for hiding this comment

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

Looks great overall! Couple questions / suggestions. Could also be ignored to merge in if there is urgency.

Copy link
Contributor

Choose a reason for hiding this comment

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

Is the only difference here the "-shifted" jsonnet? Could you #include the base file instead and override this parameter?

Copy link
Contributor

Choose a reason for hiding this comment

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

I won't hold this up, but I'm pretty sure you could clean up this code with some std.range calls: https://jsonnet.org/ref/stdlib.html.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok another note here (which should not hold up the review). We'll need to replace these with the ICARUSDrifters that I made (#782) to lookup the electron lifetime from the SQLite file.

name: "scaler%d" %n, //%std.floor(n/45),
data: params.lar {
yzmap_scale_filename: 'yzmap_gain_icarus_v2_run2.json',
bin_width: 10*wc.cm,
Copy link
Contributor

Choose a reason for hiding this comment

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

How does this handle depositions that are outside the binning of the YZ maps? I don't think I included the whole TPC when I made those.

Copy link
Contributor

Choose a reason for hiding this comment

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

What's the difference between this config and the non-shifted one?

Copy link
Contributor

Choose a reason for hiding this comment

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

Is this one not -refactored? Do we need it? I don't see it referenced by a fcl file.

@leoaliaga leoaliaga removed the request for review from cerati April 23, 2025 00:20
@leoaliaga
Copy link
Contributor

Hi @jzennamo: just flagging that @gputnam appears to be waiting on some input from you in this PR. Could you take a look at it?

@SFBayLaser
Copy link
Contributor

another question, given a pending WireCell toolkit change... is this PR in need of that update or can it go ahead?

@gputnam
Copy link
Contributor

gputnam commented Apr 23, 2025

The PR is ok to me even without the comments being resolved.

@jzennamo
Copy link
Contributor Author

Gray's branch integrates all this in a much better way.

@jzennamo jzennamo closed this Apr 25, 2025
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