Go Back to: C++ Manual General Site

LDMX.EventBuilder package

Submodules

LDMX.EventBuilder.eventbuilder module

Module for configuring the EventBuilder producer

class LDMX.EventBuilder.eventbuilder.EventBuilder(instance_name: str = 'EventBuilder', histograms: list[Histogram] = <factory>, dat_file: str = '', output_name: str = 'PhysicsEventData', verbose_parse: bool = True, coherence_window_ns: float = 5000000.0, min_subsystems: int = 2)

Bases: Processor

Configuration for the eventbuilder::EventBuilder producer.

dat_file

Path to the input raw dat file.

Type:

str

output_name

Name for the output product placed on the event bus.

Type:

str

verbose_parse

Enable verbose parsing output.

Type:

bool

coherence_window_ns

Coherence window in nanoseconds for collecting fragments from the same physics event.

Type:

float

min_subsystems

Minimum number of distinct subsystems required within the coherence window to assemble an event. Default 2 (e.g. Run 182 has only ts + tracker); set higher for runs that read out more subsystems.

Type:

int

class_name: str = 'eventbuilder::EventBuilder'
coherence_window_ns: float = 5000000.0
dat_file: str = ''
instance_name: str = 'EventBuilder'
min_subsystems: int = 2
module_name: str = 'EventBuilder'
output_name: str = 'PhysicsEventData'
verbose_parse: bool = True
LDMX.EventBuilder.eventbuilder.from_dat_file(dat_file, output_name='PhysicsEventData', verbose_parse=True, coherence_window_ns=5000000.0, min_subsystems=2, instance_name=None)

Convenience factory to create a configured EventBuilder.

Example

evb = from_dat_file(‘data.dat’) p.sequence = [ evb ]

Module contents