File DigitizationData.hpp

namespace ActsFatras


using Cell = std::pair<unsigned int, Acts::ActsScalar>

A single cell definition: index, cell central value.

template<typename signal_t, size_t kSize>
struct Channel
#include <ActsFatras/Digitization/DigitizationData.hpp>

A channel definition: Cell identification, readout word, links.

Template Parameters
  • signal_t – Type of the signal, requires += operator

  • kSize – Number of channel coordinates

Public Functions

inline Channel(std::array<Cell, kSize> cellId_, signal_t value_, std::unordered_set<unsigned int> links_ = {})

Channel constructor.

  • cellId_ – The Cell idenficiation and position

  • value_ – The Cell value

  • links_ – The (optional) links to e.g. truth indices

Channel() = delete

Public Members

std::array<Cell, kSize> cellId

The cell identification in sizeof..(kParameters) dimensions.

std::unordered_set<unsigned int> links = {}

The potential (truth) links.

signal_t value = 0

The signal value, as complex as possible, but need += operator and double() cast for the weight.

template<typename signal_t, size_t kSize>
struct Cluster
#include <ActsFatras/Digitization/DigitizationData.hpp>

A (simulated) cluster with its constituents.

Template Parameters
  • signal_t – Type of the signal carried, see above

  • kSize – Number of cluster coordinates

Public Types

using CovarianceMatrix = Acts::ActsSymMatrix<kSize>
using ParametersVector = Acts::ActsVector<kSize>
using Scalar = Acts::ActsScalar

Public Functions

template<typename parameters_t, typename covariance_t>
inline Cluster(const Eigen::MatrixBase<parameters_t> &p, const Eigen::MatrixBase<covariance_t> &c, std::array<unsigned int, kSize> cSize, std::vector<Channel<signal_t, kSize>> cChannels)

Cluster constructor.

  • p – Measured parameters

  • c – Measurement covariance

  • cSize – The cluster size definition

  • cChannels – The channel

Cluster() = delete

Public Members

std::vector<Channel<signal_t, kSize>> channels

The constituating signal channels.

std::array<unsigned int, kSize> clusterSize

The resulting cluster size along each channel dimension.

CovarianceMatrix covariance = CovarianceMatrix::Zero()

Measurement covariance.

ParametersVector parameters = ParametersVector::Zero()

Measured parameters.