martedì 29 marzo 2011

NX user capacity

nxserver --userlist
nxserver --userdel USERNAME

martedì 15 marzo 2011

trcor

Changed philosophy: extract one file per xtal from the output of each job. Then we can add on the fly. Extraction code:

/afs/cern.ch/cms/CAF/CMSALCA/ALCA_ECALCALIB/phisym/trcor

output to be found in:

/data/argiro/trcor/140158-142040

note: it would have been probably faster to split one channel per root file directly in the CMSSW job

Procedure:

1. submit crab job to create histograms:
  • code in scratch0/splitcode/CMSSW_3_8_7
  • crab submission stuff in /afs/cern.ch/cms/CAF/CMSALCA/ALCA_ECALCALIB/phisym/trcor/{phisym-cfg.crab.cfg,phisym-cfg.py}
2. submit job to split one histo per file, example :
histoadd-submit.py -r eech-140158-142040.flst -e pccmsto04:/data/argiro/trcor/140158-142040 -q 2nd

3. re-unite files interactively (four at a time or more)
./reSum.sh 0 2000 > & log1.log &
./reSum.sh 2001 4000 > & log2.log &

etc..

venerdì 11 marzo 2011

Transparency correction

code:

scratch0/splitcode/CMSSW_3_8_7

submission machinery

/afs/cern.ch/cms/CAF/CMSALCA/ALCA_ECALCALIB/phisym/trcor

output data

/castor/cern.ch/cms/store/caf/user/argiro/trcor

mercoledì 29 dicembre 2010

Reassemble linux software raid device

In event of loss of madadm.conf:

echo DEVICE partitions > /etc/mdadm.conf
mdadm -Es >> /etc/mdadm.conf
mdadm -As --auto=yes

it might be necessary to set the nodmraid kernel boot option

martedì 7 dicembre 2010

Apple Mail ssh tunneling

http://www.ok-labs.com/blog/entry/ssh-tunneling-smtp-on-mac-os-x/

Library/LaunchDaemon/mailtunnel.plist


create key:

ssh -i tunnel_key -q -T mail.example-com

in authorized_keys2 :

command="nc smtp.to.infn.it 25",no-X11-forwarding,no-agent-forwarding,no-port-forwarding

testing:

SSH_AUTH_SOCK= ssh -i .ssh/tunnel_key mail.example.com

lunedì 30 agosto 2010

Yet another phisym script

in

/afs/cern.ch/cms/CAF/CMSALCA/ALCA_ECALCALIB/phisym/runphisymmetry.sh

does everything after cmsenv and crab setup.



Usage:
./runphisymmetry.sh mode dataset firstrun lastrun globaltag

example:

./runphisymmetry.sh caf /AlCaPhiSymEcal/Run2010A-StreamALCARECOEcalCalPhiSym-v4/ALCARECO 143179 144108 GR10_P_V5::All

martedì 24 agosto 2010

How to count number of events

in

/afs/cern.ch/cms/CAF/CMSALCA/ALCA_ECALCALIB/phisym

./query_nevents.sh first run last run dataset

example

./query_nevents.sh 143000 143178 /AlCaPhiSymEcal/Run2010A-StreamALCARECOEcalCalPhiSym-v4/ALCARECO

actual query:

dbs search --url="http://cmsdbsprod.cern.ch/cms_dbs_prod_global/servlet/DBSServlet" --query "find run,file,sum(file.numevents) wher
e dataset like $dataset and run >= $firstrun and run <=$lastrun" | sed '1,4d' |awk 'BEGIN{n=0}{n=n+$3}END{print n}'