duneopenold_detsim.sh
Go to the documentation of this file.
1 #!/bin/bash
2 # echurch@fnal.gov
3 
4 #get-cert -i
5 #voms-proxy-init -noregen -rfc -voms dune:/dune/Role=Analysis
6 
7 cp ${DUNETPC_DIR}/job/prodsingle_dune35t.fcl .
8 #echo "services.user.FileCatalogMetadataExtras.RenameTemplate: '' " >> ./standard_detsim_dune.fc
9 echo "outputs.out1.fileName: 'openclose_detsim_dune.root'" >> ./prodsingle_dune35t.fcl
10 echo "source.module_type: RootInput" >> ./prodsingle_dune35t.fcl
11 echo "source.maxEvents: -1" >> ./prodsingle_dune35t.fcl
12 echo "services.user.TimeService.TriggerOffsetTPC: -1600" >> ./prodsingle_dune35t.fcl # for consistency with the (probably inadvertently set) parameter in file at /pnfs/dune/mc/dune/simulated/002/singleparticle_antimu_20141105_Simulation009.root that this test reads
13 
14 # We want to just run detsim in this job
15 ed prodsingle_dune35t.fcl <<EOF
16 g/generator/s/^/#/
17 g/largeant/s/^/#/
18 /simulate: /
19 a
20 simulate: [daq, rns ]
21 .
22 /RandomNumberGenerator/
23 a
24  RandomNumberGenerator: {} # added back
25 .
26 w
27 q
28 EOF
29 
30 lar --process-name citest-detsim -c prodsingle_dune35t.fcl -s $1 -n 1 -o openclose_detsim_dune.root -T openclose_detsim_hist_dune.root