在PyROOT一個TTree訪問嵌套的容器,它很容易從樹上價值觀閱讀,即打印葉val: file = TFile('file.root')
tree = file.Get('tree')
for entry in tree:
print entry.val
也容易讀值了STL vector<float>的, vec: for entry in tree:
print e
節省字符串轉換成TTree後 std::string fProjNameIn, fProjNameOut;
TTree *tTShowerHeader;
tTShowerHeader = new TTree("tTShowerHeader","Parameters of the Shower");
tTShowerHeader->Branch("fProjName",&fProjNameIn
我正在寫一個C++代碼在ROOT平臺上。我收到以下錯誤: *** Break *** segmentation violation
gdb not found, need it for stack trace
Root > Function main() busy flag cleared
我只是想知道這意味着什麼(一般)。