groups

name language licence
TClonesArray example C++ Other
Make command Other Other
Merging trees using a TChain C++ Other
Drawing a TTree Other Other
Sort a tree C++ Other
TTree Scan column size Other Other
Untitled Snippet Other Other
Remove ctrl-M line breaks Other Other

< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 >



language: C++
licence: Other

Merging trees using a TChain

options: view full snippetsend to code collector
   TChain *ch = new TChain("data");

   for ( Int_t f = 0 ; f < n_files ; ++f ) {

      cout << " ... processing file "
           << f << " " << to_process[f] << endl;

      ch->Add(to_process[f]);

   }

   ch->Merge(output_name);

	
(Continues...)