|
gdata
|
Run-level integration of many events into a single detector-summary map. More...
Typedefs | |
| using | PerDetectorDoubles = std::map<std::string, std::map<std::string, double>> |
| Type alias for per-detector scalar accumulation maps used in this example. | |
| using | PerDetectorInts = std::map<std::string, std::map<std::string, long long>> |
Functions | |
| int | main (int argc, char *argv[]) |
This example shows how to integrate many GEventDataCollection objects into a single GRunDataCollection summary using accumulation semantics (sums of scalar observables).
The workflow is: 1) Build N events (GEventDataCollection) — possibly in parallel. 2) Integrate each event into a GRunDataCollection via collect_event_data_collection(). 3) Inspect the resulting run summary map:
which=0 means "exclude SRO keys".Event generation can be parallel. Run integration is performed sequentially in this example to:
Build this example together with the GData library components and required GEMC utilities.
| using PerDetectorDoubles = std::map<std::string, std::map<std::string, double>> |
We keep separate reference sums for:
Using distinct maps makes it explicit which channels are expected to be integrated by which rules.
Definition at line 112 of file run_example.cc.
| using PerDetectorInts = std::map<std::string, std::map<std::string, long long>> |
Definition at line 113 of file run_example.cc.
| int main | ( | int | argc, |
| char * | argv[] ) |
Definition at line 309 of file run_example.cc.