saveViews macro fixed. Some macros are now being compiled before using to fix issues...
[u/mrichter/AliRoot.git] / EVE / macros / VizDB_scan_tpc.C
CommitLineData
3aff0c2e 1void VizDB_scan_tpc()
2{
3
4 TEvePointSet *ps = 0;
5 TEveStraightLineSet *ls = 0;
6// TEveTrackList *tltemp;
7// TEveTrackList *tl;
8
9 //============================================================================
10 // Hits
11 //============================================================================
12
13 ps = new TEvePointSet();
14 ps->SetMarkerColor(2);
15 ps->SetMarkerSize(0.5);
16 ps->SetMarkerStyle(2);
17 gEve->InsertVizDBEntry("Hits", ps);
18
19 ps = new TEvePointSet();
20 ps->SetMarkerColor(2);
21 ps->SetMarkerSize(0.5);
22 ps->SetMarkerStyle(2);
23 gEve->InsertVizDBEntry("SIM Hits ITS", ps);
24
25 ps = new TEvePointSet();
26 ps->SetMarkerColor(3);
27 ps->SetMarkerSize(0.5);
28 ps->SetMarkerStyle(2);
29 gEve->InsertVizDBEntry("SIM Hits TPC", ps);
30
31 ps = new TEvePointSet();
32 ps->SetMarkerColor(3);
33 ps->SetMarkerSize(0.5);
34 ps->SetMarkerStyle(4);
35 gEve->InsertVizDBEntry("SIM Hits T0", ps);
36
37 ps = new TEvePointSet();
38 ps->SetMarkerColor(2);
39 ps->SetMarkerSize(0.5);
40 ps->SetMarkerStyle(4);
41 gEve->InsertVizDBEntry("SIM Hits FMD", ps);
42
43 ps = new TEvePointSet();
44 ps->SetMarkerColor(2);
45 ps->SetMarkerSize(.5);
46 ps->SetMarkerStyle(4);
47 gEve->InsertVizDBEntry("SIM Hits ACORDE", ps);
48
49 ps = new TEvePointSet();
50 ps->SetMarkerColor(2);
51 ps->SetMarkerSize(.5);
52 ps->SetMarkerStyle(4);
53 gEve->InsertVizDBEntry("SIM Hits EMCAL", ps);
54
55 ps = new TEvePointSet();
56 ps->SetMarkerColor(2);
57 ps->SetMarkerSize(.5);
58 ps->SetMarkerStyle(4);
59 gEve->InsertVizDBEntry("SIM Hits PMD", ps);
60
61 ps = new TEvePointSet();
62 ps->SetMarkerColor(2);
63 ps->SetMarkerSize(.5);
64 ps->SetMarkerStyle(4);
65 gEve->InsertVizDBEntry("SIM Hits TOF", ps);
66
67 ps = new TEvePointSet();
68 ps->SetMarkerColor(7);
69 ps->SetMarkerSize(.5);
70 ps->SetMarkerStyle(4);
71 gEve->InsertVizDBEntry("SIM Hits TRD", ps);
72
73 ps = new TEvePointSet();
74 ps->SetMarkerColor(2);
75 ps->SetMarkerSize(.5);
76 ps->SetMarkerStyle(4);
77 gEve->InsertVizDBEntry("SIM Hits VZERO", ps);
78
79 //============================================================================
80 // Clusters
81 //============================================================================
82
83 ps = new TEvePointSet();
84 ps->SetMarkerColor(2);
85 ps->SetMarkerSize(0.5);
86 ps->SetMarkerStyle(2);
87 gEve->InsertVizDBEntry("Clusters", ps);
88
89 ps = new TEvePointSet();
90 ps->SetMarkerColor(5);
91 ps->SetMarkerSize(0.2);
92 ps->SetMarkerStyle(2);
93 gEve->InsertVizDBEntry("REC Clusters ITS", ps);
94
95 ps = new TEvePointSet();
96 ps->SetMarkerColor(4);
97 ps->SetMarkerSize(0.2);
98 ps->SetMarkerStyle(2);
99 gEve->InsertVizDBEntry("REC Clusters TPC", ps);
100
101 ps = new TEvePointSet();
102 ps->SetMarkerColor(7);
103 ps->SetMarkerSize(0.5);
104 ps->SetMarkerStyle(4);
105 gEve->InsertVizDBEntry("REC Clusters TRD", ps);
106
107 ps = new TEvePointSet();
108 ps->SetMarkerColor(kOrange);
109 ps->SetMarkerSize(0.5);
110 ps->SetMarkerStyle(4);
111 gEve->InsertVizDBEntry("REC Clusters TOF", ps);
112
113 ps = new TEvePointSet();
114 ps->SetMarkerColor(4);
115 ps->SetMarkerSize(0.2);
116 ps->SetMarkerStyle(2);
117 gEve->InsertVizDBEntry("REC Clusters HMPID", ps);
118
119 ps = new TEvePointSet();
120 ps->SetMarkerColor(4);
121 ps->SetMarkerSize(0.5);
122 ps->SetMarkerStyle(2);
123 gEve->InsertVizDBEntry("REC Clusters PHOS", ps);
124
125 //============================================================================
126 // Primary vertex
127 //============================================================================
128
129 // Combined vertex
130
131 ls = new TEveStraightLineSet;
132 ls->SetMarkerStyle(2);
133 ls->SetMarkerColor(7);
134 ls->SetLineColor(7);
135 ls->SetLineWidth(3);
136 gEve->InsertVizDBEntry("REC PVTX", ls);
137
138 ls = new TEveStraightLineSet;
139 ls->SetMarkerStyle(2);
140 ls->SetMarkerColor(7);
141 ls->SetLineColor(7);
142 ls->SetLineWidth(1);
143 gEve->InsertVizDBEntry("REC PVTX Ellipse", ls);
144
145 ls = new TEveStraightLineSet;
146 ls->SetMarkerStyle(2);
147 ls->SetMarkerColor(7);
148 ls->SetLineColor(7);
149 ls->SetLineWidth(1);
150 gEve->InsertVizDBEntry("REC PVTX Box", ls);
151
152 // SPD vertex
153
154 ls = new TEveStraightLineSet;
155 ls->SetMarkerStyle(2);
156 ls->SetMarkerColor(6);
157 ls->SetLineColor(6);
158 ls->SetLineWidth(3);
159 gEve->InsertVizDBEntry("REC PVTX SPD", ls);
160
161 ls = new TEveStraightLineSet;
162 ls->SetMarkerStyle(2);
163 ls->SetMarkerColor(6);
164 ls->SetLineColor(6);
165 ls->SetLineWidth(1);
166 gEve->InsertVizDBEntry("REC PVTX Ellipse SPD", ls);
167
168 ls = new TEveStraightLineSet;
169 ls->SetMarkerStyle(2);
170 ls->SetMarkerColor(6);
171 ls->SetLineColor(6);
172 ls->SetLineWidth(1);
173 gEve->InsertVizDBEntry("REC PVTX Box SPD", ls);
174
175 // TPC vertex
176
177 ls = new TEveStraightLineSet;
178 ls->SetMarkerStyle(2);
179 ls->SetMarkerColor(5);
180 ls->SetLineColor(5);
181 ls->SetLineWidth(3);
182 gEve->InsertVizDBEntry("REC PVTX TPC", ls);
183
184 ls = new TEveStraightLineSet;
185 ls->SetMarkerStyle(2);
186 ls->SetMarkerColor(5);
187 ls->SetLineColor(5);
188 ls->SetLineWidth(1);
189 gEve->InsertVizDBEntry("REC PVTX Ellipse TPC", ls);
190
191 ls = new TEveStraightLineSet;
192 ls->SetMarkerStyle(2);
193 ls->SetMarkerColor(5);
194 ls->SetLineColor(5);
195 ls->SetLineWidth(1);
196 gEve->InsertVizDBEntry("REC PVTX Box TPC", ls);
197
198 //Tracks
199
200 tl = new TEveTrackList("ESD Tracks");
201 tl->SetLineStyle(6);
202 tl->SetMainColor(1);
203 tl->SetLineWidth(1);
204 gEve->InsertVizDBEntry("REC Tracks",tl);
205
206 tl = new TEveTrackList("ESD Tracks MI");
207 tl->SetLineStyle(6);
208 tl->SetMainColor(1);
209 tl->SetLineWidth(1);
210 gEve->InsertVizDBEntry("REC Tracks MI",tl);
211
212 TEveElementList* el = new TEveElementList("ESD Tracks by category");
213 TEveTrackList *tltemp[7];
214 tltemp[0] = new TEveTrackList("Sigma < 3");
215 tltemp[0]->SetLineStyle(6);
216 tltemp[0]->SetLineColor(1);
217 tltemp[0]->SetLineWidth(1);
218 el->AddElement(tltemp[0]);
219
220 tltemp[1] = new TEveTrackList("3 < Sigma < 5");
221 tltemp[1]->SetLineStyle(6);
222 tltemp[1]->SetLineColor(1);
223 tltemp[1]->SetLineWidth(1);
224 el->AddElement(tltemp[1]);
225
226 tltemp[2] = new TEveTrackList("5 < Sigma");
227 tltemp[2]->SetLineStyle(6);
228 tltemp[2]->SetLineColor(1);
229 tltemp[2]->SetLineWidth(1);
230 el->AddElement(tltemp[2]);
231
232 tltemp[3] = new TEveTrackList("no ITS refit; Sigma < 5");
233 tltemp[3]->SetLineStyle(6);
234 tltemp[3]->SetLineColor(1);
235 tltemp[3]->SetLineWidth(1);
236 el->AddElement(tltemp[3]);
237
238 tltemp[4] = new TEveTrackList("no ITS refit; Sigma > 5");
239 tltemp[4]->SetLineStyle(6);
240 tltemp[4]->SetLineColor(1);
241 tltemp[4]->SetLineWidth(1);
242 el->AddElement(tltemp[4]);
243
244 tltemp[5] = new TEveTrackList("no TPC refit");
245 tltemp[5]->SetLineStyle(6);
246 tltemp[5]->SetLineColor(1);
247 tltemp[5]->SetLineWidth(1);
248 el->AddElement(tltemp[5]);
249
250 tltemp[6] = new TEveTrackList("ITS stand-alone");
251 tltemp[6]->SetLineStyle(6);
252 tltemp[6]->SetLineColor(1);
253 tltemp[6]->SetLineWidth(1);
254 el->AddElement(tltemp[6]);
255
256 el->SetVizTag("ESD Tracks by category");
257 gEve->AddElement(el);
258
259 TEveElementList* el = new TEveElementList("ESD Tracks by anal cuts");
260 TEveTrackList *tlac[2];
261 tlac[0] = new TEveTrackList("Passed");
262 tlac[0]->SetLineStyle(6);
263 tlac[0]->SetMainColor(1);
264 tlac[0]->SetLineWidth(1);
265 el->AddElement(tlac[0]);
266
267 tlac[1] = new TEveTrackList("Rejected");
268 tlac[1]->SetLineStyle(6);
269 tlac[1]->SetMainColor(1);
270 tlac[1]->SetLineWidth(1);
271 el->AddElement(tlac[1]);
272
273 el->SetVizTag("ESD Tracks by anal cut");
274 gEve->AddElement(el);
275
276 TEveElementList* el = new TEveElementList("ESD Tracklets SPD");
277 TEveTrackList *tlac[2];
278 tlac[0] = new TEveTrackList("Good");
279 tlac[0]->SetLineStyle(6);
280 tlac[0]->SetMainColor(1);
281 tlac[0]->SetLineWidth(1);
282 el->AddElement(tlac[0]);
283
284 tlac[1] = new TEveTrackList("Bad");
285 tlac[1]->SetLineStyle(6);
286 tlac[1]->SetMainColor(1);
287 tlac[1]->SetLineWidth(1);
288 el->AddElement(tlac[1]);
289
290 el->SetVizTag("ESD Tracklets SPD");
291 gEve->AddElement(el);
292
293}