root
Jennie Zheng
这个作者很懒,什么都没留下…
展开
-
ROOT软件使用心得(不断更新)
1. 用vector时,声明的时候最好用vector<int> x; 这种。如果用Int_t可能会报出奇怪的错误。原创 2021-07-19 13:50:27 · 131 阅读 · 0 评论 -
用ROOT读取文本文件中的数据
解读官方教程中的tree/basic.C#include "Riostream.h"void basic() {//找到.dat文件的路径 TString dir = gROOT->GetTutorialDir(); dir.Append("/tree/"); dir.ReplaceAll("/./","/");// 打开.dat文件 ifstream in; in.open(Form("%sbasic.dat",dir.Data()));// 文件中有...原创 2021-07-14 21:28:38 · 1418 阅读 · 0 评论 -
root中的常用指令
启动root root root -b :不弹logo root -l : 不弹帮助框 在启动root时打开特定文件root total.root -l运行.c文件 .L AAA.C //导入该.C 文件 AAA() //运行其中的AAA()函数 .x AAA.C //直接运行该.C文件 打开root文件浏览器TBrowser t在root中使用bash(正常命令行的功能)加.!例如 .! ls...原创 2021-07-14 21:42:38 · 2845 阅读 · 0 评论