FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
macro
production
scripts
production/scripts/merge.C
Go to the documentation of this file.
1
int
merge
(
TString
ntp=
""
,
TString
fout=
""
,
TString
f1
=
""
,
TString
f2
=
""
,
TString
f3
=
""
,
TString
f4
=
""
,
TString
f5=
""
)
2
{
3
if
(ntp==
""
|| fout==
""
||
f1
==
""
)
4
{
5
cout <<
"\nmerge : merges a TTree with certain name from different files to one.\n\n"
;
6
cout <<
"USAGE: merge(TString ntp, TString outfile, TString filepattern 1, ... TString filepattern 5)\n\n"
;
7
cout <<
" ntp : name of the TTree.\n"
;
8
cout <<
" outfile : output file name.\n"
;
9
cout <<
" filepattern 1 : 1st file pattern.\n"
;
10
cout <<
" filepattern 2 : 2nd file pattern (optional).\n"
;
11
cout <<
" ...\n"
;
12
cout <<
" filepattern 2 : 5th file pattern (optional).\n\n"
;
13
14
return
0;
15
}
16
17
TChain
n
(ntp);
18
19
n.Add(
f1
);
20
if
(
f2
!=
""
) n.Add(
f2
);
21
if
(
f3
!=
""
) n.Add(
f3
);
22
if
(
f4
!=
""
) n.Add(
f4
);
23
if
(f5!=
""
) n.Add(f5);
24
25
n.Merge(fout);
26
27
return
0;
28
}
f1
TF1 * f1
Definition:
reco_analys2.C:50
n
int n
Definition:
HypStatDecay.cxx:21
f4
TFile * f4
Definition:
ReadMesDecCorrRes.C:9
merge
int merge(TString ntp="", TString fout="", TString f1="", TString f2="", TString f3="", TString f4="", TString f5="")
Definition:
production/scripts/merge.C:1
f3
TFile * f3
Definition:
ReadMesDecCorrRes.C:8
TString
TString
Definition:
SimCompleteLinkDef.h:6
f2
TFile * f2
Definition:
ReadMesDecCorrRes.C:5
Generated on Sun Aug 18 2019 03:01:15 for FairRoot/PandaRoot by
1.8.8