Marker
This module introduces the marker element Marker in PASS, used to mark a specific longitudinal position in the beamline without altering any particle coordinates.
The marker has the following behavior:
Zero-length element (tracking length fixed at zero; retain the default configuration), occupies no physical beamline space
Performs no particle coordinate transformation; all phase space coordinates remain unchanged when particles pass through the marker
Aperture checking is configured by
aperture_typeandaperture_valueand is performed on both CPU and GPU.
The main purposes of the marker include:
Marking key positions in the beamline sequence (e.g., measurement points, interaction points, injection points) for subsequent analysis
Serving as sorting reference points; other elements can be laid out relative to marker positions
Identifying physical positions in output and logs without participating in particle tracking
The fields below configure PASS.para.schema.elements.MarkerItem.
The key in Sequence.add(name, item) supplies the element name; it is not a configuration-model field.
Interface Parameters
All interface parameters of the marker are shown in the table below:
Python configuration field |
JSON key |
Type |
Unit |
Default |
Description |
|---|---|---|---|---|---|
|
|
|
m |
|
Longitudinal position of the element exit or zero-length action point. |
|
|
|
m |
|
Tracking length is fixed at zero; retain the default. |
|
|
|
— |
|
Aperture type, default |
|
|
|
m / rad |
|
Aperture parameter values, default |
Aperture Type Options
aperture_type is case-insensitive and is internally converted to lowercase before matching. The available values are:
Type |
aperture_value |
Description |
|---|---|---|
|
ignored |
No aperture checking (default) |
|
ignored |
Default ±1m rectangular aperture |
|
|
Circle, \(r\) is the radius |
|
|
Rectangle, \(w\) is the half-width, \(h\) is the half-height |
|
|
Ellipse, \(a\) is the semi-major axis, \(b\) is the semi-minor axis |
|
|
Intersection of rectangle and circle |
|
|
Intersection of rectangle and ellipse |
|
|
Racetrack shape (rectangle + elliptical ends) |
|
|
Octagon (rectangle with 45° corners cut) |
|
|
Polygon vertex list, automatically closed |
Note
The marker does not require a Length (m) field; the length is fixed at 0 in the code.
The Command field should be set to Marker.
The off and default types ignore aperture_value. The detailed physical descriptions and conditions for each aperture type are in the Aperture chapter.
Usage Examples
Basic Usage
The following example places a marker at \(s = 12.5\) m to mark the interaction point position, without enabling aperture checking:
{
"IP": {
"S (m)": 12.5,
"Command": "Marker"
}
}
"IP" is the element name, automatically read by CommandSequence and assigned to the name property.
Marker with Aperture Checking
The marker can also be configured with aperture checking to detect particles exceeding the beam pipe boundary at that position. The following example places a marker with a circular aperture (radius 0.05 m) at \(s = 12.5\) m:
{
"IP": {
"S (m)": 12.5,
"Command": "Marker",
"Aperture type": "circle",
"Aperture value": [0.05]
}
}
Multiple Marker Combination
Multiple markers can be used repeatedly in the same beamline, for example to mark the interaction point, injection point, and measurement point:
{
"IP": {
"S (m)": 12.5,
"Command": "Marker"
},
"Injection_Point": {
"S (m)": 0.0,
"Command": "Marker"
},
"Measurement_Point": {
"S (m)": 105.3,
"Command": "Marker",
"Aperture type": "rectangle",
"Aperture value": [0.05, 0.03]
}
}
Physical Description
The marker produces no electromagnetic field and leaves surviving particle coordinates unchanged. Aperture checking can mark particles lost. Its six-coordinate map (\(x, p_x, y, p_y, z, \delta\)) is the identity:
The marker only records its longitudinal position \(s\) in the beamline for sequence sorting and position annotation.
With aperture checking enabled, CPU and GPU check live particles at this location. Particles touching or outside the physical boundary are marked lost; their first-loss position and turn are recorded. See Aperture for geometry definitions.
Application Scenarios
Interaction point marking: Marks the beam collision position in colliders, facilitating luminosity calculation and beam-beam interaction element positioning
Injection point marking: Marks the position of injection elements, facilitating the interface between the injector and the main ring
Measurement point marking: Marks the location of monitors, facilitating data analysis and physics quantity extraction
Sequence sorting reference: Uses the marker’s
sposition as a reference to organize the arrangement of other elements in the beamlineAperture monitoring: Configures aperture checking at key positions (e.g., interaction point, injection point) to monitor beam loss without adding additional physical elements