GithubHelp home page GithubHelp logo

gputtley / icsvfit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from danielwinterbottom/icsvfit

0.0 0.0 0.0 73 KB

repository to run SV fit algorithm as grid jobs

C++ 19.20% Python 63.21% Shell 17.59%

icsvfit's Introduction

ICSVFit

Setting Up Workarea

setup CMSSW area

cmsrel CMSSW_7_6_3
cd CMSSW_7_6_3/src/
cmsenv
git cms-addpkg FWCore/Version

clone SV Fit packages

git clone https://github.com/SVfit/ClassicSVfit TauAnalysis/ClassicSVfit
cd TauAnalysis/ClassicSVfit
git checkout release_2018Mar20
cd ../../
git clone https://github.com/SVfit/SVfitTF TauAnalysis/SVfitTF

clone IC analysis framework

git clone [email protected]:danielwinterbottom/ICHiggsTauTau.git UserCode/ICHiggsTauTau

clone ICSVFit package

git clone [email protected]:danielwinterbottom/ICSVFit.git ICSVFit/

build

scram b -j8

latest instructions to run SV fits on the grid (follow these ones!)

In the IC analysis code HiggsTauTau/scripts directory there are scripts named "scripts/hadd_legacy16_svfit.py", "hadd_smsummer17_svfit.py", and "hadd_smsummer18_svfit.py". These scripts combine SV-fit input files for each sample into 1 file. Copying over larger numbers of files to the dcache area is very slow so it is better to run these scripts initially to reduce the number of files. Run these scripts using:

./scripts/hadd_smsummer17_svfit.py --folder=/vols/cms/dw515/Offline/output/SM/Oct24_2017_SVFit/

Note if you are running SVfits for different samples not listed in these scripts, then you need to add the sample named to these scripts otherwise they will not get hadded!

Then copy the input files over to dcache area:

First create nominal output folder in dCache:

`uberftp sedsk53.grid.hep.ph.ic.ac.uk 'mkdir store/user/<user>/<dest>'`

Then run copying script -- put -r creates the required subdirectories if needed.

`uberftp sedsk53.grid.hep.ph.ic.ac.uk 'put -r /vols/cms/<source>/ store/user/<user>/<dest>/'`

Then submit the jobs over the grid using:

python scripts/submit_crab_jobs_new.py --folder=/vols/cms/dw515/Offline/output/SM/Oct01_SVFit/ --dcache_dir=/store/user/dwinterb/Oct01_SVFit/ --crab=Oct01_SVFit

after the jobs have finished copy the output over using: python -u scripts/copy_crab_outputs.py --folder=/vols/cms/dw515/Offline/output/SM/Oct01_SVFit/ --dcache_dir=/store/user/dwinterb/SVFit/ --crab=Oct01_SVFit

untar the files using: scripts/CheckTar.sh /vols/cms/dw515/Offline/output/SM/Oct01_SVFit/ this script will also print the total number of files untarred, I suggest checking that this number matches the number of task submitted. If it does not match then some jobs may not have been copied over correctly and so you should run the copy_crab_outputs.py script again

Alternative method of copying output files from dCache to /vols/cms/

First create /vols/cms/ destination folder if required. mkdir /vols/cms/<dest>/

Then run uberftp command to copy from dCache: uberftp sedsk53.grid.hep.ph.ic.ac.uk 'get -r store/user/<user>/<source>/ /vols/cms/<dest>/'

this will copy the directory structure that is produced by crab so you will need move the outputs over to the correct output directories (i.e for each systematics folder)

icsvfit's People

Contributors

albertdow avatar danielwinterbottom avatar

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.