---+ Running M5 data on a local machine %BR%%BR%%BR%%BR%%BR% %X% *WARNING:* This page is obsolete. %BR%%BR%%BR%%BR%%BR% %ICON{starred}% 23-Nov-2007: Updated to use 13.0.30.15 and merged Isabel's much simpler recipe. %ICON{warning}% If you are later submitting a grid job using Panda, make sure that the environnment variable !PATHENA_GRID_SETUP_SH is set. For example, if gLite was installed from a yum repo, it should be: <verbatim> export PATHENA_GRID_SETUP_SH=/etc/profile.d/grid-env.sh</verbatim> This assumes that you have properly setup your local machine with the correct tools; if not, please see the [[AtlasCanada/ComputingTips][Computing Tips]] page on how to setup Athena, gLite and DDM tools. The procedure to run on your local machine is similar to that outlined for lxplus. %BLUE%Here, we will note the differences in blue.%ENDCOLOR% * Initial Setup; do the following once <verbatim> mkdir -p ~/Tutorial/point1/cmthome cd ~/Tutorial/point1/cmthome</verbatim> %BLUE%add a requirements file (Change where your SITEROOT is) such as%ENDCOLOR%: <verbatim> ############################################################# set CMTSITE STANDALONE set SITEROOT /ATLAS_LOCAL_ROOT/Athena/Kits/13.0.30 macro ATLAS_DIST_AREA ${SITEROOT} apply_tag simpleTest apply_tag oneTest macro ATLAS_TEST_AREA "" \ 12.0.6 "${HOME}/Tutorial/12.0.6" \ 12.0.7 "${HOME}/Tutorial/12.0.7" \ 13.0.10 "${HOME}/Tutorial/13.0.10" \ 13.0.20 "${HOME}/Tutorial/13.0.20" \ 13.0.30 "${HOME}/Tutorial/13.0.30" \ 13.0.30.6 "${HOME}/Tutorial/13.0.30.6" \ 13.0.30.8 "${HOME}/Tutorial/13.0.30.8" \ point1 "${HOME}/Tutorial/point1" use AtlasLogin AtlasLogin-* $(ATLAS_DIST_AREA) ############################################################# </verbatim> and configure: <verbatim> source /afs/cern.ch/sw/contrib/CMT/v1r20p20070720/mgr/setup.sh cmt config</verbatim> * For every login, do %BLUE%(assuming you have gLite automatically sourced for you)%ENDCOLOR%: <verbatim> cd ~/Tutorial/point1 source cmthome/setup.sh -tag=point1,13.0.30.15,32,runtime voms-proxy-init -voms=atlas:/atlas/ca</verbatim> * Check out and compile the packages (the Panda package is checked out in case you want to run this on the grid later). %BLUE%You will need a Kerberos tocket first. Make sure Kerberos is [[AtlasCanada/ComputingTips][configured on your machine]] %ENDCOLOR% <verbatim> kinit -4 -5 desilva@CERN.CH cd ~/Tutorial/point1 cmt co -r RecExCommission-00-01-72 Reconstruction/RecExample/RecExCommission cd ~/Tutorial/point1/Reconstruction/RecExample/RecExCommission/cmt cmt br cmt config source setup.sh gmake cd ~/Tutorial/point1 cmt co PhysicsAnalysis/DistributedAnalysis/PandaTools cd ~/Tutorial/point1/PhysicsAnalysis/DistributedAnalysis/PandaTools/cmt cmt br cmt config source setup.sh gmake cd ~/Tutorial/point1/Reconstruction/RecExample/RecExCommission/run get_files RecExCommission_topOptions.py</verbatim> %BLUE% * Edit !RecExCommission_topOptions.py by adding the following lines just before including !RecExCommissionFlags_jobOptions.py: <verbatim> # setup DBReplicaSvc to choose closest Oracle replica PoolSvc=Service("PoolSvc") PoolSvc.SortReplicas=True DBReplicaSvc=Service("DBReplicaSvc") DBReplicaSvc.UseCOOLSQLite=False</verbatim> and the following lines just after including !RecExCommissionFlags_jobOptions.py: <verbatim> ATLASCosmicFlags.useLocalCOOL = True ATLASCosmicFlags.doSim = False ATLASCosmicFlags.FullFileName = ["/home/desilva/m5Data/daq.m5_combined.0028940.Default.L1TT-b11100011.LB0000.SFO-1._0001.data"]</verbatim> and substituting <verbatim>theApp.EvtMax = 100</verbatim> for <verbatim>theApp.EvtMax = ATLASCosmicFlags.EvtMax</verbatim> Note the datafile was downloaded to my local machine using dq2_get; assuming you have dq2 tools setup on your machine: %ENDCOLOR% <verbatim> mkdir -p /home/desilva/m5Data cd /home/desilva/m5Data dq2_get -v -r M5.0028940.Default.L1TT-b11100011.RAW.v010803 daq.m5_combined.0028940.Default.L1TT-b11100011.LB0000.SFO-1._0001.data </verbatim> %BLUE% * In a new terminal window, do the following to create a pool file catalog for the conditions data: %ENDCOLOR% <verbatim> cd ~/Tutorial/point1/Reconstruction/RecExample/RecExCommission/run ls /afs/cern.ch/atlas/conditions/poolcond/vol3/comcond.000002.lar_conditions.recon.pool.v0000/*.root | awk '{print "pool_insertFileToCatalog "$1""}' > doPool.sh source doPool.sh</verbatim> %BLUE% (This could be done in one step if you append "| sh" to the first line, but to be safe, look at the !doPool.sh file first. ) This will run very slowly since it is looking at the conditions files over afs. Alternately ... If you have space, you can copy the files to your local desktop (8GB for M5 as of 6Nov07): %ENDCOLOR% <verbatim> cd ~/Tutorial/point1/Reconstruction/RecExample/RecExCommission/run cp -R /afs/cern.ch/atlas/conditions/poolcond/vol3/comcond.000002.lar_conditions.recon.pool.v0000 /home/desilva/m5Conditions/ ls /home/desilva/m5Conditions/comcond.000002.lar_conditions.recon.pool.v0000/* | awk '{print "pool_insertFileToCatalog "$1""}' |sh</verbatim> * Run interactive or batch with the athena command: <verbatim> cd ~/Tutorial/point1/Reconstruction/RecExample/RecExCommission/cmt source setup.sh cd ~/Tutorial/point1/PhysicsAnalysis/DistributedAnalysis/PandaTools/cmt source setup.sh cd ~/Tutorial/point1/Reconstruction/RecExample/RecExCommission/run athena -s RecExCommission_topOptions.py</verbatim> %BLUE% * Results : %ICON{choice-yes}% This succeeded ! However, note that you need to make one more change so that the database is accessed correctly. %RED% %ICON{warning}% If you run on the grid, you should undo this change before submitting the job with pathena or ganga. %ENDCOLOR% Edit !RecExCommission_topOptions.py and add the following line to the end of the "if !ATLASCosmicFlags.doLAr:" block, just after including ("LArConditionsCommon/LArConditionsCommon_comm_jobOptions.py": <verbatim> PoolSvc.ReadCatalog.remove('prfile:poolcond/PoolCat_comcond_castor.xml')</verbatim> (this will crash if a catalog file of that name has NOT been added, but that's OK because it's an ugly kludge anyhow so you don't want to leave it around once it isn't needed anymore). And then run. %ENDCOLOR% -- Main.AsokaDeSilva - 05 Nov 2007
This topic: AtlasCanada
>
WebHome
>
AnalysisHow-to
>
M5OnLocalDesktop
Topic revision: r11 - 2026-10-05 - AsokaDeSilva
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback