17 #include "TPolyLine.h"
108 double tp_len = 2*10.;
113 trackpp->SetLineColor(
color );
115 TObject* trackppObj = trackpp;
122 trackp->SetLineWidth( 2 );
123 trackp->SetLineColor(
color );
126 TObject* trackpObj = trackp;
131 trackp_o->SetLineColor(
color );
134 TObject* trackp_oObj = trackp_o;
144 dir_o *= (trkDirection.z()<0 ? -1 : 1);
150 marker->SetLineColor( 311 );
151 marker->SetLineWidth( 2 );
154 TObject* markerObj =
marker;
160 bool onTrack,
bool outlierOnTrack,
double) {
162 double tube_radius = 2.;
165 bool backside = strawPosition.z() < 0.;
168 if (onTrack && !outlierOnTrack ) {
169 color_hit = backside ? 303 : 4;
171 }
else if (onTrack && outlierOnTrack) {
172 color_hit = backside ? 302 : 3;
175 color_hit = backside ? 306 : 6;
180 tube->SetLineColor( color_tube );
181 if (!onTrack && backside)
tube->SetFillColor( 310 );
184 TObject* tubeObj =
tube;
188 double x_flag = backside ? -1.6 : 1.6;
189 GlobalPosition gp_flag(strawPosition.x()+1.6,strawPosition.y()+x_flag,strawPosition.z());
191 tubeFlag->SetLineColor( color_hit );
192 tubeFlag->SetFillColor( color_hit );
193 TObject* flagObj = tubeFlag;
199 hit->SetLineColor( color_hit );
200 hit->SetLineWidth( 2 );
203 TObject* hitObj = hit;
207 hit->SetLineColor( color_hit );
208 hit->SetFillColor( color_hit );
209 hit->SetLineWidth( 2 );
210 TObject* hitObj = hit;
216 tube_c->SetLineColor( 1 );
217 tube_c->SetFillColor( 1 );
220 TObject* tube_cObj = tube_c;
241 hit->SetLineColor(
color );
242 hit->SetFillColor(
color );
245 TObject* hitObj = hit;
253 dir_o *= (trkDirection.z()<0 ? -1 : 1);
254 char assgnProbText[50];
257 sprintf(assgnProbText,
"%e", assgnProbs[0]);
261 text->SetTextAlign((dir_o.x()*driftRadii[0])>0 ? 12 : 32);
262 TObject* textObj =
text;
266 for (
unsigned int i = 1;
i < strawPositions.size();
i++) {
274 sprintf(assgnProbText,
"%e", assgnProbs[
i]);
278 text->SetTextAlign((dir_o.x()*driftRadii[
i])>0 ? 12 : 32);
279 TObject* textObj =
text;
282 if (strawPositions[
i] != strawPositions[
i-1]) {
285 connection->SetLineColor(16);
286 TObject* connectionObj = connection;
310 double tp_len = 2*10.;
315 trackpp->SetLineColor(
color );
317 TObject* trackppObj = trackpp;
328 trackp->SetLineWidth( 2 );
329 trackp->SetLineColor(
color );
332 TObject* trackpObj = trackp;
337 trackp_o->SetLineColor(
color );
340 TObject* trackp_oObj = trackp_o;
374 bool outlierOnTrack,
double trackRadius) {
376 const double tube_radius = 2.;
377 const double radiusOfStrawCenters = 823.9;
379 const double phiScale = 1000.;
381 double Rho = radiusOfStrawCenters;
382 if (onTrack && (trackRadius > 0.)) {
389 if (onTrack && !outlierOnTrack ) {
392 }
else if (onTrack && outlierOnTrack) {
403 hit->SetLineColor( color_hit );
404 hit->SetLineWidth( 2 );
407 TObject* hitObj = hit;
412 hit->SetLineColor( color_hit );
413 hit->SetFillColor( color_hit );
414 hit->SetLineWidth( 2 );
415 TObject* hitObj = hit;
421 tube->SetLineColor( color_tube );
424 TObject* tubeObj =
tube;
429 tube_c->SetLineColor( color_tube );
430 tube_c->SetFillColor( color_tube );
433 TObject* tube_cObj = tube_c;
436 double l = sqrt(strawPosition.y()*strawPosition.y() + strawPosition.x()*strawPosition.x());
437 TVector3 maxRadiusInPhiPosition1(Rho*strawPosition.x()/
l -
driftRadius * strawPosition.y()/
l,
442 maxRad1->SetLineColor( color_hit );
443 maxRad1->SetFillColor( color_hit );
446 TObject* maxRad1Obj = maxRad1;
448 TVector3 maxRadiusInPhiPosition2(Rho*strawPosition.x()/
l +
driftRadius * strawPosition.y()/
l,
453 maxRad2->SetLineColor( color_hit );
454 maxRad2->SetFillColor( color_hit );
457 TObject* maxRad2Obj = maxRad2;
478 hit->SetLineColor(
color );
479 hit->SetFillColor(
color );
482 TObject* hitObj = hit;