<?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: Project Help</title>
	<atom:link href="http://physics.bu.edu/sites/geneva-program/2010/02/26/project-help/feed/" rel="self" type="application/rss+xml" />
	<link>http://physics.bu.edu/sites/geneva-program/2010/02/26/project-help/</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/26/project-help/comment-page-1/#comment-79</link>
		<dc:creator>edgar</dc:creator>
		<pubDate>Fri, 26 Feb 2010 17:07:23 +0000</pubDate>
		<guid isPermaLink="false">http://physics.bu.edu/sites/geneva-program/2010/02/26/project-help/#comment-79</guid>
		<description><![CDATA[the idea is that once you start looping over the events, you check if that event passed a given trigger condition, if it did, you can go ahead and start calculating the invariant mass of the &quot;hard&quot; di-muon system for the event and fill the histo so you can then plot it.  Calculating the invariant mass first and then checking for the trigger bit (like in the above comment) is also fine, but it is not optimal because you can save some computing time by not going through the calculation of the invariant mass if that event did not pass the trigger.]]></description>
		<content:encoded><![CDATA[<p>the idea is that once you start looping over the events, you check if that event passed a given trigger condition, if it did, you can go ahead and start calculating the invariant mass of the &#8220;hard&#8221; di-muon system for the event and fill the histo so you can then plot it.  Calculating the invariant mass first and then checking for the trigger bit (like in the above comment) is also fine, but it is not optimal because you can save some computing time by not going through the calculation of the invariant mass if that event did not pass the trigger.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: edgar</title>
		<link>http://physics.bu.edu/sites/geneva-program/2010/02/26/project-help/comment-page-1/#comment-77</link>
		<dc:creator>edgar</dc:creator>
		<pubDate>Fri, 26 Feb 2010 15:54:39 +0000</pubDate>
		<guid isPermaLink="false">http://physics.bu.edu/sites/geneva-program/2010/02/26/project-help/#comment-77</guid>
		<description><![CDATA[You can load the trg branches just like you load the mu_* branches, and then, after you calculate the inv mass, use the C++ if statement to just fill the histograms for those events that satisfy that particular trg, something like:

if (trg_blah == 1) hinv-&gt;Fill(invm);

this would be equivalent to doing

h1-&gt;Draw(“invariantmass”,”trg_blah==1&quot;) 

from the command line if you had the invariantmass variable in there.


Additional hint: use the double muon trigger.]]></description>
		<content:encoded><![CDATA[<p>You can load the trg branches just like you load the mu_* branches, and then, after you calculate the inv mass, use the C++ if statement to just fill the histograms for those events that satisfy that particular trg, something like:</p>
<p>if (trg_blah == 1) hinv-&gt;Fill(invm);</p>
<p>this would be equivalent to doing</p>
<p>h1-&gt;Draw(“invariantmass”,”trg_blah==1&#8243;) </p>
<p>from the command line if you had the invariantmass variable in there.</p>
<p>Additional hint: use the double muon trigger.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chelsea</title>
		<link>http://physics.bu.edu/sites/geneva-program/2010/02/26/project-help/comment-page-1/#comment-76</link>
		<dc:creator>chelsea</dc:creator>
		<pubDate>Fri, 26 Feb 2010 12:12:50 +0000</pubDate>
		<guid isPermaLink="false">http://physics.bu.edu/sites/geneva-program/2010/02/26/project-help/#comment-76</guid>
		<description><![CDATA[Oops, sorry for some reason about half of my post was deleted.  The command that I used (which came from the &quot;mytree-&gt;Draw&quot; command we discussed earlier) was h1-&gt;Draw(&quot;invariantmass&quot;,&quot;invariantmass&lt;200&amp;&amp;trg_L1MuOpen==1&quot;), where h1 is the name of the histogram and I have set the branch address for invariant mass.
The error I receive is &quot;unknown branch: Can&#039;t call TH1F::Draw&quot;.]]></description>
		<content:encoded><![CDATA[<p>Oops, sorry for some reason about half of my post was deleted.  The command that I used (which came from the &#8220;mytree-&gt;Draw&#8221; command we discussed earlier) was h1-&gt;Draw(&#8220;invariantmass&#8221;,&#8221;invariantmass&lt;200&amp;&amp;trg_L1MuOpen==1&quot;), where h1 is the name of the histogram and I have set the branch address for invariant mass.<br />
The error I receive is &quot;unknown branch: Can&#039;t call TH1F::Draw&quot;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>