|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
27 kernel.
loadGeometry(
"file:../DD4hep.trunk/DDExamples/CLICSiD/compact/compact.xml");
28 kernel.
loadXML(
"DDG4_field.xml");
29 kernel.
loadXML(
"sequences.xml");
34 std::cout <<
"Successfully executed application .... " << std::endl;
45 std::cout <<
"Got uncaught exception: " << e.what() << std::endl;
48 std::cout <<
"Got UNKNOWN uncaught exception." << std::endl;
Convenience namespace to ease the setupup of DDG4 applications.
virtual int configure()
Run the simulation: Configure Geant4.
virtual void loadXML(const char *fname)
Load XML file.
int main(int, char **)
Main entry point as a program.
void exception(const std::string &src, const std::string &msg)
Class, which allows all Geant4Action derivatives to access the DDG4 kernel structures.
static Detector & getInstance(const std::string &name="default")
—Factory method----—
virtual int initialize()
Run the simulation: Initialize Geant4.
static Geant4Kernel & instance(Detector &description)
Instance accessor.
virtual int run()
Run the simulation: Simulate the number of events given by the property "NumEvents".
virtual void loadGeometry(const std::string &compact_file)
Construct detector geometry using description plugin.
The main interface to the dd4hep detector description package.
virtual int terminate() override
Run the simulation: Terminate Geant4.