Go to the documentation of this file.
    3 # Author: bjpjones@fnal.gov from echurch@fnal.gov from dbox@fnal.gov 
    5 # Small subset of a script to run the optical library building job on the grid within larbatch infrastructure, modified by pkryczyn@fnal.gov 
   10 # jobsub -X509_USER_PROXY /scratch/[user]/grid/[user].uboone.proxy -N [NoOfJobs] -q OpticalLibraryBuild_Grid.sh `whoami` `pwd` 
   12 # You will get outputs in the area specified by the "outstage" variable  
   13 # which is specified below. 
   15 # The form of the output is one file for each few voxels. These then need  
   16 # stitching together, which is done after all jobs are done, with a 
   17 # dedicated stitching script. 
   23 # Copy arguments into meaningful names. 
   30 # Library building parameters 
   32 # In each grid job, do this many voxels: 
   36 # In each voxel, run this many photons: 
   37 NPhotonsPerVoxel=100000
 
   40 echo $FHICL_FILE_PATH 
"fhicl file path" 
   41 # This works out which voxels this job should focus on:  
   42 FirstVoxel=`echo 
"($NVoxelsPerJob * $PROCESS ) % $NTopVoxel" | bc`
 
   43 LastVoxel=`echo 
"(($NVoxelsPerJob * $PROCESS ) + $NVoxelsPerJob - 1 ) % $NTopVoxel" | bc`
 
   46 # And then tell the user about it: 
   47 echo 
"This job will run from voxel $FirstVoxel to $LastVoxel, generating $NPhotonsPerVoxel in each" 
   49 echo 
"physics.producers.generator.FirstVoxel: $FirstVoxel" >> $FCL
 
   50 echo 
"physics.producers.generator.LastVoxel: $LastVoxel" >> $FCL
 
   51 echo 
"physics.producers.generator.N: $NPhotonsPerVoxel">> $FCL
 
   52 echo 
"services.TFileService.fileName: \"${process}_hist.root\"" >> $FCL