src/helpers/eta-phi-config.ts
Configuration for the eta-phi energy map panel.
Properties |
| energyThreshold |
energyThreshold:
|
Type : number
|
| Optional |
|
Minimum energy (GeV) to display. Defaults to 0 (hide noise). |
| etaBins |
etaBins:
|
Type : number
|
| Optional |
|
Number of bins along eta. Defaults to 100. |
| etaRange |
etaRange:
|
Type : [number, number]
|
| Optional |
|
Eta axis range. Defaults to [-5, 5]. |
| logScale |
logScale:
|
Type : boolean
|
| Optional |
|
Use logarithmic color scale. Defaults to true. |
| phiBins |
phiBins:
|
Type : number
|
| Optional |
|
Number of bins along phi. Defaults to 63. |
| phiRange |
phiRange:
|
Type : [number, number]
|
| Optional |
|
Phi axis range in radians. Defaults to [-pi, pi]. |
export interface EtaPhiConfig {
/** Eta axis range. Defaults to [-5, 5]. */
etaRange?: [number, number];
/** Phi axis range in radians. Defaults to [-pi, pi]. */
phiRange?: [number, number];
/** Number of bins along eta. Defaults to 100. */
etaBins?: number;
/** Number of bins along phi. Defaults to 63. */
phiBins?: number;
/** Minimum energy (GeV) to display. Defaults to 0 (hide noise). */
energyThreshold?: number;
/** Use logarithmic color scale. Defaults to true. */
logScale?: boolean;
}
/** Default ATLAS-style eta-phi configuration. */
export const DEFAULT_ETA_PHI_CONFIG: Required<EtaPhiConfig> = {
etaRange: [-5, 5],
phiRange: [-Math.PI, Math.PI],
etaBins: 100,
phiBins: 63,
energyThreshold: 0,
logScale: true,
};