# {py:mod}`haniwers.v1.daq.sampler._reader`

```{py:module} haniwers.v1.daq.sampler._reader
```

```{autodoc2-docstring} haniwers.v1.daq.sampler._reader
:allowtitles:
```

## Module Contents

### Classes

````{list-table}
:class: autosummary longtable
:align: left

* - {py:obj}`EventReader <haniwers.v1.daq.sampler._reader.EventReader>`
  - ```{autodoc2-docstring} haniwers.v1.daq.sampler._reader.EventReader
    :summary:
    ```
````

### API

`````{py:class} EventReader(device: haniwers.v1.daq.device.Device, logger=None)
:canonical: haniwers.v1.daq.sampler._reader.EventReader

```{autodoc2-docstring} haniwers.v1.daq.sampler._reader.EventReader
```

```{rubric} Initialization
```

```{autodoc2-docstring} haniwers.v1.daq.sampler._reader.EventReader.__init__
```

````{py:method} read_event() -> RawEvent | None
:canonical: haniwers.v1.daq.sampler._reader.EventReader.read_event

```{autodoc2-docstring} haniwers.v1.daq.sampler._reader.EventReader.read_event
```

````

````{py:method} stream_events(iterator: collections.abc.Iterator) -> collections.abc.Iterator[haniwers.v1.daq.model.RawEvent]
:canonical: haniwers.v1.daq.sampler._reader.EventReader.stream_events

```{autodoc2-docstring} haniwers.v1.daq.sampler._reader.EventReader.stream_events
```

````

````{py:method} collect_events(iterator: collections.abc.Iterator) -> list[haniwers.v1.daq.model.RawEvent]
:canonical: haniwers.v1.daq.sampler._reader.EventReader.collect_events

```{autodoc2-docstring} haniwers.v1.daq.sampler._reader.EventReader.collect_events
```

````

`````
