Skip to content

aidaph/AnalysisCMS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  1. Analysis documentation ====

These twiki pages contain the CMS synchronization status of the WW and WZ cross section analyses at 13 TeV. There we can find the datasets used in each analysis, trigger bits, lepton selections and analysis cuts.

https://twiki.cern.ch/twiki/bin/view/CMS/WZ13TeV
https://twiki.cern.ch/twiki/bin/view/CMS/WW2015Variables
  1. First time only ====

Log in to gridui.

ssh -Y gridui.ifca.es -o ServerAliveInterval=240
source /cvmfs/cms.cern.ch/cmsset_default.sh

Set a CMSSW release.

export SCRAM_ARCH=slc6_amd64_gcc491
cmsrel CMSSW_7_5_3
cd CMSSW_7_5_3/src
cmsenv

Go to the master repository (https://github.com/piedraj/AnalysisCMS) and click Fork in the top-right corner of the page. Then get the code in your working area.

git clone https://github.com/YOUR_USERNAME/AnalysisCMS

You should also add a remote upstream, to be able to modify both your and the master repository.

git remote add upstream https://github.com/piedraj/AnalysisCMS

Then, do a git remote in order to check if the upstream appears.

git remote -v
  1. Always do ====

    ssh -Y gridui.ifca.es -o ServerAliveInterval=240 source /cvmfs/cms.cern.ch/cmsset_default.sh cd CMSSW_7_5_3/src cmsenv cd AnalysisCMS

  2. Compile and run ====

    ./make

It is recommended to test the code. The following example reads a latino tree and produces the corresponding histograms.

./runAnalysis /full/path/latino_WZTo3LNu.root 25ns

Submit jobs to the gridui batch system.

./submit-jobs.sh

Show the status of the submitted jobs.

qstat -u $USER
qstat -j <job-ID.ja-task-ID>

Alternatively one can login to a node and run interactively.

qlogin -P l.gaes
source /cvmfs/cms.cern.ch/cmsset_default.sh
cd CMSSW_7_5_3/src
cmsenv
cd AnalysisCMS
./make
./runAnalysis /full/path/latino_WZTo3LNu.root 25ns
  1. Draw ====

First merge the files produced in the previous step.

cd test
./merge.sh

Then compile and draw your favorite distributions.

./make
./runPlotter
  1. Create your website ====

Follow the instructions at Permissions for your AFS folder.

ssh -Y lxplus.cern.ch
mkdir www
fs setacl www webserver:afs read
afind www -t d -e "fs setacl -dir {} -acl webserver:afs read"
cp /afs/cern.ch/user/p/piedra/www/.htaccess www/.

Go to the CERN Web Services and click on Create a new website. Choose the "AFS folder" site type.

  1. Share on the web ====

Create a soft link to your figures folder.

cd figures
export FIGURES_DIR=`pwd`
cd
ln -s $FIGURES_DIR

Copy the distributions to lxplus.

ssh -Y lxplus.cern.ch
scp -r [email protected]:figures www/.

And they should appear here,

https://amanjong.web.cern.ch/amanjong/figures/
https://cprieels.web.cern.ch/cprieels/figures/
https://piedra.web.cern.ch/piedra/figures/

A parallel WZ study is being performed at Oviedo, reading heppy trees. The corresponding plots can be found here,

http://www.hep.uniovi.es/nachos/WZ/ValidationPlots_v2_2090pb/
  1. It is commit time ====

This framework is intended to be used, and developed, by several people. If you want your changes to be shared by others, then it is commit time. First you should get the latest modifications in the repository, if any.

git pull https://github.com/piedraj/AnalysisCMS
git fetch upstream

After that you should correct the possible compatibility errors, and commit your changes.

git status
git add <filepattern>
git commit -m 'Modified'
git push

If there isn't any conflict left you should be able to merge with the master repository.

git merge upstream/master

Finally, go to your repository and click Pull Request.

https://github.com/YOUR_USERNAME/AnalysisCMS

About

IFCA code for CMS analyses

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 48.7%
  • C++ 47.9%
  • PHP 2.2%
  • Shell 1.2%