-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathntuple_merge.C
59 lines (33 loc) · 1.55 KB
/
ntuple_merge.C
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
void ntuple_merge() {
TChain chainB("PreSelection"); //name of ntuple
TString name;
for(int i=0; i<=613; i++) {
name.Form("%d",i);
chainB.Add("/eos/uscms/store/user/tmishra/skim_JetHT_condor//eos/uscms/store/user/tmishra/skim_JetHT_condor/skim_JetHT_B_"+name+".root");
}
chainB.Merge("skim_JetHT_B.root");
TChain chainC("PreSelection"); //name of ntuple
for(int i=0; i<=940; i++) {
name.Form("%d",i);
chainC.Add("/eos/uscms/store/user/tmishra/skim_JetHT_condor//eos/uscms/store/user/tmishra/skim_JetHT_condor/skim_JetHT_C_"+name+".root");
}
chainC.Merge("skim_JetHT_C.root");
TChain chainD("PreSelection"); //name of ntuple
for(int i=0; i<=437; i++) {
name.Form("%d",i);
chainD.Add("/eos/uscms/store/user/tmishra/skim_JetHT_condor//eos/uscms/store/user/tmishra/skim_JetHT_condor/skim_JetHT_D_"+name+".root");
}
chainD.Merge("skim_JetHT_D.root");
TChain chainE("PreSelection"); //name of ntuple
for(int i=0; i<=1028; i++) {
name.Form("%d",i);
chainE.Add("/eos/uscms/store/user/tmishra/skim_JetHT_condor//eos/uscms/store/user/tmishra/skim_JetHT_condor/skim_JetHT_E_"+name+".root");
}
chainE.Merge("skim_JetHT_E.root");
TChain chainF("PreSelection"); //name of ntuple
for(int i=0; i<=1269; i++) {
name.Form("%d",i);
chainF.Add("/eos/uscms/store/user/tmishra/skim_JetHT_condor//eos/uscms/store/user/tmishra/skim_JetHT_condor/skim_JetHT_F_"+name+".root");
}
chainF.Merge("skim_JetHT_F.root");
}