My Links

LXBATCH, DBS and CRAB

HLT

CVS

ECAL

ECAL Shift

Higgs

Higgs to γγ

Jet/MET

Generators

My Commands

CRAB

To convert a list of samples in multicrab format, do
cat list.txt | tr "/" " " | awk '{print "["$1"_"$2"] \nCMSSW.datasetpath = /"$1"/"$2"/"$3" \n"}' 


To know the number of lumis of crab jobs, do

ls -d ./*/ | grep -v multicrab | awk '{print "echo "$1; print "cat "$1"/log/crab.log | grep \"jobs created to run on\"; echo "}' | /bin/sh

To know the number of events of crab jobs, do

ls -d ./*/ | grep -v multicrab | awk '{print "echo "$1; print "cat "$1"/log/crab.log | grep \"job(s) can run on\"; echo "}' | /bin/sh


To get all of your jobs, do

ls -d ./*/ | grep -v multi | awk '{print "crab -get all -c "$1}' | /bin/sh

To resubmit all of your failed jobs, do

ls -d ./*/ | grep -v multi | awk '{print "resubmitcrabjobs "$1" 1"}' | /bin/sh

Luminosity

To know the integrated luminosity of a JSON file do
lumiCalc2.py -i json.txt --norm pp8TeV overview 


DBS queries

To look for a specific dataset, do
dbs search --query="find dataset where dataset=/x/y/z"

To know the GlobalTag of a dataset, do

dbs search --query="find dataset.tag where dataset=/x/y/z"

To get the file list of a specific dataset, do

dbs search --query="find files where dataset=/x/y/z"

Data transfer

To transfer a single file from T1_US_FNAL, do
lcg-cp --vo cms srm://cmssrm.fnal.gov:8443/11/store/.../file.root ./file.root

To transfer a single file from T2_FR_GRIF_LLR, do

lcg-cp --vo cms srm://polgrid4.in2p3.fr:8446/dpm/in2p3.fr/home/cms/trivcat/store/.../file.root ./file.root

To transfer a single file from T2_ES_IFCA, do

lcg-cp --vo cms srm://storm.ifca.es/cms/store/.../file.root ./file.root

To transfer a single file from T2_IT_Rome, do

lcg-cp --vo cms srm://cmsrm-se01.roma1.infn.it:8443/srm/managerv2\?SFN=/pnfs/roma1.infn.it/data/cms/store/.../file.root ./file.root

To transfer a single file from T2_US_Caltech, do

lcg-cp --vo cms srm://cit-se.ultralight.org:/mnt/hadoop/store/.../file.root ./file.root

To transfer a single file from T2_US_Wisconsin, do

lcg-cp -bD srmv2 srm://cmssrm.hep.wisc.edu:8443/srm/v2/server\?SFN=/hdfs/store/.../file.root  ./file.root

To transfer a single file from T3_US_NotreDame, do

lcg-cp --vo cms srm://ndcms.crc.nd.edu:/store/.../file.root ./file.root

My Activities

UserForm
FirstName Andrea
LastName Benaglia
Email andrea.benaglia@cernNOSPAMPLEASE.ch
Telephone +41 22 76 70757
Address Universitą di Milano - Bicocca
Comment

Edit personal data
Edit | Attach | Watch | Print version | History: r46 < r45 < r44 < r43 < r42 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r46 - 2014-06-20 - AndreaBenaglia
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback