FairRoot/PandaRoot
mergemct.C
Go to the documentation of this file.
1 int mergemct(TString ntp, TString fout, TString f1, TString f2="", TString f3="", TString f4="", TString f5="")
2 {
3  TChain n(ntp);
4 
5  n.Add(f1);
6  if (f2!="") n.Add(f2);
7  if (f3!="") n.Add(f3);
8  if (f4!="") n.Add(f4);
9  if (f5!="") n.Add(f5);
10 
11  TFile f(fout,"RECREATE");
12  TTree *newtree = n.CopyTree("xmct||mode%1000==900");
13  f.Write();
14  f.Close();
15  return 0;
16 }
TF1 * f1
Definition: reco_analys2.C:50
int n
TFile * f4
TFile * f3
int mergemct(TString ntp, TString fout, TString f1, TString f2="", TString f3="", TString f4="", TString f5="")
Definition: mergemct.C:1
TFile * f
Definition: bump_analys.C:12
TFile * f2