| atlasClassifyEvent | ||||||
atlasClassifyEvent(tagCounts: Record)
|
||||||
|
Default event classifier for ATLAS Z-path masterclass. Classifies events by electron/muon/photon counts.
Parameters :
Returns :
string
|
| fourMomentumFromCluster | ||||||
fourMomentumFromCluster(userData: any)
|
||||||
|
Extract a 4-momentum vector from a calorimeter cluster. Clusters have energy, eta, phi (treated as massless).
Parameters :
Returns :
FourMomentum | null
|
| fourMomentumFromTrack | ||||||||||||
fourMomentumFromTrack(userData: any, mass: number)
|
||||||||||||
|
Extract a 4-momentum vector from track userData. Tracks have pT, eta/phi (or dparams), and we assign mass from the tag definition.
Parameters :
Returns :
FourMomentum | null
|
| invariantMass | ||||
invariantMass(momenta)
|
||||
|
Compute the invariant mass of a set of particles in MeV. M² = (ΣE)² - (Σpx)² - (Σpy)² - (Σpz)²
Parameters :
Returns :
number
|
| buildEventSummaries | ||||||
buildEventSummaries(eventsData: PhoenixEventsData)
|
||||||
|
Pre-scan all events and build a summary index. This is the main entry point for the event browser.
Parameters :
Returns :
EventSummary[]
|
| computeMET | ||||||
computeMET(eventData: PhoenixEventData)
|
||||||
|
Compute missing transverse energy magnitude from MET collections. Returns NaN if no MET data is present.
Parameters :
Returns :
number
|
| getAvailableColumns | ||||
getAvailableColumns(summaries)
|
||||
|
Get all unique collection type names across all events. Reconstructed physics objects are listed first, detector-level types last.
Parameters :
Returns :
string[]
|
| summarizeEvent | |||||||||
summarizeEvent(eventKey: string, eventData: PhoenixEventData)
|
|||||||||
|
Build a summary for a single event.
Parameters :
Returns :
EventSummary
|
| decodeSessionFromBase64 | ||||||||
decodeSessionFromBase64(base64: string)
|
||||||||
|
Decode a base64 deflate-compressed session payload, validate it, and cap the decompressed output to defend against compression bombs.
Parameters :
Returns :
Promise<SessionV1>
Validated SessionV1. |
| decodeSessionFromJson | ||||||||
decodeSessionFromJson(text: string)
|
||||||||
|
Parse a raw JSON
Parameters :
Returns :
SessionV1
Validated SessionV1. |
| encodeSessionToBase64 | ||||||||
encodeSessionToBase64(session: SessionV1)
|
||||||||
|
Encode a session as a URL-safe base64 string of deflate-compressed JSON. Mirrors the share-link-dialog state encoding so the decoder can use the existing DecompressionStream('deflate') plumbing.
Parameters :
Returns :
Promise<string>
Base64 string suitable for |
| encodeSessionToBlob | ||||||||
encodeSessionToBlob(session: SessionV1)
|
||||||||
|
Serialize a session to a downloadable JSON Blob (compact, uncompressed) for
sharing as a
Parameters :
Returns :
Blob
Blob with MIME type application/json. |
| pipeThroughStream | ||||||||||||
pipeThroughStream(input: Uint8Array, stream)
|
||||||||||||
|
Pipe a Uint8Array through a transform stream and collect the output. Avoids Blob.stream() and Response, both of which jsdom lacks.
Parameters :
Returns :
Promise<Uint8Array>
Concatenated output bytes. |
| errorMessage | ||||||
errorMessage(e)
|
||||||
|
Extract a human-readable message from an unknown thrown value.
Parameters :
Returns :
string
The error message string. |
| getDefaultObjectTypeConfigs |
getDefaultObjectTypeConfigs()
|
|
Returns default configs for all built-in Phoenix object types.
Returns :
ObjectTypeConfig[]
|
| getMaterialsColors | ||||||||
getMaterialsColors(object: Object3D)
|
||||||||
|
Get the colors of the materials of an object, which are the colors it is drawn with. Most materials have a
Parameters :
Returns :
Color[]
The colors of the object's materials, as references which can be changed to recolor the object. |
| getObjectColor | ||||||||
getObjectColor(object: Object3D)
|
||||||||
|
Get the colour an object is currently drawn with. This is the counterpart of
Parameters :
Returns :
Color | undefined
The colour of the first coloured object found, or |
| setColorForObject | ||||||||||||
setColorForObject(object: Object3D, color: any)
|
||||||||||||
|
Change colour of object.
Parameters :
|
| lerp | ||||||||||||||||
lerp(a: number, b: number, alpha: number)
|
||||||||||||||||
|
Linear interpolation between two numbers.
Parameters :
Returns :
number
The interpolated value. |
| parseColor | ||||||||
parseColor(value: any)
|
||||||||
|
Parse a colour as it may appear in event data. Event data is written by many different producers, so the same colour turns
up as Anything unrecognised gives
Parameters :
Returns :
Color | undefined
The parsed colour, or |
| validateSession | ||||||
validateSession(value)
|
||||||
|
Validate that an arbitrary value is a structurally-valid SessionV1. Defensive against malformed JSON, untrusted URL payloads and version skew from older or newer producers.
Parameters :
Returns :
SessionV1 | null
The value typed as SessionV1, or null when invalid. |