Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-27 08:38:49

0001 # ==========================================================================
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 # ==========================================================================
0011 #
0012 """
0013 
0014    Perform a material scan using Geant4 shotting geantinos
0015 
0016    @author  M.Frank
0017    @version 1.0
0018 
0019 """
0020 import os
0021 import DDG4
0022 
0023 
0024 def run():
0025   kernel = DDG4.Kernel()
0026   install_dir = os.environ['DD4hepExamplesINSTALL']
0027   kernel.loadGeometry("file:" + install_dir + "/examples/OpticalSurfaces/compact/OpNovice.xml")
0028 
0029 
0030 if __name__ == "__main__":
0031   run()