{"width":"100%","type":"rich","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fphyspolyglot.hateblo.jp%2Fentry%2F2014%2F05%2F13%2F151131\" title=\"TTree\u304b\u3089TGraph\u3092\u3064\u304f\u308b - physpolyglot\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["ROOT"],"title":"TTree\u304b\u3089TGraph\u3092\u3064\u304f\u308b","description":"\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308c\u3070\u826f\u3044\u3002 // TTree *tree; tree->Draw(\"y:x\",cut); const Int_t nPoints = tree->GetSelectedRows(); TGraph *g = new TGraph(nPoints, tree->GetV1(), tree->GetV2()); \u5404\u70b9\u306e\u5024\u3092\u4fdd\u6301\u3057\u305f\u3044\u5834\u5408\u306f\u3001 TVectorD *vec_x = new TVectorD(nPoints, tree->GetV1()); TVectorD *vec_y = new TVectorD(nPoints, tree->GetV2()); \u3068\u3067\u3082\u3059\u308b\u3002","published":"2014-05-13 15:11:31","image_url":null,"url":"https://physpolyglot.hateblo.jp/entry/2014/05/13/151131","version":"1.0","blog_title":"physpolyglot","height":"190","author_name":"xy_nak","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/xy_nak/","blog_url":"https://physpolyglot.hateblo.jp/"}