updates in the PWGPP/TRD
[u/mrichter/AliRoot.git] / PWGPP / TRD / macros / makeTrendingDB.C
CommitLineData
668a0654 1#if ! defined (__CINT__) || defined (__MAKECINT__)
2#include "TSystem.h"
3#include "TROOT.h"
4#include "TFile.h"
5#include "TTree.h"
6#include "TH1.h"
7#include "TF1.h"
8#include "TCanvas.h"
9#include "TError.h"
10#include "PWGPP/TRD/info/AliTRDtrendingManager.h"
11
12#endif
13
847569f2 14void makeTrendingDB(const Char_t *fl)
15{
16// Make trending of variable list "tl" from trending file list "fl"
17// The trending value list should be formated "var1:var2:var3"
18// The trending file from the list should be found on a path formated "your path"/runId/TRD.PerformanceTrend.root
19 gSystem->Load("libANALYSIS.so");
20 gSystem->Load("libANALYSISalice.so");
21 gSystem->Load("libTENDER.so");
22 gSystem->Load("libCORRFW.so");
23 gSystem->Load("libPWGPP.so");
24 gSystem->Load("libPWGmuon.so");
25
0f2c4c4f 26 const Int_t nt(316);
847569f2 27 const Char_t *tvn[nt][2] = {
28 {"TRDcheckDET_NTracksEvent", "<N_{track}/Event>"},
29 {"TRDcheckDET_NTracksEventRMS", "RMS(N_{track}/Event)"},
30 {"TRDcheckDET_NTracksSector", "<N_{track}/Sector>"},
31 {"TRDcheckDET_NClustersTrack", "<N_{cls}/Track>"},
32 {"TRDcheckDET_NClustersTrackRMS", "RMS(N_{cls}/Track)"},
33 {"TRDcheckDET_NClustersTracklet", "<N_{cls}/Tracklet>"},
34 {"TRDcheckDET_NClustersTrackletRMS", "RMS(N_{cls}/Tracklet)"},
35 {"TRDcheckDET_NTrackletsTrack", "<N_{tracklet}/Track>"},
36 {"TRDcheckDET_NTrackletsTrackRMS", "RMS(N_{tracklet}/Track)"},
37 {"TRDcheckDET_ChargeTracklet", "<dQdl>"},
38 {"TRDcheckDET_ChargeTrackletRMS", "RMS(dQdl)"},
39 {"TRDcheckDET_PHplateau", "Plateau(<PH>)"},
40 {"TRDcheckDET_PHslope", "Slope(<PH>)"},
41 {"TRDcheckDET_PHamplificationPeak", "Peak(<PH>)"},
42//=======================================================
0f2c4c4f 43 {"TRDefficiency_pt", "TPC-TRD efficiency"},
44 {"TRDefficiency_pt0", "Eff.| #it{p_{t}[GeV/c]<0.5}"},
45 {"TRDefficiency_pt1", "Eff.| #it{0.5<=p_{t}[GeV/c]<0.8}"},
46 {"TRDefficiency_pt2", "Eff.| #it{0.8<=p_{t}[GeV/c]<1.5}"},
47 {"TRDefficiency_pt3", "Eff.| #it{1.5<=p_{t}[GeV/c]<5.0}"},
48 {"TRDefficiency_pt4", "Eff.| #it{5.0<=p_{t}[GeV/c]}"},
49//=======================================================
50 {"TRDresolution_ClS0", "Cl :: #sigma(#Deltay) [cm] | Ly0"},
51 {"TRDresolution_ClS1", "Cl :: #sigma(#Deltay) [cm] | Ly1"},
52 {"TRDresolution_ClS2", "Cl :: #sigma(#Deltay) [cm] | Ly2"},
53 {"TRDresolution_ClS3", "Cl :: #sigma(#Deltay) [cm] | Ly3"},
54 {"TRDresolution_ClS4", "Cl :: #sigma(#Deltay) [cm] | Ly4"},
55 {"TRDresolution_ClS5", "Cl :: #sigma(#Deltay) [cm] | Ly5"},
56//=======================================================
57 {"TRDresolution_TrkltY0", "Trklt :: <#Deltay> [cm] | Ly0"},
58 {"TRDresolution_TrkltY1", "Trklt :: <#Deltay> [cm] | Ly1"},
59 {"TRDresolution_TrkltY2", "Trklt :: <#Deltay> [cm] | Ly2"},
60 {"TRDresolution_TrkltY3", "Trklt :: <#Deltay> [cm] | Ly3"},
61 {"TRDresolution_TrkltY4", "Trklt :: <#Deltay> [cm] | Ly4"},
62 {"TRDresolution_TrkltY5", "Trklt :: <#Deltay> [cm] | Ly5"},
63 {"TRDresolution_TrkltYS0", "Trklt :: #sigma(#Deltay) [cm] | Ly0"},
64 {"TRDresolution_TrkltYS1", "Trklt :: #sigma(#Deltay) [cm] | Ly1"},
65 {"TRDresolution_TrkltYS2", "Trklt :: #sigma(#Deltay) [cm] | Ly2"},
66 {"TRDresolution_TrkltYS3", "Trklt :: #sigma(#Deltay) [cm] | Ly3"},
67 {"TRDresolution_TrkltYS4", "Trklt :: #sigma(#Deltay) [cm] | Ly4"},
68 {"TRDresolution_TrkltYS5", "Trklt :: #sigma(#Deltay) [cm] | Ly5"},
69//=======================================================
70 {"TRDresolution_TrkInYnL0", "TrkIn :: <#Deltay>^{e-}| #it{p_{t}[GeV/c]<0.5} [cm]"},
71 {"TRDresolution_TrkInYnl0", "TrkIn :: <#Deltay>^{e-}| #it{0.5<=p_{t}[GeV/c]<0.8} [cm]"},
72 {"TRDresolution_TrkInYni0", "TrkIn :: <#Deltay>^{e-}| #it{0.8<=p_{t}[GeV/c]<1.5} [cm]"},
73 {"TRDresolution_TrkInYnh0", "TrkIn :: <#Deltay>^{e-}| #it{1.5<=p_{t}[GeV/c]<5.0} [cm]"},
74 {"TRDresolution_TrkInYnH0", "TrkIn :: <#Deltay>^{e-}| #it{5.0<=p_{t}[GeV/c]} [cm]"},
75 {"TRDresolution_TrkInYn0", "TrkIn :: <#Deltay>^{e-} [cm]"},
76 {"TRDresolution_TrkInYSnL0", "TrkIn :: RMS(#Deltay)^{e-}| #it{p_{t}[GeV/c]<0.5} [cm]"},
77 {"TRDresolution_TrkInYSnl0", "TrkIn :: RMS(#Deltay)^{e-}| #it{0.5<=p_{t}[GeV/c]<0.8} [cm]"},
78 {"TRDresolution_TrkInYSni0", "TrkIn :: RMS(#Deltay)^{e-}| #it{0.8<=p_{t}[GeV/c]<1.5} [cm]"},
79 {"TRDresolution_TrkInYSnh0", "TrkIn :: RMS(#Deltay)^{e-}| #it{1.5<=p_{t}[GeV/c]<5.0} [cm]"},
80 {"TRDresolution_TrkInYSnH0", "TrkIn :: RMS(#Deltay)^{e-}| #it{5.0<=p_{t}[GeV/c]} [cm]"},
81 {"TRDresolution_TrkInYSn0", "TrkIn :: RMS(#Deltay)^{e-} [cm]"},
82 {"TRDresolution_TrkInPhnL0", "TrkIn :: <#Delta#phi>^{e-}| #it{p_{t}[GeV/c]<0.5} [deg]"},
83 {"TRDresolution_TrkInPhnl0", "TrkIn :: <#Delta#phi>^{e-}| #it{0.5<=p_{t}[GeV/c]<0.8} [deg]"},
84 {"TRDresolution_TrkInPhni0", "TrkIn :: <#Delta#phi>^{e-}| #it{0.8<=p_{t}[GeV/c]<1.5} [deg]"},
85 {"TRDresolution_TrkInPhnh0", "TrkIn :: <#Delta#phi>^{e-}| #it{1.5<=p_{t}[GeV/c]<5.0} [deg]"},
86 {"TRDresolution_TrkInPhnH0", "TrkIn :: <#Delta#phi>^{e-}| #it{5.0<=p_{t}[GeV/c]} [deg]"},
668a0654 87 {"TRDresolution_TrkInPhn0", "TrkIn :: <#Delta#phi>^{e-} [deg]"},
0f2c4c4f 88 {"TRDresolution_TrkInPhSnL0", "TrkIn :: RMS<#Delta#phi>^{e-}| #it{p[GeV/c]<0.5} [deg]"},
89 {"TRDresolution_TrkInPhSnl0", "TrkIn :: RMS<#Delta#phi>^{e-}| #it{0.5<=p[GeV/c]<0.8} [deg]"},
90 {"TRDresolution_TrkInPhSni0", "TrkIn :: RMS<#Delta#phi>^{e-}| #it{0.8<=p[GeV/c]<1.5} [deg]"},
91 {"TRDresolution_TrkInPhSnh0", "TrkIn :: RMS<#Delta#phi>^{e-}| #it{1.5<=p[GeV/c]<5.0} [deg]"},
92 {"TRDresolution_TrkInPhSnH0", "TrkIn :: RMS<#Delta#phi>^{e-}| #it{5.0<=p[GeV/c]} [deg]"},
93 {"TRDresolution_TrkInPhSn0", "TrkIn :: RMS<#Delta#phi>^{e-} [deg]"},
94 {"TRDresolution_TrkInQnL0", "TrkIn :: MPV(dQdl)^{e-}| #it{p[GeV/c]<0.5} [a.u.]"},
95 {"TRDresolution_TrkInQnl0", "TrkIn :: MPV(dQdl)^{e-}| #it{0.5<=p[GeV/c]<0.8} [a.u.]"},
96 {"TRDresolution_TrkInQni0", "TrkIn :: MPV(dQdl)^{e-}| #it{0.8<=p[GeV/c]<1.5} [a.u.]"},
97 {"TRDresolution_TrkInQnh0", "TrkIn :: MPV(dQdl)^{e-}| #it{1.5<=p[GeV/c]<5.0} [a.u.]"},
98 {"TRDresolution_TrkInQnH0", "TrkIn :: MPV(dQdl)^{e-}| #it{5.0<=p[GeV/c]} [a.u.]"},
668a0654 99 {"TRDresolution_TrkInQn0", "TrkIn :: MPV(dQdl)^{e-} [a.u.]"},
0f2c4c4f 100 {"TRDresolution_TrkInQSnL0", "TrkIn :: <dQdl>^{e-}| #it{p[GeV/c]<0.5} [a.u.]"},
101 {"TRDresolution_TrkInQSnl0", "TrkIn :: <dQdl>^{e-}| #it{0.5<=p[GeV/c]<0.8} [a.u.]"},
102 {"TRDresolution_TrkInQSni0", "TrkIn :: <dQdl>^{e-}| #it{0.8<=p[GeV/c]<1.5} [a.u.]"},
103 {"TRDresolution_TrkInQSnh0", "TrkIn :: <dQdl>^{e-}| #it{1.5<=p[GeV/c]<5.0} [a.u.]"},
104 {"TRDresolution_TrkInQSnH0", "TrkIn :: <dQdl>^{e-}| #it{5.0<=p[GeV/c]} [a.u.]"},
668a0654 105 {"TRDresolution_TrkInQSn0", "TrkIn :: <dQdl>^{e-} [a.u.]"},
0f2c4c4f 106 {"TRDresolution_TrkInYnL1", "TrkIn :: <#Deltay>^{#mu#pi-}| #it{p_{t}[GeV/c]<0.5} [cm]"},
107 {"TRDresolution_TrkInYnl1", "TrkIn :: <#Deltay>^{#mu#pi-}| #it{0.5<=p_{t}[GeV/c]<0.8} [cm]"},
108 {"TRDresolution_TrkInYni1", "TrkIn :: <#Deltay>^{#mu#pi-}| #it{0.8<=p_{t}[GeV/c]<1.5} [cm]"},
109 {"TRDresolution_TrkInYnh1", "TrkIn :: <#Deltay>^{#mu#pi-}| #it{1.5<=p_{t}[GeV/c]<5.0} [cm]"},
110 {"TRDresolution_TrkInYnH1", "TrkIn :: <#Deltay>^{#mu#pi-}| #it{5.0<=p_{t}[GeV/c]} [cm]"},
111 {"TRDresolution_TrkInYn1", "TrkIn :: <#Deltay>^{#mu#pi-} [cm]"},
112 {"TRDresolution_TrkInYSnL1", "TrkIn :: RMS(#Deltay)^{#mu#pi-}| #it{p_{t}[GeV/c]<0.5} [cm]"},
113 {"TRDresolution_TrkInYSnl1", "TrkIn :: RMS(#Deltay)^{#mu#pi-}| #it{0.5<=p_{t}[GeV/c]<0.8} [cm]"},
114 {"TRDresolution_TrkInYSni1", "TrkIn :: RMS(#Deltay)^{#mu#pi-}| #it{0.8<=p_{t}[GeV/c]<1.5} [cm]"},
115 {"TRDresolution_TrkInYSnh1", "TrkIn :: RMS(#Deltay)^{#mu#pi-}| #it{1.5<=p_{t}[GeV/c]<5.0} [cm]"},
116 {"TRDresolution_TrkInYSnH1", "TrkIn :: RMS(#Deltay)^{#mu#pi-}| #it{5.0<=p_{t}[GeV/c]} [cm]"},
117 {"TRDresolution_TrkInYSn1", "TrkIn :: RMS(#Deltay)^{#mu#pi-} [cm]"},
118 {"TRDresolution_TrkInPhnL1", "TrkIn :: <#Delta#phi>^{#mu#pi-}| #it{p_{t}[GeV/c]<0.5} [deg]"},
119 {"TRDresolution_TrkInPhnl1", "TrkIn :: <#Delta#phi>^{#mu#pi-}| #it{0.5<=p_{t}[GeV/c]<0.8} [deg]"},
120 {"TRDresolution_TrkInPhni1", "TrkIn :: <#Delta#phi>^{#mu#pi-}| #it{0.8<=p_{t}[GeV/c]<1.5} [deg]"},
121 {"TRDresolution_TrkInPhnh1", "TrkIn :: <#Delta#phi>^{#mu#pi-}| #it{1.5<=p_{t}[GeV/c]<5.0} [deg]"},
122 {"TRDresolution_TrkInPhnH1", "TrkIn :: <#Delta#phi>^{#mu#pi-}| #it{5.0<=p_{t}[GeV/c]} [deg]"},
668a0654 123 {"TRDresolution_TrkInPhn1", "TrkIn :: <#Delta#phi>^{#mu#pi-} [deg]"},
0f2c4c4f 124 {"TRDresolution_TrkInPhSnL1", "TrkIn :: RMS<#Delta#phi>^{#mu#pi-}| #it{p[GeV/c]<0.5} [deg]"},
125 {"TRDresolution_TrkInPhSnl1", "TrkIn :: RMS<#Delta#phi>^{#mu#pi-}| #it{0.5<=p[GeV/c]<0.8} [deg]"},
126 {"TRDresolution_TrkInPhSni1", "TrkIn :: RMS<#Delta#phi>^{#mu#pi-}| #it{0.8<=p[GeV/c]<1.5} [deg]"},
127 {"TRDresolution_TrkInPhSnh1", "TrkIn :: RMS<#Delta#phi>^{#mu#pi-}| #it{1.5<=p[GeV/c]<5.0} [deg]"},
128 {"TRDresolution_TrkInPhSnH1", "TrkIn :: RMS<#Delta#phi>^{#mu#pi-}| #it{5.0<=p[GeV/c]} [deg]"},
129 {"TRDresolution_TrkInPhSn1", "TrkIn :: RMS<#Delta#phi>^{#mu#pi-} [deg]"},
130 {"TRDresolution_TrkInQnL1", "TrkIn :: MPV(dQdl)^{#mu#pi-}| #it{p[GeV/c]<0.5} [a.u.]"},
131 {"TRDresolution_TrkInQnl1", "TrkIn :: MPV(dQdl)^{#mu#pi-}| #it{0.5<=p[GeV/c]<0.8} [a.u.]"},
132 {"TRDresolution_TrkInQni1", "TrkIn :: MPV(dQdl)^{#mu#pi-}| #it{0.8<=p[GeV/c]<1.5} [a.u.]"},
133 {"TRDresolution_TrkInQnh1", "TrkIn :: MPV(dQdl)^{#mu#pi-}| #it{1.5<=p[GeV/c]<5.0} [a.u.]"},
134 {"TRDresolution_TrkInQnH1", "TrkIn :: MPV(dQdl)^{#mu#pi-}| #it{5.0<=p[GeV/c]} [a.u.]"},
668a0654 135 {"TRDresolution_TrkInQn1", "TrkIn :: MPV(dQdl)^{#mu#pi-} [a.u.]"},
0f2c4c4f 136 {"TRDresolution_TrkInQSnL1", "TrkIn :: <dQdl>^{#mu#pi-}| #it{p[GeV/c]<0.5} [a.u.]"},
137 {"TRDresolution_TrkInQSnl1", "TrkIn :: <dQdl>^{#mu#pi-}| #it{0.5<=p[GeV/c]<0.8} [a.u.]"},
138 {"TRDresolution_TrkInQSni1", "TrkIn :: <dQdl>^{#mu#pi-}| #it{0.8<=p[GeV/c]<1.5} [a.u.]"},
139 {"TRDresolution_TrkInQSnh1", "TrkIn :: <dQdl>^{#mu#pi-}| #it{1.5<=p[GeV/c]<5.0} [a.u.]"},
140 {"TRDresolution_TrkInQSnH1", "TrkIn :: <dQdl>^{#mu#pi-}| #it{5.0<=p[GeV/c]} [a.u.]"},
668a0654 141 {"TRDresolution_TrkInQSn1", "TrkIn :: <dQdl>^{#mu#pi-} [a.u.]"},
0f2c4c4f 142 {"TRDresolution_TrkInYnL2", "TrkIn :: <#Deltay>^{Kp-}| #it{p_{t}[GeV/c]<0.5} [cm]"},
143 {"TRDresolution_TrkInYnl2", "TrkIn :: <#Deltay>^{Kp-}| #it{0.5<=p_{t}[GeV/c]<0.8} [cm]"},
144 {"TRDresolution_TrkInYni2", "TrkIn :: <#Deltay>^{Kp-}| #it{0.8<=p_{t}[GeV/c]<1.5} [cm]"},
145 {"TRDresolution_TrkInYnh2", "TrkIn :: <#Deltay>^{Kp-}| #it{1.5<=p_{t}[GeV/c]<5.0} [cm]"},
146 {"TRDresolution_TrkInYnH2", "TrkIn :: <#Deltay>^{Kp-}| #it{5.0<=p_{t}[GeV/c]} [cm]"},
147 {"TRDresolution_TrkInYn2", "TrkIn :: <#Deltay>^{Kp-} [cm]"},
148 {"TRDresolution_TrkInYSnL2", "TrkIn :: RMS(#Deltay)^{Kp-}| #it{p_{t}[GeV/c]<0.5} [cm]"},
149 {"TRDresolution_TrkInYSnl2", "TrkIn :: RMS(#Deltay)^{Kp-}| #it{0.5<=p_{t}[GeV/c]<0.8} [cm]"},
150 {"TRDresolution_TrkInYSni2", "TrkIn :: RMS(#Deltay)^{Kp-}| #it{0.8<=p_{t}[GeV/c]<1.5} [cm]"},
151 {"TRDresolution_TrkInYSnh2", "TrkIn :: RMS(#Deltay)^{Kp-}| #it{1.5<=p_{t}[GeV/c]<5.0} [cm]"},
152 {"TRDresolution_TrkInYSnH2", "TrkIn :: RMS(#Deltay)^{Kp-}| #it{5.0<=p_{t}[GeV/c]} [cm]"},
153 {"TRDresolution_TrkInYSn2", "TrkIn :: RMS(#Deltay)^{Kp-} [cm]"},
154 {"TRDresolution_TrkInPhnL2", "TrkIn :: <#Delta#phi>^{Kp-}| #it{p_{t}[GeV/c]<0.5} [deg]"},
155 {"TRDresolution_TrkInPhnl2", "TrkIn :: <#Delta#phi>^{Kp-}| #it{0.5<=p_{t}[GeV/c]<0.8} [deg]"},
156 {"TRDresolution_TrkInPhni2", "TrkIn :: <#Delta#phi>^{Kp-}| #it{0.8<=p_{t}[GeV/c]<1.5} [deg]"},
157 {"TRDresolution_TrkInPhnh2", "TrkIn :: <#Delta#phi>^{Kp-}| #it{1.5<=p_{t}[GeV/c]<5.0} [deg]"},
158 {"TRDresolution_TrkInPhnH2", "TrkIn :: <#Delta#phi>^{Kp-}| #it{5.0<=p_{t}[GeV/c]} [deg]"},
668a0654 159 {"TRDresolution_TrkInPhn2", "TrkIn :: <#Delta#phi>^{Kp-} [deg]"},
0f2c4c4f 160 {"TRDresolution_TrkInPhSnL2", "TrkIn :: RMS<#Delta#phi>^{Kp-}| #it{p[GeV/c]<0.5} [deg]"},
161 {"TRDresolution_TrkInPhSnl2", "TrkIn :: RMS<#Delta#phi>^{Kp-}| #it{0.5<=p[GeV/c]<0.8} [deg]"},
162 {"TRDresolution_TrkInPhSni2", "TrkIn :: RMS<#Delta#phi>^{Kp-}| #it{0.8<=p[GeV/c]<1.5} [deg]"},
163 {"TRDresolution_TrkInPhSnh2", "TrkIn :: RMS<#Delta#phi>^{Kp-}| #it{1.5<=p[GeV/c]<5.0} [deg]"},
164 {"TRDresolution_TrkInPhSnH2", "TrkIn :: RMS<#Delta#phi>^{Kp-}| #it{5.0<=p[GeV/c]} [deg]"},
165 {"TRDresolution_TrkInPhSn2", "TrkIn :: RMS<#Delta#phi>^{Kp-} [deg]"},
166 {"TRDresolution_TrkInQnL2", "TrkIn :: MPV(dQdl)^{Kp-}| #it{p[GeV/c]<0.5} [a.u.]"},
167 {"TRDresolution_TrkInQnl2", "TrkIn :: MPV(dQdl)^{Kp-}| #it{0.5<=p[GeV/c]<0.8} [a.u.]"},
168 {"TRDresolution_TrkInQni2", "TrkIn :: MPV(dQdl)^{Kp-}| #it{0.8<=p[GeV/c]<1.5} [a.u.]"},
169 {"TRDresolution_TrkInQnh2", "TrkIn :: MPV(dQdl)^{Kp-}| #it{1.5<=p[GeV/c]<5.0} [a.u.]"},
170 {"TRDresolution_TrkInQnH2", "TrkIn :: MPV(dQdl)^{Kp-}| #it{5.0<=p[GeV/c]} [a.u.]"},
668a0654 171 {"TRDresolution_TrkInQn2", "TrkIn :: MPV(dQdl)^{Kp-} [a.u.]"},
0f2c4c4f 172 {"TRDresolution_TrkInQSnL2", "TrkIn :: <dQdl>^{Kp-}| #it{p[GeV/c]<0.5} [a.u.]"},
173 {"TRDresolution_TrkInQSnl2", "TrkIn :: <dQdl>^{Kp-}| #it{0.5<=p[GeV/c]<0.8} [a.u.]"},
174 {"TRDresolution_TrkInQSni2", "TrkIn :: <dQdl>^{Kp-}| #it{0.8<=p[GeV/c]<1.5} [a.u.]"},
175 {"TRDresolution_TrkInQSnh2", "TrkIn :: <dQdl>^{Kp-}| #it{1.5<=p[GeV/c]<5.0} [a.u.]"},
176 {"TRDresolution_TrkInQSnH2", "TrkIn :: <dQdl>^{Kp-}| #it{5.0<=p[GeV/c]} [a.u.]"},
668a0654 177 {"TRDresolution_TrkInQSn2", "TrkIn :: <dQdl>^{Kp-} [a.u.]"},
0f2c4c4f 178 {"TRDresolution_TrkInYnL", "TrkIn :: <#Deltay>^{-}| #it{p_{t}[GeV/c]<0.5} [cm]"},
179 {"TRDresolution_TrkInYSnL", "TrkIn :: RMS(#Deltay)^{-}| #it{p_{t}[GeV/c]<0.5} [cm]"},
180 {"TRDresolution_TrkInPhnL", "TrkIn :: <#Delta#phi>^{-}| #it{p_{t}[GeV/c]<0.5} [deg]"},
181 {"TRDresolution_TrkInPhSnL", "TrkIn :: RMS<#Delta#phi>^{-}| #it{p_{t}[GeV/c]<0.5} [deg]"},
182 {"TRDresolution_TrkInYnl", "TrkIn :: <#Deltay>^{-}| #it{0.5<=p_{t}[GeV/c]<0.8} [cm]"},
183 {"TRDresolution_TrkInYSnl", "TrkIn :: RMS(#Deltay)^{-}| #it{0.5<=p_{t}[GeV/c]<0.8} [cm]"},
184 {"TRDresolution_TrkInPhnl", "TrkIn :: <#Delta#phi>^{-}| #it{0.5<=p_{t}[GeV/c]<0.8} [deg]"},
185 {"TRDresolution_TrkInPhSnl", "TrkIn :: RMS<#Delta#phi>^{-}| #it{0.5<=p_{t}[GeV/c]<0.8} [deg]"},
186 {"TRDresolution_TrkInYni", "TrkIn :: <#Deltay>^{-}| #it{0.8<=p_{t}[GeV/c]<1.5} [cm]"},
187 {"TRDresolution_TrkInYSni", "TrkIn :: RMS(#Deltay)^{-}| #it{0.8<=p_{t}[GeV/c]<1.5} [cm]"},
188 {"TRDresolution_TrkInPhni", "TrkIn :: <#Delta#phi>^{-}| #it{0.8<=p_{t}[GeV/c]<1.5} [deg]"},
189 {"TRDresolution_TrkInPhSni", "TrkIn :: RMS<#Delta#phi>^{-}| #it{0.8<=p_{t}[GeV/c]<1.5} [deg]"},
190 {"TRDresolution_TrkInYnh", "TrkIn :: <#Deltay>^{-}| #it{1.5<=p_{t}[GeV/c]<5.0} [cm]"},
191 {"TRDresolution_TrkInYSnh", "TrkIn :: RMS(#Deltay)^{-}| #it{1.5<=p_{t}[GeV/c]<5.0} [cm]"},
192 {"TRDresolution_TrkInPhnh", "TrkIn :: <#Delta#phi>^{-}| #it{1.5<=p_{t}[GeV/c]<5.0} [deg]"},
193 {"TRDresolution_TrkInPhSnh", "TrkIn :: RMS<#Delta#phi>^{-}| #it{1.5<=p_{t}[GeV/c]<5.0} [deg]"},
194 {"TRDresolution_TrkInYnH", "TrkIn :: <#Deltay>^{-}| #it{5.0<=p_{t}[GeV/c]} [cm]"},
195 {"TRDresolution_TrkInYSnH", "TrkIn :: RMS(#Deltay)^{-}| #it{5.0<=p_{t}[GeV/c]} [cm]"},
196 {"TRDresolution_TrkInPhnH", "TrkIn :: <#Delta#phi>^{-}| #it{5.0<=p_{t}[GeV/c]} [deg]"},
197 {"TRDresolution_TrkInPhSnH", "TrkIn :: RMS<#Delta#phi>^{-}| #it{5.0<=p_{t}[GeV/c]} [deg]"},
668a0654 198 {"TRDresolution_TrkInYn", "TrkIn :: <#Deltay>^{-} [cm]"},
199 {"TRDresolution_TrkInYSn", "TrkIn :: RMS(#Deltay)^{-} [cm]"},
200 {"TRDresolution_TrkInPhn", "TrkIn :: <#Delta#phi>^{-} [deg]"},
0f2c4c4f 201 {"TRDresolution_TrkInPhSn", "TrkIn :: RMS<#Delta#phi>^{-} [deg]"},
202 {"TRDresolution_TrkInYpL0", "TrkIn :: <#Deltay>^{e+}| #it{p_{t}[GeV/c]<0.5} [cm]"},
203 {"TRDresolution_TrkInYpl0", "TrkIn :: <#Deltay>^{e+}| #it{0.5<=p_{t}[GeV/c]<0.8} [cm]"},
204 {"TRDresolution_TrkInYpi0", "TrkIn :: <#Deltay>^{e+}| #it{0.8<=p_{t}[GeV/c]<1.5} [cm]"},
205 {"TRDresolution_TrkInYph0", "TrkIn :: <#Deltay>^{e+}| #it{1.5<=p_{t}[GeV/c]<5.0} [cm]"},
206 {"TRDresolution_TrkInYpH0", "TrkIn :: <#Deltay>^{e+}| #it{5.0<=p_{t}[GeV/c]} [cm]"},
207 {"TRDresolution_TrkInYp0", "TrkIn :: <#Deltay>^{e+} [cm]"},
208 {"TRDresolution_TrkInYSpL0", "TrkIn :: RMS(#Deltay)^{e+}| #it{p_{t}[GeV/c]<0.5} [cm]"},
209 {"TRDresolution_TrkInYSpl0", "TrkIn :: RMS(#Deltay)^{e+}| #it{0.5<=p_{t}[GeV/c]<0.8} [cm]"},
210 {"TRDresolution_TrkInYSpi0", "TrkIn :: RMS(#Deltay)^{e+}| #it{0.8<=p_{t}[GeV/c]<1.5} [cm]"},
211 {"TRDresolution_TrkInYSph0", "TrkIn :: RMS(#Deltay)^{e+}| #it{1.5<=p_{t}[GeV/c]<5.0} [cm]"},
212 {"TRDresolution_TrkInYSpH0", "TrkIn :: RMS(#Deltay)^{e+}| #it{5.0<=p_{t}[GeV/c]} [cm]"},
213 {"TRDresolution_TrkInYSp0", "TrkIn :: RMS(#Deltay)^{e+} [cm]"},
214 {"TRDresolution_TrkInPhpL0", "TrkIn :: <#Delta#phi>^{e+}| #it{p_{t}[GeV/c]<0.5} [deg]"},
215 {"TRDresolution_TrkInPhpl0", "TrkIn :: <#Delta#phi>^{e+}| #it{0.5<=p_{t}[GeV/c]<0.8} [deg]"},
216 {"TRDresolution_TrkInPhpi0", "TrkIn :: <#Delta#phi>^{e+}| #it{0.8<=p_{t}[GeV/c]<1.5} [deg]"},
217 {"TRDresolution_TrkInPhph0", "TrkIn :: <#Delta#phi>^{e+}| #it{1.5<=p_{t}[GeV/c]<5.0} [deg]"},
218 {"TRDresolution_TrkInPhpH0", "TrkIn :: <#Delta#phi>^{e+}| #it{5.0<=p_{t}[GeV/c]} [deg]"},
668a0654 219 {"TRDresolution_TrkInPhp0", "TrkIn :: <#Delta#phi>^{e+} [deg]"},
0f2c4c4f 220 {"TRDresolution_TrkInPhSpL0", "TrkIn :: RMS<#Delta#phi>^{e+}| #it{p[GeV/c]<0.5} [deg]"},
221 {"TRDresolution_TrkInPhSpl0", "TrkIn :: RMS<#Delta#phi>^{e+}| #it{0.5<=p[GeV/c]<0.8} [deg]"},
222 {"TRDresolution_TrkInPhSpi0", "TrkIn :: RMS<#Delta#phi>^{e+}| #it{0.8<=p[GeV/c]<1.5} [deg]"},
223 {"TRDresolution_TrkInPhSph0", "TrkIn :: RMS<#Delta#phi>^{e+}| #it{1.5<=p[GeV/c]<5.0} [deg]"},
224 {"TRDresolution_TrkInPhSpH0", "TrkIn :: RMS<#Delta#phi>^{e+}| #it{5.0<=p[GeV/c]} [deg]"},
225 {"TRDresolution_TrkInPhSp0", "TrkIn :: RMS<#Delta#phi>^{e+} [deg]"},
226 {"TRDresolution_TrkInQpL0", "TrkIn :: MPV(dQdl)^{e+}| #it{p[GeV/c]<0.5} [a.u.]"},
227 {"TRDresolution_TrkInQpl0", "TrkIn :: MPV(dQdl)^{e+}| #it{0.5<=p[GeV/c]<0.8} [a.u.]"},
228 {"TRDresolution_TrkInQpi0", "TrkIn :: MPV(dQdl)^{e+}| #it{0.8<=p[GeV/c]<1.5} [a.u.]"},
229 {"TRDresolution_TrkInQph0", "TrkIn :: MPV(dQdl)^{e+}| #it{1.5<=p[GeV/c]<5.0} [a.u.]"},
230 {"TRDresolution_TrkInQpH0", "TrkIn :: MPV(dQdl)^{e+}| #it{5.0<=p[GeV/c]} [a.u.]"},
668a0654 231 {"TRDresolution_TrkInQp0", "TrkIn :: MPV(dQdl)^{e+} [a.u.]"},
0f2c4c4f 232 {"TRDresolution_TrkInQSpL0", "TrkIn :: <dQdl>^{e+}| #it{p[GeV/c]<0.5} [a.u.]"},
233 {"TRDresolution_TrkInQSpl0", "TrkIn :: <dQdl>^{e+}| #it{0.5<=p[GeV/c]<0.8} [a.u.]"},
234 {"TRDresolution_TrkInQSpi0", "TrkIn :: <dQdl>^{e+}| #it{0.8<=p[GeV/c]<1.5} [a.u.]"},
235 {"TRDresolution_TrkInQSph0", "TrkIn :: <dQdl>^{e+}| #it{1.5<=p[GeV/c]<5.0} [a.u.]"},
236 {"TRDresolution_TrkInQSpH0", "TrkIn :: <dQdl>^{e+}| #it{5.0<=p[GeV/c]} [a.u.]"},
668a0654 237 {"TRDresolution_TrkInQSp0", "TrkIn :: <dQdl>^{e+} [a.u.]"},
0f2c4c4f 238 {"TRDresolution_TrkInYpL1", "TrkIn :: <#Deltay>^{#mu#pi+}| #it{p_{t}[GeV/c]<0.5} [cm]"},
239 {"TRDresolution_TrkInYpl1", "TrkIn :: <#Deltay>^{#mu#pi+}| #it{0.5<=p_{t}[GeV/c]<0.8} [cm]"},
240 {"TRDresolution_TrkInYpi1", "TrkIn :: <#Deltay>^{#mu#pi+}| #it{0.8<=p_{t}[GeV/c]<1.5} [cm]"},
241 {"TRDresolution_TrkInYph1", "TrkIn :: <#Deltay>^{#mu#pi+}| #it{1.5<=p_{t}[GeV/c]<5.0} [cm]"},
242 {"TRDresolution_TrkInYpH1", "TrkIn :: <#Deltay>^{#mu#pi+}| #it{5.0<=p_{t}[GeV/c]} [cm]"},
243 {"TRDresolution_TrkInYp1", "TrkIn :: <#Deltay>^{#mu#pi+} [cm]"},
244 {"TRDresolution_TrkInYSpL1", "TrkIn :: RMS(#Deltay)^{#mu#pi+}| #it{p_{t}[GeV/c]<0.5} [cm]"},
245 {"TRDresolution_TrkInYSpl1", "TrkIn :: RMS(#Deltay)^{#mu#pi+}| #it{0.5<=p_{t}[GeV/c]<0.8} [cm]"},
246 {"TRDresolution_TrkInYSpi1", "TrkIn :: RMS(#Deltay)^{#mu#pi+}| #it{0.8<=p_{t}[GeV/c]<1.5} [cm]"},
247 {"TRDresolution_TrkInYSph1", "TrkIn :: RMS(#Deltay)^{#mu#pi+}| #it{1.5<=p_{t}[GeV/c]<5.0} [cm]"},
248 {"TRDresolution_TrkInYSpH1", "TrkIn :: RMS(#Deltay)^{#mu#pi+}| #it{5.0<=p_{t}[GeV/c]} [cm]"},
249 {"TRDresolution_TrkInYSp1", "TrkIn :: RMS(#Deltay)^{#mu#pi+} [cm]"},
250 {"TRDresolution_TrkInPhpL1", "TrkIn :: <#Delta#phi>^{#mu#pi+}| #it{p_{t}[GeV/c]<0.5} [deg]"},
251 {"TRDresolution_TrkInPhpl1", "TrkIn :: <#Delta#phi>^{#mu#pi+}| #it{0.5<=p_{t}[GeV/c]<0.8} [deg]"},
252 {"TRDresolution_TrkInPhpi1", "TrkIn :: <#Delta#phi>^{#mu#pi+}| #it{0.8<=p_{t}[GeV/c]<1.5} [deg]"},
253 {"TRDresolution_TrkInPhph1", "TrkIn :: <#Delta#phi>^{#mu#pi+}| #it{1.5<=p_{t}[GeV/c]<5.0} [deg]"},
254 {"TRDresolution_TrkInPhpH1", "TrkIn :: <#Delta#phi>^{#mu#pi+}| #it{5.0<=p_{t}[GeV/c]} [deg]"},
668a0654 255 {"TRDresolution_TrkInPhp1", "TrkIn :: <#Delta#phi>^{#mu#pi+} [deg]"},
0f2c4c4f 256 {"TRDresolution_TrkInPhSpL1", "TrkIn :: RMS<#Delta#phi>^{#mu#pi+}| #it{p[GeV/c]<0.5} [deg]"},
257 {"TRDresolution_TrkInPhSpl1", "TrkIn :: RMS<#Delta#phi>^{#mu#pi+}| #it{0.5<=p[GeV/c]<0.8} [deg]"},
258 {"TRDresolution_TrkInPhSpi1", "TrkIn :: RMS<#Delta#phi>^{#mu#pi+}| #it{0.8<=p[GeV/c]<1.5} [deg]"},
259 {"TRDresolution_TrkInPhSph1", "TrkIn :: RMS<#Delta#phi>^{#mu#pi+}| #it{1.5<=p[GeV/c]<5.0} [deg]"},
260 {"TRDresolution_TrkInPhSpH1", "TrkIn :: RMS<#Delta#phi>^{#mu#pi+}| #it{5.0<=p[GeV/c]} [deg]"},
261 {"TRDresolution_TrkInPhSp1", "TrkIn :: RMS<#Delta#phi>^{#mu#pi+} [deg]"},
262 {"TRDresolution_TrkInQpL1", "TrkIn :: MPV(dQdl)^{#mu#pi+}| #it{p[GeV/c]<0.5} [a.u.]"},
263 {"TRDresolution_TrkInQpl1", "TrkIn :: MPV(dQdl)^{#mu#pi+}| #it{0.5<=p[GeV/c]<0.8} [a.u.]"},
264 {"TRDresolution_TrkInQpi1", "TrkIn :: MPV(dQdl)^{#mu#pi+}| #it{0.8<=p[GeV/c]<1.5} [a.u.]"},
265 {"TRDresolution_TrkInQph1", "TrkIn :: MPV(dQdl)^{#mu#pi+}| #it{1.5<=p[GeV/c]<5.0} [a.u.]"},
266 {"TRDresolution_TrkInQpH1", "TrkIn :: MPV(dQdl)^{#mu#pi+}| #it{5.0<=p[GeV/c]} [a.u.]"},
668a0654 267 {"TRDresolution_TrkInQp1", "TrkIn :: MPV(dQdl)^{#mu#pi+} [a.u.]"},
0f2c4c4f 268 {"TRDresolution_TrkInQSpL1", "TrkIn :: <dQdl>^{#mu#pi+}| #it{p[GeV/c]<0.5} [a.u.]"},
269 {"TRDresolution_TrkInQSpl1", "TrkIn :: <dQdl>^{#mu#pi+}| #it{0.5<=p[GeV/c]<0.8} [a.u.]"},
270 {"TRDresolution_TrkInQSpi1", "TrkIn :: <dQdl>^{#mu#pi+}| #it{0.8<=p[GeV/c]<1.5} [a.u.]"},
271 {"TRDresolution_TrkInQSph1", "TrkIn :: <dQdl>^{#mu#pi+}| #it{1.5<=p[GeV/c]<5.0} [a.u.]"},
272 {"TRDresolution_TrkInQSpH1", "TrkIn :: <dQdl>^{#mu#pi+}| #it{5.0<=p[GeV/c]} [a.u.]"},
668a0654 273 {"TRDresolution_TrkInQSp1", "TrkIn :: <dQdl>^{#mu#pi+} [a.u.]"},
0f2c4c4f 274 {"TRDresolution_TrkInYpL2", "TrkIn :: <#Deltay>^{Kp+}| #it{p_{t}[GeV/c]<0.5} [cm]"},
275 {"TRDresolution_TrkInYpl2", "TrkIn :: <#Deltay>^{Kp+}| #it{0.5<=p_{t}[GeV/c]<0.8} [cm]"},
276 {"TRDresolution_TrkInYpi2", "TrkIn :: <#Deltay>^{Kp+}| #it{0.8<=p_{t}[GeV/c]<1.5} [cm]"},
277 {"TRDresolution_TrkInYph2", "TrkIn :: <#Deltay>^{Kp+}| #it{1.5<=p_{t}[GeV/c]<5.0} [cm]"},
278 {"TRDresolution_TrkInYpH2", "TrkIn :: <#Deltay>^{Kp+}| #it{5.0<=p_{t}[GeV/c]} [cm]"},
279 {"TRDresolution_TrkInYp2", "TrkIn :: <#Deltay>^{Kp+} [cm]"},
280 {"TRDresolution_TrkInYSpL2", "TrkIn :: RMS(#Deltay)^{Kp+}| #it{p_{t}[GeV/c]<0.5} [cm]"},
281 {"TRDresolution_TrkInYSpl2", "TrkIn :: RMS(#Deltay)^{Kp+}| #it{0.5<=p_{t}[GeV/c]<0.8} [cm]"},
282 {"TRDresolution_TrkInYSpi2", "TrkIn :: RMS(#Deltay)^{Kp+}| #it{0.8<=p_{t}[GeV/c]<1.5} [cm]"},
283 {"TRDresolution_TrkInYSph2", "TrkIn :: RMS(#Deltay)^{Kp+}| #it{1.5<=p_{t}[GeV/c]<5.0} [cm]"},
284 {"TRDresolution_TrkInYSpH2", "TrkIn :: RMS(#Deltay)^{Kp+}| #it{5.0<=p_{t}[GeV/c]} [cm]"},
285 {"TRDresolution_TrkInYSp2", "TrkIn :: RMS(#Deltay)^{Kp+} [cm]"},
286 {"TRDresolution_TrkInPhpL2", "TrkIn :: <#Delta#phi>^{Kp+}| #it{p_{t}[GeV/c]<0.5} [deg]"},
287 {"TRDresolution_TrkInPhpl2", "TrkIn :: <#Delta#phi>^{Kp+}| #it{0.5<=p_{t}[GeV/c]<0.8} [deg]"},
288 {"TRDresolution_TrkInPhpi2", "TrkIn :: <#Delta#phi>^{Kp+}| #it{0.8<=p_{t}[GeV/c]<1.5} [deg]"},
289 {"TRDresolution_TrkInPhph2", "TrkIn :: <#Delta#phi>^{Kp+}| #it{1.5<=p_{t}[GeV/c]<5.0} [deg]"},
290 {"TRDresolution_TrkInPhpH2", "TrkIn :: <#Delta#phi>^{Kp+}| #it{5.0<=p_{t}[GeV/c]} [deg]"},
668a0654 291 {"TRDresolution_TrkInPhp2", "TrkIn :: <#Delta#phi>^{Kp+} [deg]"},
0f2c4c4f 292 {"TRDresolution_TrkInPhSpL2", "TrkIn :: RMS<#Delta#phi>^{Kp+}| #it{p[GeV/c]<0.5} [deg]"},
293 {"TRDresolution_TrkInPhSpl2", "TrkIn :: RMS<#Delta#phi>^{Kp+}| #it{0.5<=p[GeV/c]<0.8} [deg]"},
294 {"TRDresolution_TrkInPhSpi2", "TrkIn :: RMS<#Delta#phi>^{Kp+}| #it{0.8<=p[GeV/c]<1.5} [deg]"},
295 {"TRDresolution_TrkInPhSph2", "TrkIn :: RMS<#Delta#phi>^{Kp+}| #it{1.5<=p[GeV/c]<5.0} [deg]"},
296 {"TRDresolution_TrkInPhSpH2", "TrkIn :: RMS<#Delta#phi>^{Kp+}| #it{5.0<=p[GeV/c]} [deg]"},
297 {"TRDresolution_TrkInPhSp2", "TrkIn :: RMS<#Delta#phi>^{Kp+} [deg]"},
298 {"TRDresolution_TrkInQpL2", "TrkIn :: MPV(dQdl)^{Kp+}| #it{p[GeV/c]<0.5} [a.u.]"},
299 {"TRDresolution_TrkInQpl2", "TrkIn :: MPV(dQdl)^{Kp+}| #it{0.5<=p[GeV/c]<0.8} [a.u.]"},
300 {"TRDresolution_TrkInQpi2", "TrkIn :: MPV(dQdl)^{Kp+}| #it{0.8<=p[GeV/c]<1.5} [a.u.]"},
301 {"TRDresolution_TrkInQph2", "TrkIn :: MPV(dQdl)^{Kp+}| #it{1.5<=p[GeV/c]<5.0} [a.u.]"},
302 {"TRDresolution_TrkInQpH2", "TrkIn :: MPV(dQdl)^{Kp+}| #it{5.0<=p[GeV/c]} [a.u.]"},
668a0654 303 {"TRDresolution_TrkInQp2", "TrkIn :: MPV(dQdl)^{Kp+} [a.u.]"},
0f2c4c4f 304 {"TRDresolution_TrkInQSpL2", "TrkIn :: <dQdl>^{Kp+}| #it{p[GeV/c]<0.5} [a.u.]"},
305 {"TRDresolution_TrkInQSpl2", "TrkIn :: <dQdl>^{Kp+}| #it{0.5<=p[GeV/c]<0.8} [a.u.]"},
306 {"TRDresolution_TrkInQSpi2", "TrkIn :: <dQdl>^{Kp+}| #it{0.8<=p[GeV/c]<1.5} [a.u.]"},
307 {"TRDresolution_TrkInQSph2", "TrkIn :: <dQdl>^{Kp+}| #it{1.5<=p[GeV/c]<5.0} [a.u.]"},
308 {"TRDresolution_TrkInQSpH2", "TrkIn :: <dQdl>^{Kp+}| #it{5.0<=p[GeV/c]} [a.u.]"},
668a0654 309 {"TRDresolution_TrkInQSp2", "TrkIn :: <dQdl>^{Kp+} [a.u.]"},
0f2c4c4f 310 {"TRDresolution_TrkInYpL", "TrkIn :: <#Deltay>^{+}| #it{p_{t}[GeV/c]<0.5} [cm]"},
311 {"TRDresolution_TrkInYSpL", "TrkIn :: RMS(#Deltay)^{+}| #it{p_{t}[GeV/c]<0.5} [cm]"},
312 {"TRDresolution_TrkInPhpL", "TrkIn :: <#Delta#phi>^{+}| #it{p_{t}[GeV/c]<0.5} [deg]"},
313 {"TRDresolution_TrkInPhSpL", "TrkIn :: RMS<#Delta#phi>^{+}| #it{p_{t}[GeV/c]<0.5} [deg]"},
314 {"TRDresolution_TrkInYpl", "TrkIn :: <#Deltay>^{+}| #it{0.5<=p_{t}[GeV/c]<0.8} [cm]"},
315 {"TRDresolution_TrkInYSpl", "TrkIn :: RMS(#Deltay)^{+}| #it{0.5<=p_{t}[GeV/c]<0.8} [cm]"},
316 {"TRDresolution_TrkInPhpl", "TrkIn :: <#Delta#phi>^{+}| #it{0.5<=p_{t}[GeV/c]<0.8} [deg]"},
317 {"TRDresolution_TrkInPhSpl", "TrkIn :: RMS<#Delta#phi>^{+}| #it{0.5<=p_{t}[GeV/c]<0.8} [deg]"},
318 {"TRDresolution_TrkInYpi", "TrkIn :: <#Deltay>^{+}| #it{0.8<=p_{t}[GeV/c]<1.5} [cm]"},
319 {"TRDresolution_TrkInYSpi", "TrkIn :: RMS(#Deltay)^{+}| #it{0.8<=p_{t}[GeV/c]<1.5} [cm]"},
320 {"TRDresolution_TrkInPhpi", "TrkIn :: <#Delta#phi>^{+}| #it{0.8<=p_{t}[GeV/c]<1.5} [deg]"},
321 {"TRDresolution_TrkInPhSpi", "TrkIn :: RMS<#Delta#phi>^{+}| #it{0.8<=p_{t}[GeV/c]<1.5} [deg]"},
322 {"TRDresolution_TrkInYph", "TrkIn :: <#Deltay>^{+}| #it{1.5<=p_{t}[GeV/c]<5.0} [cm]"},
323 {"TRDresolution_TrkInYSph", "TrkIn :: RMS(#Deltay)^{+}| #it{1.5<=p_{t}[GeV/c]<5.0} [cm]"},
324 {"TRDresolution_TrkInPhph", "TrkIn :: <#Delta#phi>^{+}| #it{1.5<=p_{t}[GeV/c]<5.0} [deg]"},
325 {"TRDresolution_TrkInPhSph", "TrkIn :: RMS<#Delta#phi>^{+}| #it{1.5<=p_{t}[GeV/c]<5.0} [deg]"},
326 {"TRDresolution_TrkInYpH", "TrkIn :: <#Deltay>^{+}| #it{5.0<=p_{t}[GeV/c]} [cm]"},
327 {"TRDresolution_TrkInYSpH", "TrkIn :: RMS(#Deltay)^{+}| #it{5.0<=p_{t}[GeV/c]} [cm]"},
328 {"TRDresolution_TrkInPhpH", "TrkIn :: <#Delta#phi>^{+}| #it{5.0<=p_{t}[GeV/c]} [deg]"},
329 {"TRDresolution_TrkInPhSpH", "TrkIn :: RMS<#Delta#phi>^{+}| #it{5.0<=p_{t}[GeV/c]} [deg]"},
668a0654 330 {"TRDresolution_TrkInYp", "TrkIn :: <#Deltay>^{+} [cm]"},
331 {"TRDresolution_TrkInYSp", "TrkIn :: RMS(#Deltay)^{+} [cm]"},
332 {"TRDresolution_TrkInPhp", "TrkIn :: <#Delta#phi>^{+} [deg]"},
0f2c4c4f 333 {"TRDresolution_TrkInPhSp", "TrkIn :: RMS<#Delta#phi>^{+} [deg]"},
334 {"TRDresolution_TrkInY0", "TrkIn :: <#Deltay>^{e} [cm]"},
668a0654 335 {"TRDresolution_TrkInPh0", "TrkIn :: <#Delta#phi>^{e} [deg]"},
336 {"TRDresolution_TrkInQ0", "TrkIn :: MPV(dQdl)^{e} [a.u.]"},
337 {"TRDresolution_TrkInQS0", "TrkIn :: <dQdl>^{e} [a.u.]"},
0f2c4c4f 338 {"TRDresolution_TrkInY1", "TrkIn :: <#Deltay>^{#mu#pi} [cm]"},
668a0654 339 {"TRDresolution_TrkInPh1", "TrkIn :: <#Delta#phi>^{#mu#pi} [deg]"},
340 {"TRDresolution_TrkInQ1", "TrkIn :: MPV(dQdl)^{#mu#pi} [a.u.]"},
341 {"TRDresolution_TrkInQS1", "TrkIn :: <dQdl>^{#mu#pi} [a.u.]"},
0f2c4c4f 342 {"TRDresolution_TrkInY2", "TrkIn :: <#Deltay>^{Kp} [cm]"},
668a0654 343 {"TRDresolution_TrkInPh2", "TrkIn :: <#Delta#phi>^{Kp} [deg]"},
344 {"TRDresolution_TrkInQ2", "TrkIn :: MPV(dQdl)^{Kp} [a.u.]"},
0f2c4c4f 345 {"TRDresolution_TrkInQS2", "TrkIn :: <dQdl>^{Kp} [a.u.]"},
346 {"TRDresolution_TrkInRCZ", "TrkIn :: <#Deltaz> [cm]"},
347 {"TRDresolution_TrkInRCZS", "TrkIn :: #sigma(#Deltaz) [cm]"}
847569f2 348 };
349 const char *resName[] = {"Markus Fasel", "Alexandru Bercuci"},
350 *resMail[] = {"M.Fasel@gsi.de", "A.Bercuci@gsi.de"};
351 const char *notName[] = {"Julian Book", "Hans Beck", "Ionut Arsene", "Raphaelle Bailache", "Christoph Blume"},
352 *notMail[] = {"jbook@ikf.uni-frankfurt.de", "hbeck@ikf.uni-frankfurt.de", "I.C.Arsene@gsi.de", "R.Bailhache@gsi.de", "blume@ikf.uni-frankfurt.de"};
0f2c4c4f 353 for(Int_t jnt(0); jnt<nt; jnt++) printf("%3d %s %s\n", jnt, tvn[jnt][0], tvn[jnt][1]);
847569f2 354
355 TFile *fDB = TFile::Open("TRD.TrendDB.root", "RECREATE");
356 TTree *tDB = new TTree("trend", "Reference Trend Values");
357 Double_t val[nt];
358 for(Int_t it(0); it<nt; it++) tDB->Branch(tvn[it][0], &val[it], Form("%s/D", tvn[it][0]));
359 gROOT->cd();
360
361 AliTRDtrendValue *tv(NULL);
362 FILE *fp = fopen(fl, "rt");
363 TString sfp;
364 while(sfp.Gets(fp)){
365 if(!TFile::Open(sfp.Data())) continue;
0f2c4c4f 366 Int_t nmiss(0), nbads(0);
847569f2 367 for(Int_t it(0); it<nt; it++){
368 val[it] = -999;
369 if(!(tv = (AliTRDtrendValue*)gFile->Get(tvn[it][0]))) {
0f2c4c4f 370 //Warning("makeTrendingDB()", "Missing %s from %s", tvn[it][0], sfp.Data());
371 nmiss++;
668a0654 372 continue;
373 }
f036f7ec 374 if((strstr(tvn[it][0], "TRDcheckDET") || strstr(tvn[it][0], "QS") || strstr(tvn[it][0], "YS")) && TMath::Abs(tv->GetVal()) < 1.e-5){
0f2c4c4f 375 //Info("makeTrendingDB()", "Found bad value for %s[%f] in %s", tvn[it][0], tv->GetVal(), sfp.Data());
376 nbads++;
847569f2 377 continue;
378 }
379 val[it] = tv->GetVal();
380 }
0f2c4c4f 381 Warning("makeTrendingDB()", "%s :: Missing[%d] Bads[%d]", sfp.Data(), nmiss, nbads);
847569f2 382 gFile->Close();
383 tDB->Fill();
384 }
385
386
387// TFile *fDB = TFile::Open("TRD.TrendDB.root");
388// TTree *tDB = (TTree*)gFile->Get("trend");
389// Double_t val[nt];
390// for(Int_t it(0); it<nt; it++) tDB->SetBranchAddress(tvn[it][0], &val[it]);
391// gROOT->cd();
392
393 TString res[] = {Form("%s/%s", resName[0], resMail[0]), Form("%s/%s", resName[1], resMail[1])};
394 TString notifiable;
395 for(Int_t inot(0); inot<5; inot++){
396 notifiable+=notName[inot];
397 notifiable+="/";
398 notifiable+=notMail[inot];
399 if(inot<4) notifiable+=",";
400 }
668a0654 401 TF1 f("f", "gaus", -100, 100); TH1 *h(NULL);
847569f2 402 AliTRDtrendingManager *tm = AliTRDtrendingManager::Instance();
403 TCanvas *c = new TCanvas("c", "Trend Distrib.", 10, 10, 500, 500);
60dd7ffe 404 Int_t ntr=tDB->GetEntries();
847569f2 405 for(Int_t it(0); it<nt; it++){
60dd7ffe 406 tDB->Draw(tvn[it][0], "", "goff");
407 Double_t *v = tDB->GetV1(), xmin(100.), xmax(-100);
668a0654 408 Int_t ntr0(0);
60dd7ffe 409 for(Int_t ir=0; ir<ntr; ir++){
410 if(v[ir]<-100) continue;
668a0654 411 ntr0++;
60dd7ffe 412 if(v[ir]<xmin) xmin = v[ir];
413 if(v[ir]>xmax) xmax = v[ir];
414 }
668a0654 415 if(ntr0<10){
416 Warning("makeTrendingDB", "Couldn't create entry %s. Too few values %d", tvn[it][0], ntr0);
417 continue;
418 }
419 if((h =(TH1F*)gROOT->FindObject("hp"))){delete h; h = NULL;}
dffc3357 420 h = new TH1F("hp", Form(";%s;entries", tvn[it][0]), 25, 0.5*(3*xmin-xmax), 0.5*(3*xmax - xmin));
668a0654 421 tDB->Draw(Form("%s>>hp", tvn[it][0]), Form("%s>-100", tvn[it][0]));
60dd7ffe 422 if(h->Integral() < 1) continue;
423 f.SetParameter(0, h->Integral());
424 f.SetParameter(1, h->GetMean());
425 f.SetParameter(2, h->GetRMS());
426 h->Fit(&f, "WQ");
427 c->Modified(); c->Update(); c->SaveAs(Form("Fit_%s.gif", tvn[it][0]));
847569f2 428
429 // write trending value to manager
60dd7ffe 430 Info("makeTrendingDB", "%s [%f - %f] %f[%f]", tvn[it][0], xmin, xmax, f.GetParameter(1), f.GetParameter(2));
668a0654 431 Double_t m(0.), s(0.);
df72fea3 432/* if(strstr(tvn[it][0], "TrkInYS")) {
f036f7ec 433 m=0.4; s=0.06;
434 } else if(strstr(tvn[it][0], "TrkInY")) {
df72fea3 435 m=0.; s=0.1;*/
436/* } else if(strstr(tvn[it][0], "TrkInPh")) {
437 m=0.; s=0.35;*/
438/* } else if(strstr(tvn[it][0], "TrkInQ") || strstr(tvn[it][0], "TrkInQS")) {
439 m=-2.; s=0.2;*/
440// } else {
dffc3357 441 m=f.GetParameter(1); s=h->GetRMS()/*f.GetParameter(2)*/;
df72fea3 442// }
668a0654 443 tm->AddValue(tvn[it][0], m, s, tvn[it][1], res[it>13], notifiable);
847569f2 444 }
445 tm->Terminate();
446
447 fDB->cd();
448 tDB->Write();
449 fDB->Close();
450}