|
gdetector
|
Example: build detector geometry, load digitization routines, and run a small multi-threaded digitization loop. More...
#include "gdetectorConstruction.h"#include "gdetector_options.h"#include "glogger.h"#include "event/gEventDataCollection.h"#include "gdynamicdigitizationConventions.h"#include "gthreads.h"#include "G4RunManagerFactory.hh"#include "QBBC.hh"#include <atomic>#include <vector>#include <memory>
Go to the source code of this file.
Functions | |
| auto | run_simulation_in_threads (int nevents, int nthreads, const std::shared_ptr< GOptions > &gopts, const std::shared_ptr< GLogger > &log, const std::shared_ptr< const GDetectorConstruction > &gdetector) -> std::vector< std::shared_ptr< GEventDataCollection > > |
| Runs a digitization loop across multiple worker threads and collects event data. | |
| int | main (int argc, char *argv[]) |
| Example program entry point. | |
Definition in file gdetector_example.cc.
| int main | ( | int | argc, |
| char * | argv[] ) |
This program:
| argc | Standard program argument count. |
| argv | Standard program argument vector. |
Definition at line 170 of file gdetector_example.cc.
| auto run_simulation_in_threads | ( | int | nevents, |
| int | nthreads, | ||
| const std::shared_ptr< GOptions > & | gopts, | ||
| const std::shared_ptr< GLogger > & | log, | ||
| const std::shared_ptr< const GDetectorConstruction > & | gdetector ) -> std::vector<std::shared_ptr<GEventDataCollection>> |
Each worker thread:
| nevents | Total number of events to process. |
| nthreads | Number of worker threads to run. |
| gopts | Shared options instance used to configure created objects. |
| log | Shared logger instance used for informational and debug output. |
| gdetector | Detector-construction object providing digitization routines. |
Definition at line 59 of file gdetector_example.cc.