00001
00002
00003 #
00004 # Copyright: Mathieu Trocme, mathieu.trocme@gmail.com (01 october 2009)
00005 #
00006 # This software is a computer program whose purpose is to: convert any GDML file to any G4 visualization driver file.
00007 #
00008 # This software is governed by the CeCILL license under French law and abiding by the rules of distribution of free software.
00009 # You can use, modify and/or redistribute the software under the terms of the CeCILL license as circulated by CEA, CNRS and INRIA at the following URL "http://www.cecill.info".
00010 # As a counterpart to the access to the source code and rights to copy, modify and redistribute granted by the license, users are provided only with a limited warranty and the software's author, the holder of the economic rights, and the successive licensors have only limited liability.
00011 # In this respect, the user's attention is drawn to the risks associated with loading, using, modifying and/or developing or reproducing the software by the user in light of its specific status of free software, that may mean that it is complicated to manipulate, and that also therefore means that it is reserved for developers and experienced professionals having in-depth computer knowledge.
00012 # Users are therefore encouraged to load and test the software's suitability as regards their requirements in conditions enabling the security of their systems and/or data to be ensured and, more generally, to use and operate it in the same conditions as regards security.
00013 #
00014 # The fact that you are presently reading this means that you have had knowledge of the CeCILL license and that you accept its terms.
00015 #
00016
00017
00018 #
00019 # Program : gdml2G4viz.cc
00020 # Task : convert any GDML file to any G4 visualization driver file
00021 # Compilation : 'make' ou 'make -j $NPROC' # export NPROC=$(cat /proc/cpuinfo | grep "processor.*:" | wc -l)
00022 # Execution : 'cd $G4BINDIR ; [ ! -a gdml2G4viz.mac ] && ln -s $G4MYSIMU/gdml2G4viz.mac ; ./gdml2G4viz myGDMLfile.gdml myMacroFile.mac'
00023 # Output : It's up to you. Default will be: $G4BINDIR/myGDMLfile.wrl
00024 # Documentation : none
00025 # Convention : Root coding convention: kMyVariable for constants, gMyVariable for global variable, fMyVariable for class data member
00026 # Help : http://www.lcsim.org/software/geant4/doxygen/html/classes.html
00027 # Author : Mathieu Trocme (mathieu.trocme@ires.in2p3.fr)
00028 # Date : 29 September 2009
00029 # Framework : PhD thesis, CNRS/IPHC/DRS/RAMSES, Strasbourg, France
00030 #
00031
00032
00033 #
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088