DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
UtilityApps
src
plugin_runner.cpp
Go to the documentation of this file.
1
//==========================================================================
2
// AIDA Detector description implementation
3
//--------------------------------------------------------------------------
4
// Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5
// All rights reserved.
6
//
7
// For the licensing terms see $DD4hepINSTALL/LICENSE.
8
// For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9
//
10
// Author : M.Frank
11
//
12
//==========================================================================
13
#ifdef __GNUC__
14
#pragma GCC diagnostic ignored "-Wunused-function"
15
#endif
16
17
// Framework include files
18
#include "
run_plugin.h
"
19
#include <cerrno>
20
22
int
main
(
int
argc,
char
** argv) {
23
try
{
24
return
dd4hep::execute::invoke_plugin_runner
(
""
, argc, argv);
25
}
26
catch
(
const
std::exception
& e) {
27
std::cout <<
"geoPluginRun: Got uncaught exception: "
<< e.what() << std::endl;
28
}
29
catch
(...) {
30
std::cout <<
"geoPluginRun: Got UNKNOWN uncaught exception."
<< std::endl;
31
}
32
return
EINVAL;
33
}
dd4hep::exception
void exception(const std::string &src, const std::string &msg)
Definition:
RootDictionary.h:69
main
int main(int argc, char **argv)
Main entry point as a program.
Definition:
plugin_runner.cpp:22
run_plugin.h
dd4hep::execute::invoke_plugin_runner
int invoke_plugin_runner(const char *name, int argc, char **argv)
Definition:
run_plugin.h:314
Generated on Sat Jan 25 2025 11:08:23 for DD4hep by
1.8.18