 <?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.lhep.unibe.ch/index.php?action=history&amp;feed=atom&amp;title=WEDNESDAY</id>
	<title>WEDNESDAY - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.lhep.unibe.ch/index.php?action=history&amp;feed=atom&amp;title=WEDNESDAY"/>
	<link rel="alternate" type="text/html" href="https://wiki.lhep.unibe.ch/index.php?title=WEDNESDAY&amp;action=history"/>
	<updated>2026-05-14T06:31:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.lhep.unibe.ch/index.php?title=WEDNESDAY&amp;diff=509&amp;oldid=prev</id>
		<title>Lhep: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.lhep.unibe.ch/index.php?title=WEDNESDAY&amp;diff=509&amp;oldid=prev"/>
		<updated>2015-03-18T07:49:29Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:49, 18 March 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Lhep</name></author>
	</entry>
	<entry>
		<id>https://wiki.lhep.unibe.ch/index.php?title=WEDNESDAY&amp;diff=508&amp;oldid=prev</id>
		<title>Lhep at 15:11, 15 June 2009</title>
		<link rel="alternate" type="text/html" href="https://wiki.lhep.unibe.ch/index.php?title=WEDNESDAY&amp;diff=508&amp;oldid=prev"/>
		<updated>2009-06-15T15:11:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;WEDNESDAY&amp;#039;S OBJECTIVES&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Run your Athena job on the grid with Ganga (this will take your whole day). &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039; ON THE GRID WITH GANGA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
First of all, create a ganga setup file (ganga.setup.sh) with this content:&lt;br /&gt;
&lt;br /&gt;
 echo &amp;#039;#############Running ganga.setup.sh  ############################&amp;#039;&lt;br /&gt;
 # the following lines are needed if you use Athena 14.X.X (to avoid some trouble between python releases)&lt;br /&gt;
 unset LD_LIBRARY_PATH&lt;br /&gt;
 if [ ! -z ${AtlasVersion} ]&lt;br /&gt;
 then&lt;br /&gt;
 if [ ! -z `echo ${AtlasVersion} | grep 14.` ]&lt;br /&gt;
 then&lt;br /&gt;
 unset PYTHONPATH&lt;br /&gt;
 fi&lt;br /&gt;
 fi&lt;br /&gt;
 # setup glite, then ganga can check the status of your jobs whern it start&lt;br /&gt;
 source /terabig/atlsoft/LocalSoft/glite/current/external/etc/profile.d/grid-env.sh # will setup glite&lt;br /&gt;
 # Environment variables to be able to store the output files on the Storage Element&lt;br /&gt;
 export LFC_HOST=&amp;#039;lfc-atlas-test.cern.ch&amp;#039;&lt;br /&gt;
 export LCG_CATALOG_TYPE=lfc&lt;br /&gt;
 export GANGA_CONFIG_PATH=GangaAtlas/Atlas.ini # Atlas setup for ganga&lt;br /&gt;
 export PATH=/terabig/atlsoft/LocalSoft/ganga/install/5.2.3/bin:$PATH #puts ganga in the path&lt;br /&gt;
&lt;br /&gt;
When sourcing this script, you can run ganga but you won&amp;#039;t be able to run easily Athena jobs.&lt;br /&gt;
&lt;br /&gt;
A working procedure is :&lt;br /&gt;
&lt;br /&gt;
1. setup athena what means :&lt;br /&gt;
&lt;br /&gt;
- source the /APPS/HEP/ATLAS-XX release you want to use&lt;br /&gt;
&lt;br /&gt;
- go to the /cmt directory in your preferred package and source the setup.(c)sh script&lt;br /&gt;
&lt;br /&gt;
2. go to your run directory&lt;br /&gt;
&lt;br /&gt;
3. source your ganga setup script &lt;br /&gt;
&lt;br /&gt;
 source ganga.setup.sh&lt;br /&gt;
&lt;br /&gt;
Now you should be able to use ganga:&lt;br /&gt;
&lt;br /&gt;
 ganga&lt;br /&gt;
&lt;br /&gt;
You will find [here [https://twiki.cern.ch/twiki/bin/view/Atlas/GangaNGTutorial44]] a tutorial to use Ganga on Nordugrid. &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039; A simple athena job:&lt;br /&gt;
&lt;br /&gt;
type this into ganga, but replace &lt;br /&gt;
&lt;br /&gt;
/terabig/..../run/AnalysisSkeleton_topOptions.py with the full path to your joboptions script&lt;br /&gt;
&lt;br /&gt;
/terabig/..../run/AOD.pool.root with your input file&lt;br /&gt;
&lt;br /&gt;
 j = Job()&lt;br /&gt;
 j.name=&amp;#039;NG_Ex3_1&amp;#039;&lt;br /&gt;
 j.application=Athena()&lt;br /&gt;
 j.application.prepare(athena_compile=False,NG=True)&lt;br /&gt;
 j.application.option_file=&amp;#039;/terabig/ctopfel/atlas/15.1.0/PhysicsAnalysis/AnalysisCommon/UserAnalysis/run/AnalysisSkeleton_topOptions.py&amp;#039;&lt;br /&gt;
 j.application.max_events=100&lt;br /&gt;
 j.outputdata=ATLASOutputDataset()&lt;br /&gt;
 j.outputdata.outputdata=[&amp;#039;AnalysisSkeleton.aan.root&amp;#039;]&lt;br /&gt;
 j.backend=NG()&lt;br /&gt;
 j.backend.check_availability=True&lt;br /&gt;
 j.backend.CE = &amp;#039;grid03.unige.ch&amp;#039;&lt;br /&gt;
 j.inputdata=ATLASLocalDataset() # output files are stored locally&lt;br /&gt;
 j.inputdata.names=[&amp;#039;/terabig/ctopfel/atlas/15.1.0/PhysicsAnalysis/AnalysisCommon/UserAnalysis/run/AOD.pool.root&amp;#039;]&lt;br /&gt;
 j.submit() &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039; An other athena job:&lt;br /&gt;
&lt;br /&gt;
 j = Job()&lt;br /&gt;
 j.name=&amp;#039;NG_dq2&amp;#039;&lt;br /&gt;
 j.application=Athena()&lt;br /&gt;
 j.application.prepare_old(athena_compile=False,NG=True)&lt;br /&gt;
 j.application.option_file=&amp;#039;/terabig/cogneras/TestGanga/PhysicsAnalysis/AnalysisCommon/UserAnalysis/run/AnalysisSkeleton_topOptions.py&amp;#039;&lt;br /&gt;
 j.application.max_events=200&lt;br /&gt;
 j.splitter=AthenaSplitterJob()&lt;br /&gt;
 j.splitter.numsubjobs=3&lt;br /&gt;
 j.inputdata=DQ2Dataset()&lt;br /&gt;
 j.inputdata.dataset=&amp;quot;mc08.105401.SU1_jimmy_susy.recon.AOD.e352_s462_r541/&amp;quot;&lt;br /&gt;
 j.inputdata.type=&amp;#039;DQ2_LOCAL&amp;#039;&lt;br /&gt;
 j.inputdata.number_of_files=10&lt;br /&gt;
 j.outputdata=DQ2OutputDataset()&lt;br /&gt;
 j.outputdata.outputdata=[&amp;#039;AnalysisSkeleton.aan.root&amp;#039;]&lt;br /&gt;
 j.backend=NG()&lt;br /&gt;
 j.backend.check_availability=True&lt;br /&gt;
 j.submit()&lt;br /&gt;
&lt;br /&gt;
If it doesn&amp;#039;t work, you can tune the ganga profile just copying /terabig/cogneras/.gangarc in your home directory (you can check for the difference between both files)&lt;/div&gt;</summary>
		<author><name>Lhep</name></author>
	</entry>
</feed>