Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-31 09:21:47

0001 #!/bin/bash -l 
0002 msg="=== $BASH_SOURCE :"
0003 
0004 ./check.sh 
0005 [ $? -ne 0 ] && echo $msg check failed && exit 1
0006 
0007 extra_logging(){
0008     # switch on extra logging for these classes
0009     export G4Opticks=INFO
0010     export OpMgr=INFO
0011     export OpPropagator=INFO
0012     export OpEngine=INFO
0013     export OScene=INFO
0014     export OEvent=INFO
0015     export OSensorLib=INFO
0016 }
0017 #extra_logging
0018 
0019 genstep_skips(){
0020     # from okc:OpticksGentep.h
0021     local OpticksGenstep_G4Cerenkov_1042=1
0022     local OpticksGenstep_G4Scintillation_1042=2
0023     local OpticksGenstep_DsG4Cerenkov_r3971=3
0024     local OpticksGenstep_DsG4Scintillation_r3971=4
0025     local OpticksGenstep_TORCH=5
0026     # uncomment one of the below to skip cerenkov OR scintillation gensteps at G4Opticks collection
0027     #export OPTICKS_SKIP_GENCODE=${OpticksGenstep_G4Cerenkov_1042},${OpticksGenstep_DsG4Cerenkov_r3971}
0028     #export OPTICKS_SKIP_GENCODE=${OpticksGenstep_G4Scintillation_1042},${OpticksGenstep_DsG4Scintillation_r3971}
0029 }
0030 genstep_skips
0031 
0032 
0033 # defines the embedded commandline picking between production and devlopment(with lots of .npy saves)
0034 #export OPTICKS_EMBEDDED_COMMANDLINE="dev"
0035 export OPTICKS_EMBEDDED_COMMANDLINE="pro"
0036 
0037 # appends to the embedded commandline
0038 #export OPTICKS_EMBEDDED_COMMANDLINE_EXTRA="--rngmax 10 --trivial"   # trivial changes the generate.cu kernel 
0039 export OPTICKS_EMBEDDED_COMMANDLINE_EXTRA="--rngmax 100"
0040 
0041 
0042 #SY=50
0043 #SY=100
0044 SY=5000
0045 #SY=10000
0046 #SY=50000
0047 
0048 cmd="CaTS $PWD/gdml/G4Opticks_$SY.gdml macros/muon_noIO.mac"
0049 #cmd="gdb -ex r --args $cmd"   # uncomment to run under debugger
0050 
0051 echo $cmd
0052 eval $cmd