Newer
Older
Markus Frank
committed
// $Id: Handle.h 570 2013-05-17 07:47:11Z markus.frank $
//==========================================================================
// AIDA Detector description implementation for LCD
//--------------------------------------------------------------------------
// Copyright (C) Organisation européenne pour la Recherche nucléaire (CERN)
// All rights reserved.
//
// For the licensing terms see $DD4hepINSTALL/LICENSE.
// For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
//
// Author : M.Frank
//
//==========================================================================
// Framework include files
Markus Frank
committed
// C/C++ include files
Markus Frank
committed
using namespace DD4hep::Simulation::Setup;
void setupG4_XML() {
DD4hep::Geometry::LCDD& lcdd = DD4hep::Geometry::LCDD::getInstance();
Kernel& kernel = Kernel::instance(lcdd);
kernel.loadGeometry("file:../DD4hep.trunk/DDExamples/CLICSiD/compact/compact.xml");
kernel.loadXML("DDG4_field.xml");
kernel.loadXML("sequences.xml");
kernel.loadXML("physics.xml");
kernel.configure();
kernel.initialize();
kernel.run();
std::cout << "Successfully executed application .... " << std::endl;
kernel.terminate();
}
int main(int, char**) {
setupG4_XML();
return 1;
}