Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:14:21

0001 #if 0
0002 //  AIDA Detector description implementation 
0003 //--------------------------------------------------------------------------
0004 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0005 // All rights reserved.
0006 //
0007 // For the licensing terms see $DD4hepINSTALL/LICENSE.
0008 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0009 //
0010 //  \author Markus Frank
0011 //  \date   2015-11-03
0012 //
0013 //==========================================================================
0014 #ifndef DD4HEP_DDG4_GEANT4USERACTIONINITIALIZATION_H
0015 #define DD4HEP_DDG4_GEANT4USERACTIONINITIALIZATION_H
0016 
0017 // Framework include files
0018 #include <DDG4/Geant4UserInitialization.h>
0019 
0020 /// Namespace for the AIDA detector description toolkit
0021 namespace dd4hep {
0022 
0023   /// Namespace for the Geant4 based simulation part of the AIDA detector description toolkit
0024   namespace sim {
0025 
0026     /// Base class to initialize a multi-threaded or single threaded Geant4 application
0027     /**
0028      *  \author  M.Frank
0029      *  \version 1.0
0030      *  \ingroup DD4HEP_SIMULATION
0031      */
0032     class Geant4UserActionInitialization : public Geant4UserInitialization   {
0033     public:
0034       /// Standard constructor
0035       Geant4UserActionInitialization(Geant4Context* c, const std::string& nam);
0036       /// Default destructor
0037       virtual ~Geant4UserActionInitialization() {}
0038       
0039       /// Callback function to build setup for the MT worker thread
0040       virtual void build();
0041       /// Callback function to build setup for the MT master thread
0042       virtual void buildMaster();
0043     };
0044   }    // End namespace sim
0045 }      // End namespace dd4hep
0046 #endif // DD4HEP_DDG4_GEANT4USERACTIONINITIALIZATION_H
0047 
0048 
0049 //  AIDA Detector description implementation 
0050 //--------------------------------------------------------------------------
0051 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0052 // All rights reserved.
0053 //
0054 // For the licensing terms see $DD4hepINSTALL/LICENSE.
0055 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0056 //
0057 //  \author Markus Frank
0058 //  \date   2015-11-03
0059 //
0060 //==========================================================================
0061 
0062 // Framework include files
0063 #include <DDG4/Factories.h>
0064 //#include <DDG4/Geant4UserActionInitialization.h>
0065 #include <DDG4/Geant4Context.h>
0066 
0067 using namespace dd4hep::sim;
0068 
0069 //DECLARE_GEANT4ACTION(Geant4UserActionInitialization)
0070 
0071 /// Standard constructor, initializes variables
0072 Geant4UserActionInitialization::Geant4UserActionInitialization(Geant4Context* ctxt, const std::string& nam)
0073   : Geant4UserInitialization(ctxt,nam)
0074 {
0075 }
0076 
0077 /// Callback function to build setup for the MT worker thread
0078 void Geant4UserActionInitialization::build()   {
0079 
0080 }
0081 
0082 /// Callback function to build setup for the MT master thread
0083 void Geant4UserActionInitialization::buildMaster()   {
0084 }
0085 #endif