以前のリビジョンの文書です
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
===== Progress Bar を表示させたい =====
Tree から1イベントずつ取ってきて処理するような解析をよくやるが、その時にprogress bar を表示させたい。
<code c>
const Long64_t nentry = tree->GetEntries(); // Loopさせるイベント数を取得
const Long64_t n_100 = nentry/100; // イベント数÷100 を定義しておく
cout << "# events : " << nentry << endl;
for( Long64_t ientry = 0 ; ientry < nentry ; ++ientry ){
if((ientry % n_100 == 0) && (ientry != 0)){
if( ientry % (n_100 * 10) == 0 )
std::cerr << (ientry / n_100) << "% processed. " << std::endl; // 10%毎に表示、改行。
else if( ientry / n_100 < 10 )
std::cerr << " " << (ientry / n_100) << "% " << std::flush; // 1%毎に表示。改行なし。1桁数(1〜9)の前に空白。
else
std::cerr << (ientry / n_100) << "% " << std::flush; // 1%毎に表示。改行なし。
}
...
</code>
coutじゃなくてcerrを使うと良いとかどうとか。。。