Env @ lxplus

scram list | grep CMSSW_4_4_4

ssh lxplus5.cern.ch

old: export SCRAM_ARCH=slc5_ia32_gcc434

cmsrel CMSSW_4_4_4

= scram project CMSSW CMSSW_4_4_4

cd CMSSW_4_4_4/src

cmsenv

= eval `scram runtime -sh`

Bash string operation:

${string/substring/replacement}

Replace first match of $substring with $replacement .

${string//substring/replacement}

Replace all matches of $substring with $replacement .

${string/#substring/replacement}

If $substring matches front end of $string , substitute $replacement for $substring .

${string/%substring/replacement}

If $substring matches back end of $string , substitute $replacement for $substring .

ROOT lib:

{

gSystem->Load("libFWCoreFWLite.so");
AutoLibraryLoader::enable();

}

Access data:

rfdir /castor/cern.ch/user/h/heli

rfmkdir ...

rfcp ..

TFile *f = TFile::Open("rfio:/castor/cern.ch/user/initial/username/myFile.root")

add the following to the
.cfg file
source = PoolSource{ untracked vstring fileNames = {'rfio:/castor/cern.ch/user/initial/username/inputFile.root'} }

and the CASTOR web page for further information.

get files from web:

https://cmsweb.cern.ch/filemover/

command line query:

das_client.py --query='file dataset=/DYJetsToLL_M-50_TuneZ2Star_8TeV-madgraph-tarball/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM' --limit=20

Tool for downloading data:

Need grid cert at first:

glite-voms-proxy-init --voms cms

edmCopyPickMerge inputFiles=/store/mc/Summer12_DR53X/DYJetsToLL_M-50_TuneZ2Star_8TeV-madgraph-tarball/AODSIM/PU_S10_START53_V7A-v1/0002/FEF4E41A-46D4-E111-9594-0025B3E06424.root outputFile=outputfile.root

Batch @ CERN: CAF:

You submit the job in the same way as that for smaller jobs.


bsub -q 1nd -J job1 < runMyjob.(c)sh


It is also possible to request a minimum amount of space in /pool/lsf/username/jobnumber using the -R option, for example to request a minimum of 30GB type


bsub -R "pool>30000" -q 1nd -J job1 < runMyjob.(c)sh

See the lxbatch introduction pages:

http://batch.web.cern.ch/batch/doc/quick-intro.html

Instructions on how to create a user code area can be found here UserCode/README :

http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/UserCode/README?view=log

setup CVS separately:

export CVSROOT=:gserver:cmssw.cvs.cern.ch:/local/reps/CMSSW

cvs co -r HEAD PhysicsTools/PatAlgos

cvs co -r V08-07-39 PhysicsTools/PatAlgos

You can also do

addpkg PhysicsTools/PatAlgos HEAD

addpkg PhysicsTools/PatAlgos V08-07-39

If you want to query later which version you of a package you have checked out, do, for example:

addpkg -q PhysicsTools/PatAlgos

If you want to see the version of all the packages you have in your CMSSW_4_4_4/src directory, do

showtags -q

Resume broken transfer, rsync

rsync -vP /data/ilcwork.tar heli@lxplus5NOSPAMPLEASE.cern.ch:/afs/cern.ch/work/h/heli/private/old/ilcwork.tar

VirtualBox

1. network, add host-only adapter

1.1. On virtual machine

/etc/sysconfig/network-scripts/ifcfg-eth1 with the following:

DEVICE=eth1
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.56.101
NETMASK=255.255.255.0
HWADDR=08:00:27:e0:7f:d4

/etc/hosts , add

192.168.56.101 slc5

1.2. on host, add

/etc/hosts :

192.168.56.101 slc5

2. Enable share folder with soft link:

VBoxManage setextradata SLC5 VBoxInternal2/SharedFoldersEnableSymlinksCreate/data 1

VBoxManage getextradata SLC5 enumerate

using "root",

ln -s /media/sf_data /data

add heli to vboxsf group:

/usr/sbin/usermod -a -G vboxsf heli

3. Install Virtual box addon

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r6 - 2013-06-11 - HengneLiUVa
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2023 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