Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:14:12

0001 #!/bin/sh
0002 
0003 #This script is expected to be executed in the CMSSW_X/src/GeneratorInterface/RivetInterface/test directory
0004 
0005 curl -s https://raw2.github.com/cms-sw/genproductions/master/python/SevenTeV/QCD_Pt_470to600_Tune4C_7TeV_pythia8_cff.py -o ../../../Configuration/GenProduction/python/SevenTeV/QCD_Pt_470to600_Tune4C_7TeV_pythia8_cff.py --create-dirs
0006 
0007 curl -s https://raw2.github.com/cms-sw/genproductions/master/python/rivet_customize.py -o ../../../Configuration/GenProduction/python/rivet_customize.py
0008 
0009 cd ../../../
0010 
0011 scram b
0012 
0013 #go to GeneratorInterface/RivetInterface/test/ subdirectory
0014 cd GeneratorInterface/RivetInterface/test
0015 
0016 #do a test run over 10k QCD events with Pythia8 and fill histograms for the analysis CMS_2013_I1224539_DIJET
0017 cmsRun rivet_cfg.py
0018 
0019 sleep 10
0020 
0021 echo "Executing 'rivet-mkhtml mcfile.yoda' now!"
0022 #last step: check in browser the generated events for the given CMS analysis
0023 rivet-mkhtml mcfile.yoda
0024 
0025 
0026 echo "Executing 'firefox plots/index/html' now!"
0027 #point browser to plots/index.html file to check plots
0028 firefox plots/index.html
0029 
0030 #you might want to setup the Rivet environment variables via
0031 #rivetSetup.csh or rivetSetup.sh depending on your shell
0032 # (not needed for the provided example analysis)