DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
DDG4
include
DDG4
Python
Geant4PythonAction.h
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 Markus Frank
11
// \date 2015-11-03
12
//
13
//==========================================================================
14
#ifndef DDG4_PYTHON_GEANT4PYTHONACTION_H
15
#define DDG4_PYTHON_GEANT4PYTHONACTION_H
16
17
// Framework include files
18
#include <
DDG4/Geant4Action.h
>
19
#include <TPyReturn.h>
20
22
namespace
dd4hep
{
23
25
namespace
sim {
26
28
33
class
Geant4PythonAction
:
public
Geant4Action
{
34
public
:
36
Geant4PythonAction
(
Geant4Context
* ctx,
const
std::string& nam);
38
virtual
~Geant4PythonAction
() {}
39
41
static
int
call
(PyObject* method, PyObject* args);
44
static
int
exec
(
const
std::string& cmd);
46
static
int
eval
(
const
std::string& cmd);
48
static
int
runFile
(
const
std::string& cmd);
50
static
void
prompt
();
51
};
52
}
// End namespace sim
53
}
// End namespace dd4hep
54
#endif // DDG4_PYTHON_GEANT4PYTHONACTION_H
dd4hep::sim::Geant4PythonAction::call
static int call(PyObject *method, PyObject *args)
Execute command in the python interpreter.
Definition:
Geant4PythonAction.cpp:48
dd4hep::sim::Geant4PythonAction::exec
static int exec(const std::string &cmd)
Execute command in the python interpreter.
Definition:
Geant4PythonAction.cpp:33
dd4hep::sim::Geant4PythonAction::runFile
static int runFile(const std::string &cmd)
Execute command in the python interpreter.
Definition:
Geant4PythonAction.cpp:43
dd4hep::sim::Geant4PythonAction::eval
static int eval(const std::string &cmd)
Execute command in the python interpreter.
Definition:
Geant4PythonAction.cpp:38
dd4hep::sim::Geant4PythonAction::prompt
static void prompt()
Invoke command prompt.
Definition:
Geant4PythonAction.cpp:53
dd4hep::sim::Geant4Action
Default base class for all Geant 4 actions and derivates thereof.
Definition:
Geant4Action.h:113
dd4hep
Namespace for the AIDA detector description toolkit.
Definition:
AlignmentsCalib.h:28
dd4hep::sim::Geant4PythonAction::~Geant4PythonAction
virtual ~Geant4PythonAction()
Default destructor.
Definition:
Geant4PythonAction.h:38
dd4hep::sim::Geant4PythonAction::Geant4PythonAction
Geant4PythonAction(Geant4Context *ctx, const std::string &nam)
Standard constructor.
Definition:
Geant4PythonAction.cpp:26
dd4hep::sim::Geant4PythonAction
Base class to initialize a multi-threaded or single threaded Geant4 application.
Definition:
Geant4PythonAction.h:33
Geant4Action.h
dd4hep::sim::Geant4Context
Generic context to extend user, run and event information.
Definition:
Geant4Context.h:201
Generated on Tue Dec 10 2024 18:30:09 for DD4hep by
1.8.18