Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:47:51

0001 #!/bin/bash
0002 
0003 iterations="4"
0004 
0005 mkdir -p "data"
0006 
0007 cd "data"
0008 
0009 for iter in `seq $iterations`
0010 do
0011         echo "* iteration $iter"
0012 
0013         if [ "$iter" == "1" ]
0014         then
0015                 input_alignment=""
0016         else
0017                 let pred=$iter-1
0018                 input_alignment="\"CalibPPS/AlignmentRelative/test/test_with_mc/iterations/data/iteration_${pred}_cumulative_Jan.xml\""
0019         fi
0020 
0021         cat "../template_cfg.py" | sed "\
0022                         s|\$input_alignment|$input_alignment|;\
0023                         s|\$output_iteration|iteration_${iter}_|;\
0024                         s|\$output_cumulative|iteration_${iter}_cumulative_|;\
0025                 " > "iteration_${iter}_cfg.py"
0026 
0027         cmsRun "iteration_${iter}_cfg.py" &> "iteration_${iter}.log"
0028 done