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