DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Geant4PythonDetectorConstructionLast.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 Markus Frank
11 // \date 2015-11-03
12 //
13 //==========================================================================
14 #ifndef DD4HEP_DDG4_GEANT4PYTHONDETECTORCONSTRUCTIONLAST_H
15 #define DD4HEP_DDG4_GEANT4PYTHONDETECTORCONSTRUCTIONLAST_H
16 
17 // Framework include files
19 #include <DDG4/Python/DDPython.h>
20 
22 namespace dd4hep {
23 
25  namespace sim {
26 
28 
37  public:
39  Geant4PythonDetectorConstructionLast(Geant4Context* ctxt, const std::string& nam)
40  : Geant4DetectorConstruction(ctxt,nam) {}
45  info("+++ Python setup finished. From now on THREADS ARE ALLOWED!");
47  }
48  };
49  } // End namespace sim
50 } // End namespace dd4hep
51 #endif // DD4HEP_DDG4_GEANT4PYTHONDETECTORCONSTRUCTIONLAST_H
52 
53 using namespace dd4hep::sim;
54 
55 #include <DDG4/Factories.h>
Geant4DetectorConstruction.h
dd4hep::DDPython::allowThreads
static void allowThreads()
Save thread state.
Definition: DDPython.cpp:196
DECLARE_GEANT4ACTION
#define DECLARE_GEANT4ACTION(name)
Plugin defintion to create Geant4Action objects.
Definition: Factories.h:210
dd4hep::sim::Geant4PythonDetectorConstructionLast::constructGeo
virtual void constructGeo(Geant4DetectorConstructionContext *)
Geometry construction callback. Called at "Construct()".
Definition: Geant4PythonDetectorConstructionLast.cpp:44
dd4hep::sim::Geant4Action::info
void info(const char *fmt,...) const
Support of info messages.
Definition: Geant4Action.cpp:215
dd4hep::sim::Geant4PythonDetectorConstructionLast
Base class to initialize a multi-threaded or single threaded Geant4 application.
Definition: Geant4PythonDetectorConstructionLast.cpp:36
dd4hep::sim::Geant4DetectorConstructionContext
Geant4 detector construction context definition.
Definition: Geant4DetectorConstruction.h:61
DDPython.h
Factories.h
dd4hep::sim
Namespace for the Geant4 based simulation part of the AIDA detector description toolkit.
Definition: Geant4Output2EDM4hep.cpp:49
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::sim::Geant4PythonDetectorConstructionLast::~Geant4PythonDetectorConstructionLast
virtual ~Geant4PythonDetectorConstructionLast()
Default destructor.
Definition: Geant4PythonDetectorConstructionLast.cpp:42
dd4hep::sim::Geant4PythonDetectorConstructionLast::Geant4PythonDetectorConstructionLast
Geant4PythonDetectorConstructionLast(Geant4Context *ctxt, const std::string &nam)
Standard constructor.
Definition: Geant4PythonDetectorConstructionLast.cpp:39
dd4hep::sim::Geant4DetectorConstruction
Basic implementation of the Geant4 detector construction action.
Definition: Geant4DetectorConstruction.h:102
dd4hep::sim::Geant4Context
Generic context to extend user, run and event information.
Definition: Geant4Context.h:201