Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:32:42

0001 #! /bin/csh
0002 #############################################################################
0003 #                       Test suite for MixingModule                         #
0004 #############################################################################
0005 # part1: detailed testing of MM functionality:
0006 #--------------------------------------------
0007 # loops over bunchcrossings -5 , 3
0008 # for each bunchcrossing the MixingModule is executed, configured with this bunchcrossing only
0009 # then histograms are created and stored in file histos.root
0010 # they may be looked at by executing testsuite.C interactively in root
0011 # or are compared histo by histo
0012 # part2: global physics validation
0013 #---------------------------------
0014 
0015 @ bcrstart=-5
0016 @ bcrend=3
0017 @ i=$bcrstart
0018 
0019 while ( $i <= $bcrend )
0020    echo "===================> Step1: executing EDProducer (MixingModule) for bcr $i"
0021 # execute Mixing Module
0022    /bin/rm /tmp/testsuite1_{$i}_cfg.py  >& /dev/null
0023    sed "s/12345/$i/" testsuite1_cfg.py >/tmp/testsuite1_{$i}_cfg.py
0024    cmsRun /tmp/testsuite1_{$i}_cfg.py
0025 # create histos
0026    echo "===================> Step2: executing EDAnalyser (TestSuite) to create histos for bcr $i"
0027     /bin/rm /tmp/testsuite2_{$i}_cfg.py  > &/dev/null
0028     sed "s/12345/$i/" testsuite2_cfg.py | sed "s/23456/$bcrstart/" | sed "s/34567/$bcrend/" >/tmp/testsuite2_{$i}_cfg.py
0029     cmsRun /tmp/testsuite2_{$i}_cfg.py
0030 ####    cp  histos.root ../data/MMValHistos_$i.root  # for test preparation only!
0031     echo "===================> Step2a: histogram comparison"
0032     root -b -p -q DoCompare.C\(\"histos\",\"../data/MMValHistos_$i\"\)
0033     @ i++
0034 end
0035    
0036     echo "===================> Step3: Global comparisons "
0037     cmsRun globalTest1_cfg.py  # execute mixing
0038     cmsRun globalTest2_cfg.py  # look at results
0039 ####    cp  GlobalHistos.root ../data/GlobalHistos.root  # for test preparation only!
0040     root -b -p -q DoCompare.C\(\"GlobalHistos\",\"../data/GlobalHistos\"\)
0041 
0042     echo "===================> MM Validation finished "