Update mpv to include the pdune beams#168
Conversation
|
The code-checks are being triggered in jenkins. |
|
-code-checks Then commit the changes and push them to your PR branch. |
|
Pull request #168 was updated. @LArSoft/level-1-managers, @LArSoft/level-2-managers can you please check and sign again. |
|
The code-checks are being triggered in jenkins. |
|
+code-checks |
|
trigger build |
|
The tests are being triggered in jenkins. |
|
+LArSoft tests OK on slf7 for c14:prof |
|
-ICARUS tests failed on slf7 for e26:prof |
|
-DUNE tests failed on slf7 for e26:prof |
|
-SBND tests failed on slf7 for e26:prof |
|
-uBooNE tests warning on slf7 for e26:prof |
Isn't PDVD angled at 45 degrees wrt the beam? And is there any dip angle to the beam in NP02? There's about a 10 degree dip in NP04 of the beam with respect to vertical. A totally horizontal beam in NP02 would be more difficult to reconstruct than it has to be. |
And I'm not sure I understand what the physics process is here. Seems like this is a recipe for generating particles with a broad range of directions. If I look at the old code, it seems isotropic, which doesn't sound plausible for any distribution of particles made when a beam hits material (I would expect more forward-going ones). This modification looks more forward-going, but where is the justification for the angular distribution? Is it meant to match some data? |
The isotropic angular distribution was agreed upon after discussion with the SPINE group. While one could model the exact beam angular distribution, the suggestion was to keep an isotropic distribution for both PDVD and PDHD for now, around the beam entrance. The key improvement here is not the angular distribution but the start position; rather than generating vertices at arbitrary points inside the detector volume, particles are constrained to originate near the beam entrance region. This gives SPINE a more physical training set where beam activity is localised to where the beam actually enters the detector, without committing to a specific angular model. |
|
It might be good to add a comment or even a message printed out in the constructor to tell users that this generator is to be used only for training AI/ML tools due to its flat(ish) phase-space coverage. |
|
Ok I will add that. |
Added a warning message regarding the use of the MultiPartVertex generator for AI/ML training, clarifying its sampling methods and limitations for physics analyses.
|
|
|
Did you make your error messages more descriptive regarding what threw the error? It is awkward for people debugging to grep through the entire code base for a message they do not know the origin of. Especially when messages are constructed from constant strings. This can be made as simple as updating the abort() method to say what module the error is coming from. |
|
Pull request #168 was updated. @LArSoft/level-1-managers, @LArSoft/level-2-managers can you please check and sign again. |
|
The code-checks are being triggered in jenkins. |
|
-code-checks Then commit the changes and push them to your PR branch. |
I don't understand.., that was not an error . That is the description you told me to add so that people will know that this is an ML training specific generator.. |
Adds a configurable beam mode to the MultiPartVertex generator where particles are placed on the surface of an upstream hemisphere rather than uniformly within the TPC volume specifically designed for PDVD, PDSP, and PDHD.
What changed
BeamMode: when true, start positions are sampled uniformly on a hemisphere of radius BeamRadius centred on BeamEntrance, with the flat face flush with the detector entrance plane
BeamInwardDirection: unit vector pointing into the detector, defines hemisphere orientation (default [0,0,1] for PDVD)
BeamTargetRadius: particles are aimed at a random point within a disk of this radius around BeamEntrance, simulating a finite beam spot. Set to 0 to aim at the exact entrance point
New fcl parameters
Adding beam mode generator display (BeamMode: true) and standard isotropic display (BeamMode: false) for comparison --> 20 events
