<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xy_nak</author_name>
  <author_url>https://blog.hatena.ne.jp/xy_nak/</author_url>
  <blog_title>physpolyglot</blog_title>
  <blog_url>https://physpolyglot.hateblo.jp/</blog_url>
  <categories>
    <anon>ROOT</anon>
  </categories>
  <description>以下のようにすれば良い。 // TTree *tree; tree-&gt;Draw(&quot;y:x&quot;,cut); const Int_t nPoints = tree-&gt;GetSelectedRows(); TGraph *g = new TGraph(nPoints, tree-&gt;GetV1(), tree-&gt;GetV2()); 各点の値を保持したい場合は、 TVectorD *vec_x = new TVectorD(nPoints, tree-&gt;GetV1()); TVectorD *vec_y = new TVectorD(nPoints, tree-&gt;GetV2()); とでもする。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fphyspolyglot.hateblo.jp%2Fentry%2F2014%2F05%2F13%2F151131&quot; title=&quot;TTreeからTGraphをつくる - physpolyglot&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-05-13 15:11:31</published>
  <title>TTreeからTGraphをつくる</title>
  <type>rich</type>
  <url>https://physpolyglot.hateblo.jp/entry/2014/05/13/151131</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
