Project

General

Profile

Feature #1567

Volume plot in geometry validation

Added by Rogers, Chris almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Geometry
Target version:
Start date:
16 October 2014
Due date:
% Done:

100%

Estimated time:
Workflow:
New Issue

Description

Additional validation required following geometry workshop.


Files


Related issues

Related to MAUS - Feature #1553: Geometry ComparisonClosedRogers, Chris30 September 2014

Actions
#1

Updated by Rogers, Chris almost 7 years ago

  • Category set to Geometry
  • Assignee set to Rogers, Chris
  • Target version set to Future MAUS release

Require to:

  • plot 2d rectangular bounding boxes that encompass all steps in the tracking output with a particular volume name; label with volume name and material
  • plot 1d on-axis volume map; Label with volume name
  • look at differences between two geometries (not quite sure yet how best to do this, will think)
#2

Updated by Rogers, Chris almost 7 years ago

I implemented the plots as per request, sample output (from integration test) is attached. Note that in the 1D plot, two lines are apparent - the grey line is the volume extent in z at all points, the black line is the volume extent in z on-axis. For the 2D plot, note the coloured rectangles are "bounding boxes" in z and r, i.e. I calculate the smallest possible rectangle that can encompass all points and plot this. Doing a "convex hull" or similar is quite difficult and beyond the scope of this feature.

For the "diff"ing of two geometries, I made a volume bounding box json output file. User then has to manually inspect the output file for differences (well more likely they would make a script). This works as long as the CAD import has stable volume names for this version or that version. I attach a sample output, format is something like:

{
  <string volume name>: {
    "z_min": <float minimum z of steps in volume>,
    "z_max": <float maximum z of steps in volume>, 
    "r_min": <float minimum radius of steps in volume>,
    "r_max": <float maximum radius of steps in volume>, 
    "material": <string material name>
  }, 
  ...
}

e.g.

  "Vol14": {
    "z_max": 320.0, 
    "r_min": 0.0, 
    "material": "G4_Al", 
    "r_max": 2.23606806280132, 
    "z_min": 280.0
  }, 
  ...

I will run it through test and if it goes smoothly commit later today.

#3

Updated by Rogers, Chris almost 7 years ago

Changes were committed in r784

#4

Updated by Rogers, Chris almost 7 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF