GithubHelp home page GithubHelp logo

ram1123 / cms_fulllsimulation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from osww-vbs/cms_fulllsimulation

0.0 0.0 2.0 20.22 MB

CMS Simulation based on official mccm chain and private gridpack or official one.

Shell 0.23% Python 99.77%
cms-simulation

cms_fulllsimulation's Issues

Improve the condor script

This patch can be improved. Once can just keep all the text inside:

"""
a
b
b
"""

step = f"step{i}"
script_content += 'echo "###################################################"\n'
script_content += f"echo \"Running {step}...\"\n"
script_content += f"export SCRAM_ARCH={scramArch[step]}\n"
script_content += f"if [ -r ${{{step}}}/src ] ; then\n"
script_content += f" echo release ${{{step}}} already exists\n"
script_content += f" echo deleting release ${{{step}}}\n"
script_content += f" rm -rf ${{{step}}}\n"
script_content += f" scram p CMSSW ${{{step}}}\n"
script_content += f"else\n"
script_content += f" scram p CMSSW ${{{step}}}\n"
script_content += f"fi\n"
script_content += f"echo list files inside ${{{step}}}\n"
script_content += f"ls ${{{step}}}\n"
script_content += f'echo "--------"\n'
script_content += f"cd ${{{step}}}/src\n"
script_content += f"eval `scram runtime -sh`\n"
if args.UseCustomNanoAOD and step == 'step7': # FIXME: This is a temporary fix
script_content += f"git cms-merge-topic -u ram1123:CMSSW_10_6_30_HHWWgg_nanoV9\n"
script_content += f"./PhysicsTools/NanoTuples/scripts/install_onnxruntime.sh\n"
script_content += f"scram b\n"
script_content += f"cd -\n"
if i == 1:
# Special handling for step 1 with seed value
script_content += f"cmsRun ${{{step}_cfg}} seedval=${{seed}} maxEvents=${{5}} gridpack=${{4}}\n"
else:
script_content += f"cmsRun ${{{step}_cfg}}\n"
script_content += "echo \"list all files\"\n"
script_content += "ls -ltrh\n"
# copy output nanoAOD file to output directory with cluster ID and process ID as suffix of the root file
script_content += "\n# Copy output nanoAOD file to output directory\n"
script_content += "echo \"Copying output nanoAOD file to output directory\"\n"
script_content += "ls -ltrh\n"
script_content += "echo \"cp -r HIG-RunIISummer20UL17NanoAODv9-03735.root $3/nanoAOD_$1_$2.root\"\n" # FIXME: Hardcoded nanoAOD output file name
script_content += "cp -r $6 $3/nanoAOD_$1_$2.root\n".format() # FIXME: Hardcoded nanoAOD output file name
script_content += "echo \"Job finished on \" $(date)\n"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.