Deprecated: Array and string offset access syntax with curly braces is deprecated in /mnt/hep_web/hep_web/member/n-kota/dokuwiki/inc/init.php on line 542
ja:root:tproof [GiriWiki]

ユーザ用ツール

サイト用ツール


ja:root:tproof

以前のリビジョンの文書です



Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /mnt/hep_web/hep_web/member/n-kota/dokuwiki/inc/parser/handler.php on line 1458

Warning: Declaration of syntax_plugin_note::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /mnt/hep_web/hep_web/member/n-kota/dokuwiki/lib/plugins/note/syntax.php on line 79

Warning: Declaration of syntax_plugin_note::render($mode, &$renderer, $indata) should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /mnt/hep_web/hep_web/member/n-kota/dokuwiki/lib/plugins/note/syntax.php on line 101

Warning: preg_match(): Compilation failed: invalid range in character class at offset 3120 in /mnt/hep_web/hep_web/member/n-kota/dokuwiki/inc/parser/lexer.php on line 118
A PCRE internal error occured. This might be caused by a faulty plugin

====== TProof ====== ---- マルチコアリソースを有効活用するのに便利なクラスらしい。 TChainでのDrawにしか使ったことがないのでその話。 TChain では複数のFileからtreeをつなぎ合わせてくるが、Drawの時にその処理を並列化してくれるというもの。 <code cpp> TProof::Open(""); TChain *tree = new TChain("tree"); tree->Add(....); tree->Add(....); tree->SetProof(); TH1D *h = new TH1D("h","",100,0,100); tree->Draw("val>>h","",""); </code> 並列化して詰めたヒストグラムをあとでマージするという工程をとるからか、ヒストグラムのbinはあらかじめ指定する必要があるようだ。\\ (tree->Draw("val>>h(100,0,100)","","") のような形式でもOK) Draw()じゃなくてGetEntries()でも同じようにできるかと思ってためしてみたが、うまくいかなかった。\\ (カット条件を指定したが、条件に関わらず同じ値(全エントリー数)が返ってきた) TProofをつかうと、ログが~/.proof/以下に残るようだ。 C++ のネイティブとして使う場合は、 #include <TProof.h> Makeの時にライブラリを呼んでやる ( -lProof をMakefileに付け足す)ことが必要。

ja/root/tproof.1538183209.txt.gz · 最終更新: 2018/09/29 01:06 by kota