Skip to content

Conversation

@ausonandres
Copy link
Collaborator

This PR change inputs in some map_builder_functions.py functions to allow the user to change the detector and Z limits for drift velocity computation.

Copy link
Member

@bpalmeiro bpalmeiro left a comment

Choose a reason for hiding this comment

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

The PR is fine, corrects some old issues as the detector hardcoded parameters and some other parameters that were not properly transmitted throughout the chain.

My only issue is the test, not sure about it, maybe another pair of eyes could be helpful.

ratio_cathodes = z_cathode_new/z_cathode_demo
assert_allclose ((previous_driftv/demo_driftv).values, ratio_cathodes)


Copy link
Member

Choose a reason for hiding this comment

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

My problem with this test is that it relays on the fact that, for this particular set of runs, the drift velocity is the same. So, might work as a particular numerical comparison, but is it right as a general one? Am I too picky?

Copy link
Member

Choose a reason for hiding this comment

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

Please, @mmkekic , whenever you are available, could you take a quick look here?

@bpalmeiro
Copy link
Member

It would be interesting if the PR adds a config for a case different from NEW, maybe @neuslopez and @ausonandres can agree on one and add it!

@ausonandres ausonandres force-pushed the detector_name branch 5 times, most recently from 0fd84f0 to f8aca44 Compare April 2, 2020 08:27
@ausonandres
Copy link
Collaborator Author

Okey, as @bpalmeiro suggested, example config file for DEMO (provided by @neuslopez) was added. Besides that, another test was also written to check that map computation works properly when new parameters are not specified in config file.

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.

2 participants