|
dbselect
|
Example program demonstrating how to use the dbselect module in GUI or CLI mode. More...
#include "dbselectView.h"#include "dbselect_options.h"#include <QApplication>#include <QMainWindow>#include <QTimer>#include "G4RunManagerFactory.hh"#include "QBBC.hh"
Go to the source code of this file.
Functions | |
| int | main (int argc, char *argv[]) |
| Program entry point for the dbselect example. | |
Summary: This example creates a GOptions instance using dbselect::defineOptions(), initializes logging for the "dbselect" logger, constructs a GDetectorConstruction, and then:
--gui is enabled, creates a Qt window hosting DBSelectView and demonstrates a timed geometry reload and quit,Typical usage:
Notes:
QApplication, QMainWindow, QTimer) are used only when --gui is set.G4RunManagerFactory and QBBC. Definition in file test_dbselect.cc.
| int main | ( | int | argc, |
| char * | argv[] ) |
Responsibilities:
--gui is enabled:DBSelectView,QTimer.| argc | Standard command-line argument count. |
| argv | Standard command-line argument vector. |
EXIT_SUCCESS). Definition at line 62 of file test_dbselect.cc.