groups

name language licence
Untitled Snippet Other Other
Command line arguments C++ Other
Read data from a file C++ Other
Merging trees using a TChain C++ Other
Sort a tree C++ Other
TTree Scan column size Other Other
Untitled Snippet Other Other
Event processed Other Other

< 1 2 3 4 5 >



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...)