Skip to content

Commit 9a2254e

Browse files
committed
feat: width and height added to hep
1 parent d08fcbb commit 9a2254e

File tree

7 files changed

+14
-4
lines changed

7 files changed

+14
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"source_hash": "2e52dbb510542db48b7b1b50b91f29ba11e628d2a36da4bbd86c5db2da53bea0"
2+
"source_hash": "39aea18234f8f6291555437330a1c0f0019bdf3022f00650c6ef2aeb49f68874"
33
}

docs/reference/systems_reference/hierarchies/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ This section contains all quantity hierarchy trees across all systems, grouped b
2929

3030
## Dimension: L
3131

32-
- [`hep::length`](length_hep.md) (14 quantities)
32+
- [`hep::length`](length_hep.md) (16 quantities)
3333
- [`isq::length`](length_isq.md) (13 quantities)
3434

3535
## Dimension: M

docs/reference/systems_reference/hierarchies/length_hep.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ flowchart LR
1616
hep_length --- hep_displacement
1717
hep_position_vector["<b><a href="../../systems/hep/#position_vector" style="color: var(--md-mermaid-label-fg-color); text-decoration: none;">hep::position_vector</a></b>"]
1818
hep_displacement --- hep_position_vector
19+
hep_height["<b><a href="../../systems/hep/#height" style="color: var(--md-mermaid-label-fg-color); text-decoration: none;">hep::height</a></b>"]
20+
hep_length --- hep_height
1921
hep_impact_parameter["<b><a href="../../systems/hep/#impact_parameter" style="color: var(--md-mermaid-label-fg-color); text-decoration: none;">hep::impact_parameter</a></b>"]
2022
hep_length --- hep_impact_parameter
2123
hep_interaction_length["<b><a href="../../systems/hep/#interaction_length" style="color: var(--md-mermaid-label-fg-color); text-decoration: none;">hep::interaction_length</a></b>"]
@@ -36,4 +38,6 @@ flowchart LR
3638
hep_length --- hep_vertex_position
3739
hep_wavelength["<b><a href="../../systems/hep/#wavelength" style="color: var(--md-mermaid-label-fg-color); text-decoration: none;">hep::wavelength</a></b>"]
3840
hep_length --- hep_wavelength
41+
hep_width["<b><a href="../../systems/hep/#width" style="color: var(--md-mermaid-label-fg-color); text-decoration: none;">hep::width</a></b>"]
42+
hep_length --- hep_width
3943
```

docs/reference/systems_reference/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Automatically generated reference documentation for all **mp-units** systems.
2323
| [Astronomy](systems/astronomy.md) |||| 10 |||
2424
| [CGS](systems/cgs.md) |||| 10 |||
2525
| [Core](systems/core.md) | 1 | 1 || 5 | 2 ||
26-
| [HEP](systems/hep.md) | 8 | 77 || 43 | 43 ||
26+
| [HEP](systems/hep.md) | 8 | 79 || 43 | 43 ||
2727
| [IAU](systems/iau.md) |||| 5 | 12 ||
2828
| [IEC](systems/iec.md) || 31 | 8 | 6 |||
2929
| [Imperial](systems/imperial.md) |||| 22 |||

docs/reference/systems_reference/quantities_index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ Alphabetical list of all quantities.
185185
- [`heat` (isq)](systems/isq.md#heat)
186186
- [`heat_capacity` (isq)](systems/isq.md#heat_capacity)
187187
- [`heat_flow_rate` (isq)](systems/isq.md#heat_flow_rate)
188+
- [`height` (hep)](systems/hep.md#height)
188189
- [`height` (isq)](systems/isq.md#height)
189190
- [`illuminance` (hep)](systems/hep.md#illuminance)
190191
- [`impact_parameter` (hep)](systems/hep.md#impact_parameter)
@@ -499,7 +500,8 @@ Alphabetical list of all quantities.
499500
- [`wavelength` (isq)](systems/isq.md#wavelength)
500501
- [`wavenumber` (isq)](systems/isq.md#wavenumber)
501502
- [`weight` (isq)](systems/isq.md#weight)
503+
- [`width` (hep)](systems/hep.md#width)
502504
- [`width` (isq)](systems/isq.md#width)
503505
- [`work` (isq)](systems/isq.md#work)
504506

505-
**Total quantities:** 496
507+
**Total quantities:** 498

docs/reference/systems_reference/systems/hep.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
| <span id="force"></span><code>force</code> | Real | EL⁻¹ || <code>[force](#force)</code> || <code>[energy](#energy) / <wbr>[length](#length)</code> | [view](../hierarchies/force_hep.md) |
6060
| <span id="frequency"></span><code>frequency</code> | Real | T⁻¹ || <code>[frequency](#frequency)</code> || <code>inverse([duration](#duration))</code> | [view](../hierarchies/frequency_hep.md) |
6161
| <span id="half_life"></span><code>half_<wbr>life</code> | Real | T || <code>[duration](#duration)</code> | <code>[lifetime](#lifetime)</code> || [view](../hierarchies/duration_hep.md) |
62+
| <span id="height"></span><code>height</code> | Real | L || <code>[length](#length)</code> | <code>[length](#length)</code> || [view](../hierarchies/length_hep.md) |
6263
| <span id="illuminance"></span><code>illuminance</code> | Real | α²IL⁻² || <code>[illuminance](#illuminance)</code> || <code>[luminous_<wbr>flux](#luminous_flux) / <wbr>pow<2>([length](#length))</code> | [view](../hierarchies/illuminance.md) |
6364
| <span id="impact_parameter"></span><code>impact_<wbr>parameter</code> | Real | L || <code>[length](#length)</code> | <code>[length](#length)</code> || [view](../hierarchies/length_hep.md) |
6465
| <span id="inductance"></span><code>inductance</code> | Real | ET²Q⁻² || <code>[inductance](#inductance)</code> || <code>pow<2>([duration](#duration)) * <wbr>[energy](#energy) / <wbr>pow<2>([electric_<wbr>charge](#electric_charge))</code> | [view](../hierarchies/inductance_hep.md) |
@@ -110,6 +111,7 @@
110111
| <span id="vertex_position"></span><code>vertex_<wbr>position</code> | Real | L || <code>[length](#length)</code> | <code>[length](#length)</code> || [view](../hierarchies/length_hep.md) |
111112
| <span id="volume"></span><code>volume</code> | Real ||| <code>[volume](#volume)</code> || <code>pow<3>([length](#length))</code> | [view](../hierarchies/volume_hep.md) |
112113
| <span id="wavelength"></span><code>wavelength</code> | Real | L || <code>[length](#length)</code> | <code>[length](#length)</code> || [view](../hierarchies/length_hep.md) |
114+
| <span id="width"></span><code>width</code> | Real | L || <code>[length](#length)</code> | <code>[length](#length)</code> || [view](../hierarchies/length_hep.md) |
113115

114116
## Units
115117

src/systems/include/mp-units/systems/hep/quantities.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ QUANTITY_SPEC(area, pow<2>(length));
6868
QUANTITY_SPEC(volume, pow<3>(length));
6969

7070
// specialized length quantities - each represents distinct physical concepts
71+
QUANTITY_SPEC(width, length); // transverse dimension of a detector element or geometry
72+
QUANTITY_SPEC(height, length); // longitudinal dimension of a detector element or geometry
7173
QUANTITY_SPEC(path_length, length); // actual distance traveled along a trajectory
7274
QUANTITY_SPEC(displacement, length,
7375
quantity_character::vector); // shortest distance between two points (vector)

0 commit comments

Comments
 (0)