Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: MaterialComposition plots with python config #2531

Merged
merged 9 commits into from
Oct 12, 2023

Conversation

paulgessinger
Copy link
Member

Changes the material composition script to optionally accept a region config in the form of a JSON config file like

{
  "beampipe": [
    {
      "rmin": 0,
      "rmax": 24.4,
      "zmin": -4000,
      "zmax": 4000
    }
  ],
  "pixel": [
    {
      "rmin": 25,
      "rmax": 200,
      "zmin": -2400,
      "zmax": 2400
    }
  ],
  "sstrips": [
    {
      "rmin": 202,
      "rmax": 720,
      "zmin": -3150,
      "zmax": 3150
    }
  ],
  "lstrips": [
    {
      "rmin": 720,
      "rmax": 1140,
      "zmin": -3150,
      "zmax": 3150
    }
  ],
  "solenoid": [
    {
      "rmin": 1160,
      "rmax": 1200,
      "zmin": -3000,
      "zmax": 3000
    }
  ],
  "ecalbarrel": [
    {
      "rmin": 1250,
      "rmax": 1500,
      "zmin": -3050,
      "zmax": 3050
    }
  ],
  "ecalendcap": [
    {
      "rmin": 315,
      "rmax": 1500,
      "zmin": 3200,
      "zmax": 3450
    },
    {
      "rmin": 315,
      "rmax": 1500,
      "zmin": -3450,
      "zmax": -3200
    }
  ]
}

for the example of the ODD. This then also allows to have multiple $rz$ regions make up a combined grouping.

@paulgessinger paulgessinger added this to the next milestone Oct 11, 2023
@github-actions github-actions bot added the Component - Examples Affects the Examples module label Oct 11, 2023
@codecov
Copy link

codecov bot commented Oct 11, 2023

Codecov Report

Merging #2531 (c4b29b0) into main (95bc67b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #2531   +/-   ##
=======================================
  Coverage   49.77%   49.77%           
=======================================
  Files         466      466           
  Lines       26311    26311           
  Branches    12093    12093           
=======================================
  Hits        13096    13096           
  Misses       4616     4616           
  Partials     8599     8599           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

andiwand
andiwand previously approved these changes Oct 11, 2023
Copy link
Contributor

@andiwand andiwand left a comment

Choose a reason for hiding this comment

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

👍

@kodiakhq kodiakhq bot merged commit 16e44c0 into acts-project:main Oct 12, 2023
@acts-project-service acts-project-service added the Fails Athena tests This PR causes a failure in the Athena tests label Oct 12, 2023
paulgessinger added a commit that referenced this pull request Oct 13, 2023
Changes the material composition script to optionally accept a region config in the form of a JSON config file like

```json
{
  "beampipe": [
    {
      "rmin": 0,
      "rmax": 24.4,
      "zmin": -4000,
      "zmax": 4000
    }
  ],
  "pixel": [
    {
      "rmin": 25,
      "rmax": 200,
      "zmin": -2400,
      "zmax": 2400
    }
  ],
  "sstrips": [
    {
      "rmin": 202,
      "rmax": 720,
      "zmin": -3150,
      "zmax": 3150
    }
  ],
  "lstrips": [
    {
      "rmin": 720,
      "rmax": 1140,
      "zmin": -3150,
      "zmax": 3150
    }
  ],
  "solenoid": [
    {
      "rmin": 1160,
      "rmax": 1200,
      "zmin": -3000,
      "zmax": 3000
    }
  ],
  "ecalbarrel": [
    {
      "rmin": 1250,
      "rmax": 1500,
      "zmin": -3050,
      "zmax": 3050
    }
  ],
  "ecalendcap": [
    {
      "rmin": 315,
      "rmax": 1500,
      "zmin": 3200,
      "zmax": 3450
    },
    {
      "rmin": 315,
      "rmax": 1500,
      "zmin": -3450,
      "zmax": -3200
    }
  ]
}
```

for the example of the ODD. This then also allows to have multiple $rz$ regions make up a combined grouping.
@paulgessinger paulgessinger modified the milestones: next, v30.2.0 Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Examples Affects the Examples module Fails Athena tests This PR causes a failure in the Athena tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants