 <?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=Include_a_new_Algorithm</id>
	<title>Include a new Algorithm - 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=Include_a_new_Algorithm"/>
	<link rel="alternate" type="text/html" href="https://wiki.lhep.unibe.ch/index.php?title=Include_a_new_Algorithm&amp;action=history"/>
	<updated>2026-05-14T17:55:06Z</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=Include_a_new_Algorithm&amp;diff=237&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=Include_a_new_Algorithm&amp;diff=237&amp;oldid=prev"/>
		<updated>2015-03-18T07:49:25Z</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=Include_a_new_Algorithm&amp;diff=236&amp;oldid=prev</id>
		<title>Lhep at 12:08, 15 December 2010</title>
		<link rel="alternate" type="text/html" href="https://wiki.lhep.unibe.ch/index.php?title=Include_a_new_Algorithm&amp;diff=236&amp;oldid=prev"/>
		<updated>2010-12-15T12:08:33Z</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;== Athena setup ==&lt;br /&gt;
&lt;br /&gt;
Setup the athena enviroment with [https://twiki.cern.ch/twiki/bin/viewauth/Atlas/AtlasSetup asetup].&lt;br /&gt;
This one works for me.&amp;lt;br/&amp;gt; Add the following lines to your &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;code&amp;gt; &lt;br /&gt;
 export AtlasSetup=/afs/cern.ch/atlas/software/dist/AtlasSetup&lt;br /&gt;
 alias asetup=&amp;#039;source $AtlasSetup/scripts/asetup.sh&amp;#039;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
(this has to be done only once of course). Then issue&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 asetup 16.0.2.5 &lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
to setup in &amp;#039;&amp;#039;AtlasProduction&amp;#039;&amp;#039; 16.0.2.5. &amp;lt;br/&amp;gt;&lt;br /&gt;
Make a directory&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 mkdir $TestArea&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
and &amp;lt;code&amp;gt; cd &amp;lt;/code&amp;gt; there. Then check out the package &amp;#039;&amp;#039;Trigger/TrigAnalysis/TrigAnalysisExapmples&amp;#039;&amp;#039;. For this, first check, which version corresponds to your release. Do&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 cmt show versions Trigger/TrigAnalysis/TrigAnalysisExapmples&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Strange enough this shows a really old package (&amp;#039;&amp;#039;TrigAnalysisExamples-00-00-22&amp;#039;&amp;#039;), so I checked out the newest version anyway. (Normally you would check out the one shown by&amp;lt;code&amp;gt; cmt show versions&amp;lt;/code&amp;gt;.) Anyway, the newest version worked for me. I checked it out by doing&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 cmt co -r TrigAnalysisExamples-00-00-27 Trigger/TrigAnalysis/TrigAnalysisExamples&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
To make sure you haven&amp;#039;t screwed up anywhere, you might want to compile and run:&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 cd $TestArea/Trigger/TrigAnalysis/TrigAnalysisExamples/cmt&lt;br /&gt;
 make -j5&lt;br /&gt;
 mkdir $TestArea/run                                 # to create a run directory&lt;br /&gt;
 cd $TestArea/run&lt;br /&gt;
 get_files TrigMatchExampleJO.py                     # to grab the joboptions file&lt;br /&gt;
 athena TrigMatchExampleJO.py | tee joblog           # | tee joblog = shows output on screen and also writes it into joblog&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
If every thing&amp;#039;s fine, you can add a new algorithm.&lt;br /&gt;
&lt;br /&gt;
== Add a new algorithm ==&lt;br /&gt;
To add your own &amp;#039;&amp;#039;TriggerAnalysis&amp;#039;&amp;#039; algorithm from scratch, do the following.&lt;br /&gt;
In &amp;#039;&amp;#039;Trigger/TrigAnalysis/TrigAnalysisExapmples/src&amp;#039;&amp;#039; create a file TriggerAnalysis.cxx and its header, TriggerAnalysis.h (note that in most other packages, the header files are stored in &amp;#039;&amp;#039;TrigAnalysisExapmples/TrigAnalysisExapmples&amp;#039;&amp;#039;. Your algorithm should be able to do the following&lt;br /&gt;
* retrieve the reconstructed and the trigger objects &lt;br /&gt;
* make some trigger studies&lt;br /&gt;
* save everything to a ntuple&lt;br /&gt;
In order to create a nice ntuple (which would even be re-readable by athena), you should inherit from CBNT_AthenaAwareBase. Alternatively, you can inherit from AthAlgorithm.&lt;/div&gt;</summary>
		<author><name>Lhep</name></author>
	</entry>
</feed>