9 int tree2csv( TString filelist, TString csv_out = TString(
"output_raw.txt") )
12 TChain chain(
"candidates");
22 if (!in.good())
break;
23 cout <<
"Adding input file " << fname << endl;
34 TString cols_keep(
"*");
37 ((TTreePlayer*)(chain.GetPlayer()))->SetScanRedirect(
true);
38 ((TTreePlayer*)(chain.GetPlayer()))->SetScanFileName( csv_out );
39 chain.SetScanField(0);
47 chain.Scan( cols_keep , select_jetcandidates ,
"colsize=30");