ShadowKiller' blog

一个公开的网络记事本,并且博主特别的懒。比猪还懒。

[cernRoot]how to deal with TPavetext->SetTextAngle()?

https://root.cern.ch/root/roottalk/roottalk98/2083.html Charles Leggett wrote: > Is SetTextAngle() implemented for TPaveText objects? I can't seem...

2015-06-04 22:10:35

阅读数:390

评论数:0

[cernRoot]Get graphs from TMultiGraph

int ngr = mg[4]->GetListOfGraphs()->GetSize(); TList * gr_list = mg[0]->GetListOfGraphs(); TGraph * gr0 = (TGraph *)gr_list->Firs...

2015-06-04 14:13:06

阅读数:279

评论数:0

[cernRoot] Getting Contours From TH2D

double contours[3] = {chisqmin + 2.3, chisqmin + 6.3, chisqmin + 9}; // double contours[1] = {chisqmin + 2.3}; h2d->SetContour(3, contours); h2d-&...

2015-06-04 13:55:47

阅读数:444

评论数:0

[cernRoot]How to get tree name from root file

TIter nextkey( root_file->GetListOfKeys() ); TKey *key, *oldkey=0; while ( (key = (TKey*)nextkey())) { TObject *obj = key->ReadObj...

2015-06-04 13:54:14

阅读数:282

评论数:0

[c++] random number

#include #include #include srand(unsigned(time(0)));/*use time as random number seed*/double random(double start,double end){ return start+(end-start...

2015-06-02 21:46:04

阅读数:305

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭