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:wantto11 [GiriWiki]

ユーザ用ツール

サイト用ツール


ja:root:wantto11

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



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

====== TChainでループを回している時、参照しているイベントの属するTTreeが記録されたファイル名を知りたい ====== ---- TChainを使ってイベント毎に処理をさせている時、当該イベントがどのファイルに属しているtreeに含まれているイベントなのかを知るのには、 <code cpp> TChain *Chain = new TChain("..."); Long64_t nentry = Chain->GetEntries(); for( Long64_t ientry = 0 ; ientry < nentry ; ++ientry ){ Chain->GetEntry(ientry); ..... TFile *CurrentFile = Chain->GetFile(); Char_t *filename = CurrentFile->GetName(); ..... </code> のようにしてやればよい。 ややこしい版のやり方としては <code> TFile *CurrentFile = Chain->GetFile(); TUrl *url = CurrentFile->GetEndpointUrl() Char_t *filename = url->GetFile() </code> というようなやり方でもできるよう。非推奨。

ja/root/wantto11.1494082726.txt.gz · 最終更新: 2017/05/06 14:58 by kota