<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: About AnalyzeRootuple.C</title>
	<atom:link href="http://physics.bu.edu/sites/geneva-program/2010/02/20/about-analyzerootuple-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://physics.bu.edu/sites/geneva-program/2010/02/20/about-analyzerootuple-c/</link>
	<description>Just another Boston University Physics weblog</description>
	<lastBuildDate>Mon, 19 Apr 2010 07:15:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
	<item>
		<title>By: edgar</title>
		<link>http://physics.bu.edu/sites/geneva-program/2010/02/20/about-analyzerootuple-c/comment-page-1/#comment-61</link>
		<dc:creator>edgar</dc:creator>
		<pubDate>Sat, 20 Feb 2010 17:46:56 +0000</pubDate>
		<guid isPermaLink="false">http://physics.bu.edu/sites/geneva-program/?p=450#comment-61</guid>
		<description><![CDATA[Hi Elim,

First, it was a mistake to declare mu_charge as a float, it should have been an int, because that&#039;s how it was declared in the root file itself; you can check that opening the file with TBrowser just like we did in class.  The dimension of 200 was just set to be large enough so it can contain all muons in each event.  This can be made more elegant, but it&#039;s a good start.
As far as the SetBranchAddress method (it&#039;s not AddBranchAddress :) ), what you originally thought is true.  We set the branch address to a variable we declare (of the same type obviously).  The integer it returns is just a status notifier, as I understand.  If you feel like digging deeper, you can actually check what the method does by clicking on its name: http://root.cern.ch/root/html/src/TTree.cxx.html#uSIsj
Edgar]]></description>
		<content:encoded><![CDATA[<p>Hi Elim,</p>
<p>First, it was a mistake to declare mu_charge as a float, it should have been an int, because that&#8217;s how it was declared in the root file itself; you can check that opening the file with TBrowser just like we did in class.  The dimension of 200 was just set to be large enough so it can contain all muons in each event.  This can be made more elegant, but it&#8217;s a good start.<br />
As far as the SetBranchAddress method (it&#8217;s not AddBranchAddress <img src='http://physics.bu.edu/sites/geneva-program/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ), what you originally thought is true.  We set the branch address to a variable we declare (of the same type obviously).  The integer it returns is just a status notifier, as I understand.  If you feel like digging deeper, you can actually check what the method does by clicking on its name: <a href="http://root.cern.ch/root/html/src/TTree.cxx.html#uSIsj" rel="nofollow">http://root.cern.ch/root/html/src/TTree.cxx.html#uSIsj</a><br />
Edgar</p>
]]></content:encoded>
	</item>
</channel>
</rss>