Locked History Actions

Diff for "ANAROOT/ROOTの小技"

Differences between revisions 9 and 10
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
<<TableOfContents(3)>>

ANAROOT/ROOTの小技について、ここに記述してください。

bashに入る

root[0] .bash

値の評価

cuiで行末に";"を付けない場合は値の評価をしてくれる。

root[0] double x = 1;
root[1] x
(double))1.00000000000000000e+00

この機能はポインタがNullでないことを確かめるのに便利。

起動時にrootファイル読み込み

root hoge.root

で起動と同時にrootファイルが読み込まれる。

Canvas右上のEntriesとかでヒストグラムの右上が隠れるのが嫌

gStyle->SetStatStyle(0)

で透明になります。

2次元ヒストのZCOL表示をANAPAWみたいに設定する

gStyle->SetPalette(1)