gdata
Loading...
Searching...
No Matches
gDigitizedData.h File Reference

Container for digitized observables associated with one simulated hit. More...

#include <atomic>
#include <map>
#include <ostream>
#include <string>
#include <vector>
#include "gbase.h"
#include "ghit.h"
#include "gdataConventions.h"
Include dependency graph for gDigitizedData.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  GDigitizedData
 Stores digitized, electronics-level observables for one hit. More...
 

Namespaces

namespace  gdigi_data
 

Functions

GOptions gdigi_data::defineOptions ()
 Defines the options subtree used by the digitized-data logger domain.
 

Variables

constexpr const char * GDIGITIZED_DATA_LOGGER = "digitized_data"
 Logger domain name used by GDigitizedData.
 

Detailed Description

GDigitizedData represents the post-digitization view of a hit. It stores the quantities produced after detector-response and electronics logic have transformed simulation truth into readout-oriented observables.

The class is intentionally schema-flexible:

  • scalar values are stored in keyed maps
  • optional array-valued observables can represent richer payloads such as samples or waveforms
  • detector-specific content can be extended without changing the core library ABI

Stored categories:

  • intObservablesMap : integer-valued scalar observables
  • doubleObservablesMap : floating-point scalar observables
  • arrayIntObservablesMap : integer arrays
  • arrayDoubleObservablesMap : floating-point arrays

Identity:

  • the object copies the hit identity from the source GHit
  • the identity is preserved independently of the originating hit lifetime
  • a readable representation is available through getIdentityString()

Event and integration semantics:

Streaming-readout filtering: The conventional keys defined in gdataConventions.h :

  • crate
  • slot
  • channel
  • timeAtElectronics
  • chargeAtElectronics

are treated as streaming-readout identifiers and can be separated from non-SRO observables with:

Definition in file gDigitizedData.h.

Variable Documentation

◆ GDIGITIZED_DATA_LOGGER

constexpr const char* GDIGITIZED_DATA_LOGGER = "digitized_data"
constexpr

Definition at line 60 of file gDigitizedData.h.