epic-drich-beam-test-analysis
ePIC dRICH beam test analysis framework
Loading...
Searching...
No Matches
readout_config_struct Struct Reference

Associates a named readout role with a set of (device, chip) pairs. More...

#include <config_reader.h>

Public Member Functions

 readout_config_struct (std::string _name, std::map< uint16_t, std::vector< uint16_t > > _device_chip)
 Construct with an explicit name and device–chip map.
 
void add_device_chip (uint16_t device, uint16_t chip)
 Register a single (device, chip) pair.
 
void add_device (uint16_t device)
 Register all 8 chips of a device.
 

Public Attributes

std::string name
 Human-readable role name (e.g. "cherenkov").
 
std::map< uint16_t, std::vector< uint16_t > > device_chip
 Active chips per device.
 

Detailed Description

Associates a named readout role with a set of (device, chip) pairs.

The device_chip map keys are ALCOR device indices; values are the list of chip indices active under that device for the given role.

Constructor & Destructor Documentation

◆ readout_config_struct()

readout_config_struct::readout_config_struct ( std::string  _name,
std::map< uint16_t, std::vector< uint16_t > >  _device_chip 
)

Construct with an explicit name and device–chip map.

Parameters
_nameRole name.
_device_chipInitial device–chip assignment.

Member Function Documentation

◆ add_device()

void readout_config_struct::add_device ( uint16_t  device)

Register all 8 chips of a device.

Parameters
deviceALCOR device index.

◆ add_device_chip()

void readout_config_struct::add_device_chip ( uint16_t  device,
uint16_t  chip 
)

Register a single (device, chip) pair.

Parameters
deviceALCOR device index.
chipChip index within the device.

The documentation for this struct was generated from the following files: