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

Defines GRunDataCollection, run-level aggregation of detector data. More...

#include "gRunHeader.h"
#include "gEventDataCollection.h"
#include <map>
#include <string>
Include dependency graph for gRunDataCollection.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  GRunDataCollection
 Run-level container that integrates per-event detector data into per-detector summaries. More...
 

Namespaces

namespace  grun_data
 

Functions

auto grun_data::defineOptions () -> GOptions
 Aggregated options for run-level data collection.
 

Variables

constexpr const char * GRUNDATA_LOGGER = "grun_data"
 

Detailed Description

A run collection integrates event-level data into a run summary.

It owns:

  • a GRunHeader describing run ID and integrated event count
  • a map from sensitive detector name to GDataCollection (the per-detector accumulator)

Integration is performed by consuming GEventDataCollection objects and:

  • iterating over each detector’s per-hit data vectors
  • accumulating observables into a per-detector GDataCollection entry

The resulting structure typically has:

Note
Event counter This class currently does not increment GRunHeader::events_processed. If you want that counter to reflect integrated events, the caller (or this class) must call increment_events_processed() once per integrated event.

Definition in file gRunDataCollection.h.

Variable Documentation

◆ GRUNDATA_LOGGER

constexpr const char* GRUNDATA_LOGGER = "grun_data"
constexpr

Definition at line 36 of file gRunDataCollection.h.