Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:34

0001 #!/bin/bash
0002 
0003 events=(
0004         "1E2"
0005         "4E2"
0006         "1E3"
0007         "4E3"
0008         "1E5"
0009 )
0010 
0011 repetitions="10"
0012 
0013 #----------------------------------------------------------------------------------------------------
0014 
0015 for n_events in ${events[*]}
0016 do
0017         for rep in `seq $repetitions`
0018         do
0019                 dir="data/sector:56/opt:sr/trdist:default/$n_events/$rep/iteration:1"
0020 
0021                 echo "* $dir"
0022 
0023                 mkdir -p "$dir"
0024 
0025                 cat "template_cfg.py" | sed "\
0026                                 s|\$seed|$rep|;\
0027                                 s|\$max_events|$n_events|;\
0028                                 s|\$output_iteration|results_iteration_|;\
0029                                 s|\$output_expanded|results_expanded_|;\
0030                                 s|\$output_factored|results_factored_|;\
0031                         " > "$dir/cfg.py"
0032 
0033                 cd "$dir"
0034                 cmsRun "cfg.py" &> "log" &
0035                 cd - &> /dev/null
0036         done
0037 done
0038 
0039 wait
0040 
0041 echo "* analysis"
0042 cd "data"
0043 $CMSSW_BASE/test/$SCRAM_ARCH/ppsTrackBasedAligAnalRes \
0044         ./results_factored_Jan.xml\
0045         ./results_factored_Ideal.xml\
0046         ./results_expanded_Jan.xml\
0047         ./results_expanded_Ideal.xml