Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 09:31:58

0001 #!/bin/sh
0002 
0003 ls g4ge*.txt | grep -v cutsPerRegion | grep -v _SD |
0004 while read filename ; do
0005   type1="`echo "$filename" | cut -d "_" -f2`"
0006   type="`echo "$type1" | cut -d "." -f1`"
0007   echo "File: $filename $type"
0008   cp $filename g4geom.txt
0009  $G4INSTALL/bin/Linux-g++/textGeom run.mac | tee zz_$type.out 
0010  mv g4_00.wrl g4_$type.wrl
0011 sleep 5
0012 done
0013 
0014 sed -i s/"new ExTGDetectorConstruction"/"new ExTGDetectorConstructionWithSD"/g textGeom.cc
0015 make;  $G4INSTALL/bin/Linux-g++/textGeom run.mac | tee zz_WithSD.out 
0016 sed -i s/"new ExTGDetectorConstructionWithSD"/"new ExTGDetectorConstructionWithCpp"/g textGeom.cc
0017 make;  $G4INSTALL/bin/Linux-g++/textGeom run.mac | tee zz_WithCpp.out 
0018 sed -i s/"new ExTGDetectorConstructionWithCpp"/"new ExTGDetectorConstructionWithCuts"/g textGeom.cc
0019 make;  $G4INSTALL/bin/Linux-g++/textGeom run.mac | tee zz_WithCuts.out 
0020 sed -i s/"new ExTGDetectorConstructionWithCuts"/"new ExTGDetectorConstruction"/g textGeom.cc
0021 make
0022 
0023 exit