<!-- This is the default ATLAS template. Please modify it in the sections indicated to create your topic! In particular, notice that at the bottom there are some sections that must be filled for publicly accessible pages. If you have any comments/complaints about this template, then please email : Patrick Jussel (patrick dot jussel at cern dot ch) and/or Maria Smizanska (maria dot smizanska at cern dot ch) --> <!-- By default the title is the WikiWord used to create this topic --> <!-- if you want to modify it to something more meaningful, just replace %TOPIC% below with i.e "My Topic"--> <!--------------------------------------------------------- snip snip -----------------------------------------------------------------> ---+!!<nop>Getting and RDO file and running on it %TOC% <!--optional--> %STARTINCLUDE% ---+ Grid certificate First we need to move the grid certificate files from the Glasgow machine to the lxplus machines (only needs to be done once). Use the ppelx machine at Glasgow, as it is the only one that can talk directly with the outside world. <verbatim> scp -r ppelx.physics.gla.ac.uk:~/.globus . </verbatim> ---+ Setting up dq2-get Then we need to setup the dq2-file command, but we should do it in a new xterm, so that it does not damage the athena setup. <verbatim> xterm </verbatim> We have to copy the file to an a-priori chosen lxplus machine, to know to ssh to the same machine later to recover the file. I chose it as lxplus422. If you had not done this in the setup command, do it now. <verbatim> ssh -Y lxplus422 </verbatim> Now we setup the dq2-get, the command that will allow us to retrieve the file we want. <verbatim> source /afs/cern.ch/atlas/offline/external/GRID/ddm/DQ2Clients/setup.sh voms-proxy-init -voms atlas </verbatim> ---+ The destination folder The RDO files are big, so better to use the personal tmp space. One should know that every week at an unknown time and day, this folder is cleaned. This is so that people do not consider it a long time storage area. <verbatim> cd /tmp/abuzatu </verbatim> To see how much space is available <verbatim> df -h </verbatim> You will see something like this <verbatim> /dev/sda7 190G 148G 32G 83% /tmp </verbatim> which means 32 G are available for me and others. By the way, to see how much space one has in the home area, one does <verbatim> fs lq </verbatim> ---+ Choosing the desired dataset For this we have to use [[http://lpsc.in2p3.fr/ami/][AMI]. In order to log in to AMI we have to export the .p12 file of the grid certificate to the browser that is used to open AMI. AMI is the database of files accessible, both data and MC, both RDO, ESD, !D3PD, etc. We can search in the database. Go here [[https://ami.in2p3.fr/AMI/servlet/net.hep.atlas.Database.Bookkeeping.AMI.Servlet.Command?linkId=246][AMI search]]. We choose the dataset "mc11_7TeV.105200.T1_McAtNlo_Jimmy.digit.RDO.e835_s1272_s1274_d580". It is a collection of RDO files, since we want to run trigger code and on ESD or AOD files the trigger code is already run. This dataset is a ttbar simulation with !MC@NLO that includes the semileptonic and dileptonic decays of the ttbar system (but not the all hadronic decays). ---+ Copying the file locally <verbatim> dq2-get -n 1 mc11_7TeV.105200.T1_McAtNlo_Jimmy.digit.RDO.e835_s1272_s1274_d580/ </verbatim> Note that there are actually many files and the option "-n 1" means only a number of 1 file is chosen from the many files in the dataset. The file is chosen randomly. The next time you run this command, another file is copied. Also note the slash "/" necessary at the end of the command. The command creates a folder with the name of the dataset plus a suffix and inside copies our file with a quite complex name. For simplicity, we will create a symbolic link with a more simple name, which name will be in the python configuration file to tell us what file to run. <verbatim> ln -s mc[tab]/RDO[tab] RDO.pool.root </verbatim> Again, remember that the path of this file is in /tmp/abuzatu/RDO.pool.root, but it can be accessed only from lxplus422. ---+ Preparing the job options to run athena.py on this file We want to be able to run on this file from any athena setup or test area. Therefore we create a file called "TriggerOptions.py" in the home area. <verbatim> cd emacs -nw TriggerOptions.py </verbatim> And inside we add the following information <verbatim> from AthenaCommon.AthenaCommonFlags import athenaCommonFlags from RecExConfig.RecFlags import rec from RecExConfig.RecAlgsFlags import recAlgs athenaCommonFlags.FilesInput = ["/tmp/abuzatu/RDO.pool.root"] rec.readAOD = False rec.readESD = False rec.readRDO = True rec.doCBNT=False rec.doTrigger=True rec.doWriteAOD=False rec.doWriteESD=False rec.doWriteTAG=False rec.doAOD=False rec.doESD=False rec.doDPD=False rec.doTruth=False include("RecExCommon/RecExCommon_topOptions.py") theApp.EvtMax = 10 from AthenaCommon.AlgSequence import AlgSequence job = AlgSequence() print theApp.TopAlg print "ADRIAN from .py" </verbatim> ---+ Running Athena on this file First open a new xterm. Make sure you are on the same lxplus machine that stores the RDO file (lxplus422), then choose the athena version and the name of the test area folder, then create the folder, cd to it and setup athena. Follow the instructions from AdrianBuzatuAthenaSetup. <verbatim> cd ~/$TEST_AREA/$ATHENA_VERSION athena.py ~/TriggerOptions.py >& test_trigger.log </verbatim> <!--***********************************************************--> <!--Do NOT remove the remaining lines, but add requested info as appropriate--> <!--***********************************************************--> ----- <!--For significant updates to the topic, consider adding your 'signature' (beneath this editing box)--> *Major updates*:%BR% -- Main.AdrianBuzatu - 09-Feb-2012
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r2
<
r1
|
B
acklinks
|
V
iew topic
|
WYSIWYG
|
M
ore topic actions
Topic revision: r2 - 2012-02-13
-
AdrianBuzatu
Home
Plugins
Sandbox for tests
Support
Alice
Atlas
CMS
LHCb
Public Webs
Sandbox Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
View
Raw View
PDF version
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Cern Search
TWiki Search
Google Search
Sandbox
All webs
E
dit
A
ttach
Copyright &© 2008-2021 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