| name | language | licence |
|---|---|---|
| Make thumbnails for simpleviewer | Shell | Other |
| Maximum likelihood, minuit example | C++ | Other |
| Merging trees | C++ | Other |
| Monospace | Shell | Other |
| Objective-C Starter | Objective-C | Other |
| Open a file with a specific application | Shell | Other |
| PHP Starter | PHP | Other |
| Match any character except a new line | Shell | Other |
< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 >
language: C++
licence: Other
Merging trees
options: view full snippet • send to code collector
{
TList tree_list;
for ( Int_t i = 1 ; i < 7 ; ++i ) {
TString f_name = Form("salt_ev_%d.root", i);
TFile *f_in = new TFile(f_name);
TTree *t = (TTree*)f_in->Get("ntp");
tree_list.Add(t);
}
TFile *f_out = new TFile("salt_ev.root","recreate");
TTree::MergeTrees(&tree_list);



library
latex (12)