11 #include <TDirectory.h>
25 LogTrace(
"TestHits") << iConfig << std::endl;
43 file =
new TFile(
"testhits.root",
"recreate");
44 for (
int i = 0;
i != 6;
i++)
45 for (
int j = 0;
j != 9;
j++) {
59 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts";
62 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts";
65 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts";
68 title <<
"Chi2Increment_" <<
i + 1 <<
"-" <<
j + 1;
72 title <<
"PullGM_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts";
75 title <<
"PullGM_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts";
78 title <<
"PullGM_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts";
82 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr";
85 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr";
88 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr";
92 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs";
95 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs";
98 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs";
101 if (((
i == 2 ||
i == 4) && (
j == 0 ||
j == 1)) || (
i == 3 ||
i == 5)) {
104 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_mono";
107 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_mono";
110 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_mono";
114 title <<
"PullGM_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_mono";
117 title <<
"PullGM_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_mono";
120 title <<
"PullGM_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_mono";
124 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr_mono";
127 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr_mono";
130 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr_mono";
134 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs_mono";
137 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs_mono";
140 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs_mono";
145 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_stereo";
148 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_stereo";
151 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_stereo";
155 title <<
"PullGM_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_stereo";
158 title <<
"PullGM_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_stereo";
161 title <<
"PullGM_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_stereo";
165 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr_stereo";
168 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr_stereo";
171 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr_stereo";
175 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs_stereo";
178 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs_stereo";
181 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs_stereo";
185 hTotChi2Increment =
new TH1F(
"TotChi2Increment",
"TotChi2Increment", 1000, 0, 100);
186 hProcess_vs_Chi2 =
new TH2F(
"Process_vs_Chi2",
"Process_vs_Chi2", 1000, 0, 100, 17, -0.5, 16.5);
187 hClsize_vs_Chi2 =
new TH2F(
"Clsize_vs_Chi2",
"Clsize_vs_Chi2", 1000, 0, 100, 17, -0.5, 16.5);
195 LogTrace(
"TestHits") <<
"\nnew event";
203 LogTrace(
"TestHits") <<
"\n*****************new candidate*****************" << std::endl;
215 if (theTSOS.globalMomentum().eta() >
maxeta || theTSOS.globalMomentum().eta() <
mineta)
229 std::vector<TrajectoryMeasurement> vtm =
result[0].measurements();
232 TSOS lastState = theTSOS;
233 for (std::vector<TrajectoryMeasurement>::iterator tm = vtm.begin(); tm != vtm.end(); tm++) {
235 if ((rhit)->isValid() == 0 && rhit->det() !=
nullptr)
237 LogTrace(
"TestHits") <<
"*****************new hit*****************";
239 int subdetId = rhit->det()->geographicalId().subdetId();
240 DetId id = rhit->
det()->geographicalId();
241 int layerId = tTopo->
layer(
id);
242 LogTrace(
"TestHits") <<
"subdetId=" << subdetId <<
" layerId=" << layerId;
244 double delta = 99999;
247 std::vector<PSimHit> assSimHits =
hitAssociator.associateHit(*(rhit->hit()));
248 if (assSimHits.empty())
251 for (std::vector<PSimHit>::const_iterator
m = assSimHits.begin();
m < assSimHits.end();
m++) {
252 if ((
m->localPosition() - rhitLPv).
mag() <
delta) {
254 delta = (
m->localPosition() - rhitLPv).
mag();
258 TSOS currentState = tm->forwardPredictedState();
259 if (tm->backwardPredictedState().isValid())
260 currentState =
combiner(tm->backwardPredictedState(), tm->forwardPredictedState());
262 tchi2 += tm->estimate();
265 double chi2increment = tm->estimate();
266 LogTrace(
"TestHits") <<
"tm->estimate()=" << tm->estimate();
268 title <<
"Chi2Increment_" << subdetId <<
"-" << layerId;
272 if (dynamic_cast<const SiPixelRecHit*>(rhit->hit()))
274 if (dynamic_cast<const SiStripRecHit2D*>(rhit->hit()))
278 const Surface* surf = &((rhit)->det()->surface());
281 if (dynamic_cast<const SiStripMatchedRecHit2D*>((rhit)->
hit())) {
282 double rechitmatchedx = rhit->localPosition().
x();
283 double rechitmatchedy = rhit->localPosition().y();
284 double mindist = 999999;
286 std::pair<LocalPoint, LocalVector> closestPair;
288 const BoundPlane& plane = (rhit)->det()->surface();
289 for (std::vector<PSimHit>::const_iterator
m = assSimHits.begin();
m < assSimHits.end();
m++) {
291 std::pair<LocalPoint, LocalVector> hitPair =
projectHit((*
m), stripDet, plane);
292 distx = fabs(rechitmatchedx - hitPair.first.x());
293 disty = fabs(rechitmatchedy - hitPair.first.y());
294 double dist = distx * distx + disty * disty;
295 if (
sqrt(dist) < mindist) {
297 closestPair = hitPair;
300 shitLPos = closestPair.first;
301 shitLMom = closestPair.second;
315 GlobalError rhitGPEr = (rhit)->globalPositionError();
317 double pullGPX_rs = (rhitGPos.
x() - shitGPos.
x()) /
sqrt(rhitGPEr.
cxx());
318 double pullGPY_rs = (rhitGPos.
y() - shitGPos.
y()) /
sqrt(rhitGPEr.
cyy());
319 double pullGPZ_rs = (rhitGPos.
z() - shitGPos.
z()) /
sqrt(rhitGPEr.
czz());
324 LogTrace(
"TestHits") <<
"rs" << std::endl;
325 LogVerbatim(
"TestHits") <<
"assSimHits.size()=" << assSimHits.size();
326 LogVerbatim(
"TestHits") <<
"tsos globalPos =" << tsosGPos;
327 LogVerbatim(
"TestHits") <<
"sim hit globalPos=" << shitGPos;
328 LogVerbatim(
"TestHits") <<
"rec hit globalPos=" << rhitGPos;
329 LogVerbatim(
"TestHits") <<
"geographicalId =" << rhit->det()->geographicalId().rawId();
333 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_rs";
336 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_rs";
339 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_rs";
342 double pullGPX_tr = (tsosGPos.
x() - rhitGPos.
x()) /
sqrt(tsosGPEr.
cxx() + rhitGPEr.
cxx());
343 double pullGPY_tr = (tsosGPos.
y() - rhitGPos.
y()) /
sqrt(tsosGPEr.
cyy() + rhitGPEr.
cyy());
344 double pullGPZ_tr = (tsosGPos.
z() - rhitGPos.
z()) /
sqrt(tsosGPEr.
czz() + rhitGPEr.
czz());
349 LogTrace(
"TestHits") <<
"tr" << std::endl;
352 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_tr";
355 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_tr";
358 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_tr";
361 double pullGPX_ts = (tsosGPos.
x() - shitGPos.
x()) /
sqrt(tsosGPEr.
cxx());
362 double pullGPY_ts = (tsosGPos.
y() - shitGPos.
y()) /
sqrt(tsosGPEr.
cyy());
363 double pullGPZ_ts = (tsosGPos.
z() - shitGPos.
z()) /
sqrt(tsosGPEr.
czz());
368 LogTrace(
"TestHits") <<
"ts1" << std::endl;
371 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_ts";
374 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_ts";
377 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_ts";
380 double pullGMX_ts = (tsosGMom.
x() - shitGMom.
x()) /
sqrt(tsosGMEr.
cxx());
381 double pullGMY_ts = (tsosGMom.
y() - shitGMom.
y()) /
sqrt(tsosGMEr.
cyy());
382 double pullGMZ_ts = (tsosGMom.
z() - shitGMom.
z()) /
sqrt(tsosGMEr.
czz());
387 LogTrace(
"TestHits") <<
"ts2" << std::endl;
390 title <<
"PullGM_X_" << subdetId <<
"-" << layerId <<
"_ts";
393 title <<
"PullGM_Y_" << subdetId <<
"-" << layerId <<
"_ts";
396 title <<
"PullGM_Z_" << subdetId <<
"-" << layerId <<
"_ts";
399 if (dynamic_cast<const SiStripMatchedRecHit2D*>((rhit)->
hit())) {
401 LogTrace(
"TestHits") <<
"MONO HIT" << std::endl;
402 auto m = dynamic_cast<const SiStripMatchedRecHit2D*>((rhit)->
hit())->monoHit();
404 if (tMonoHit ==
nullptr)
406 vector<PSimHit> assMonoSimHits =
hitAssociator.associateHit(*tMonoHit->hit());
407 if (assMonoSimHits.empty())
409 const PSimHit sMonoHit = *(assSimHits.begin());
410 const Surface* monoSurf = &(tMonoHit->det()->surface());
411 if (monoSurf ==
nullptr)
427 GlobalPoint monoRhitGPos = tMonoHit->globalPosition();
428 GlobalError monoRhitGPEr = tMonoHit->globalPositionError();
430 double pullGPX_rs_mono = (monoRhitGPos.
x() - monoShitGPos.
x()) /
sqrt(monoRhitGPEr.
cxx());
431 double pullGPY_rs_mono = (monoRhitGPos.
y() - monoShitGPos.
y()) /
sqrt(monoRhitGPEr.
cyy());
432 double pullGPZ_rs_mono = (monoRhitGPos.
z() - monoShitGPos.
z()) /
sqrt(monoRhitGPEr.
czz());
438 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_rs_mono";
441 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_rs_mono";
444 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_rs_mono";
447 double pullGPX_tr_mono = (monoTsosGPos.
x() - monoRhitGPos.
x()) /
sqrt(monoTsosGPEr.
cxx() + monoRhitGPEr.
cxx());
448 double pullGPY_tr_mono = (monoTsosGPos.
y() - monoRhitGPos.
y()) /
sqrt(monoTsosGPEr.
cyy() + monoRhitGPEr.
cyy());
449 double pullGPZ_tr_mono = (monoTsosGPos.
z() - monoRhitGPos.
z()) /
sqrt(monoTsosGPEr.
czz() + monoRhitGPEr.
czz());
455 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_tr_mono";
458 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_tr_mono";
461 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_tr_mono";
464 double pullGPX_ts_mono = (monoTsosGPos.
x() - monoShitGPos.
x()) /
sqrt(monoTsosGPEr.
cxx());
465 double pullGPY_ts_mono = (monoTsosGPos.
y() - monoShitGPos.
y()) /
sqrt(monoTsosGPEr.
cyy());
466 double pullGPZ_ts_mono = (monoTsosGPos.
z() - monoShitGPos.
z()) /
sqrt(monoTsosGPEr.
czz());
472 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_ts_mono";
475 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_ts_mono";
478 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_ts_mono";
481 double pullGMX_ts_mono = (monoTsosGMom.
x() - monoShitGMom.
x()) /
sqrt(monoTsosGMEr.
cxx());
482 double pullGMY_ts_mono = (monoTsosGMom.
y() - monoShitGMom.
y()) /
sqrt(monoTsosGMEr.
cyy());
483 double pullGMZ_ts_mono = (monoTsosGMom.
z() - monoShitGMom.
z()) /
sqrt(monoTsosGMEr.
czz());
489 title <<
"PullGM_X_" << subdetId <<
"-" << layerId <<
"_ts_mono";
492 title <<
"PullGM_Y_" << subdetId <<
"-" << layerId <<
"_ts_mono";
495 title <<
"PullGM_Z_" << subdetId <<
"-" << layerId <<
"_ts_mono";
499 LogTrace(
"TestHits") <<
"STEREO HIT" << std::endl;
500 auto s = dynamic_cast<const SiStripMatchedRecHit2D*>((rhit)->
hit())->stereoHit();
502 if (tStereoHit ==
nullptr)
504 vector<PSimHit> assStereoSimHits =
hitAssociator.associateHit(*tStereoHit->hit());
505 if (assStereoSimHits.empty())
507 const PSimHit sStereoHit = *(assSimHits.begin());
508 const Surface* stereoSurf = &(tStereoHit->det()->surface());
509 if (stereoSurf ==
nullptr)
512 if (stereoState.
isValid() == 0)
525 GlobalPoint stereoRhitGPos = tStereoHit->globalPosition();
526 GlobalError stereoRhitGPEr = tStereoHit->globalPositionError();
528 double pullGPX_rs_stereo = (stereoRhitGPos.
x() - stereoShitGPos.
x()) /
sqrt(stereoRhitGPEr.
cxx());
529 double pullGPY_rs_stereo = (stereoRhitGPos.
y() - stereoShitGPos.
y()) /
sqrt(stereoRhitGPEr.
cyy());
530 double pullGPZ_rs_stereo = (stereoRhitGPos.
z() - stereoShitGPos.
z()) /
sqrt(stereoRhitGPEr.
czz());
536 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_rs_stereo";
539 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_rs_stereo";
542 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_rs_stereo";
545 double pullGPX_tr_stereo =
546 (stereoTsosGPos.
x() - stereoRhitGPos.
x()) /
sqrt(stereoTsosGPEr.
cxx() + stereoRhitGPEr.
cxx());
547 double pullGPY_tr_stereo =
548 (stereoTsosGPos.
y() - stereoRhitGPos.
y()) /
sqrt(stereoTsosGPEr.
cyy() + stereoRhitGPEr.
cyy());
549 double pullGPZ_tr_stereo =
550 (stereoTsosGPos.
z() - stereoRhitGPos.
z()) /
sqrt(stereoTsosGPEr.
czz() + stereoRhitGPEr.
czz());
556 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_tr_stereo";
559 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_tr_stereo";
562 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_tr_stereo";
565 double pullGPX_ts_stereo = (stereoTsosGPos.
x() - stereoShitGPos.
x()) /
sqrt(stereoTsosGPEr.
cxx());
566 double pullGPY_ts_stereo = (stereoTsosGPos.
y() - stereoShitGPos.
y()) /
sqrt(stereoTsosGPEr.
cyy());
567 double pullGPZ_ts_stereo = (stereoTsosGPos.
z() - stereoShitGPos.
z()) /
sqrt(stereoTsosGPEr.
czz());
573 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_ts_stereo";
576 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_ts_stereo";
579 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_ts_stereo";
582 double pullGMX_ts_stereo = (stereoTsosGMom.
x() - stereoShitGMom.
x()) /
sqrt(stereoTsosGMEr.
cxx());
583 double pullGMY_ts_stereo = (stereoTsosGMom.
y() - stereoShitGMom.
y()) /
sqrt(stereoTsosGMEr.
cyy());
584 double pullGMZ_ts_stereo = (stereoTsosGMom.
z() - stereoShitGMom.
z()) /
sqrt(stereoTsosGMEr.
czz());
590 title <<
"PullGM_X_" << subdetId <<
"-" << layerId <<
"_ts_stereo";
593 title <<
"PullGM_Y_" << subdetId <<
"-" << layerId <<
"_ts_stereo";
596 title <<
"PullGM_Z_" << subdetId <<
"-" << layerId <<
"_ts_stereo";
601 LogTrace(
"TestHits") <<
"traj chi2=" << tchi2;
604 LogTrace(
"TestHits") <<
"end of event" << std::endl;
949 TDirectory* chi2i =
file->mkdir(
"Chi2_Increment");
951 TDirectory* gp_ts =
file->mkdir(
"GP_TSOS-SimHit");
952 TDirectory* gm_ts =
file->mkdir(
"GM_TSOS-SimHit");
953 TDirectory* gp_tr =
file->mkdir(
"GP_TSOS-RecHit");
954 TDirectory* gp_rs =
file->mkdir(
"GP_RecHit-SimHit");
956 TDirectory* gp_tsx = gp_ts->mkdir(
"X");
957 TDirectory* gp_tsy = gp_ts->mkdir(
"Y");
958 TDirectory* gp_tsz = gp_ts->mkdir(
"Z");
959 TDirectory* gm_tsx = gm_ts->mkdir(
"X");
960 TDirectory* gm_tsy = gm_ts->mkdir(
"Y");
961 TDirectory* gm_tsz = gm_ts->mkdir(
"Z");
962 TDirectory* gp_trx = gp_tr->mkdir(
"X");
963 TDirectory* gp_try = gp_tr->mkdir(
"Y");
964 TDirectory* gp_trz = gp_tr->mkdir(
"Z");
965 TDirectory* gp_rsx = gp_rs->mkdir(
"X");
966 TDirectory* gp_rsy = gp_rs->mkdir(
"Y");
967 TDirectory* gp_rsz = gp_rs->mkdir(
"Z");
969 TDirectory* gp_tsx_mono = gp_ts->mkdir(
"MONOX");
970 TDirectory* gp_tsy_mono = gp_ts->mkdir(
"MONOY");
971 TDirectory* gp_tsz_mono = gp_ts->mkdir(
"MONOZ");
972 TDirectory* gm_tsx_mono = gm_ts->mkdir(
"MONOX");
973 TDirectory* gm_tsy_mono = gm_ts->mkdir(
"MONOY");
974 TDirectory* gm_tsz_mono = gm_ts->mkdir(
"MONOZ");
975 TDirectory* gp_trx_mono = gp_tr->mkdir(
"MONOX");
976 TDirectory* gp_try_mono = gp_tr->mkdir(
"MONOY");
977 TDirectory* gp_trz_mono = gp_tr->mkdir(
"MONOZ");
978 TDirectory* gp_rsx_mono = gp_rs->mkdir(
"MONOX");
979 TDirectory* gp_rsy_mono = gp_rs->mkdir(
"MONOY");
980 TDirectory* gp_rsz_mono = gp_rs->mkdir(
"MONOZ");
982 TDirectory* gp_tsx_stereo = gp_ts->mkdir(
"STEREOX");
983 TDirectory* gp_tsy_stereo = gp_ts->mkdir(
"STEREOY");
984 TDirectory* gp_tsz_stereo = gp_ts->mkdir(
"STEREOZ");
985 TDirectory* gm_tsx_stereo = gm_ts->mkdir(
"STEREOX");
986 TDirectory* gm_tsy_stereo = gm_ts->mkdir(
"STEREOY");
987 TDirectory* gm_tsz_stereo = gm_ts->mkdir(
"STEREOZ");
988 TDirectory* gp_trx_stereo = gp_tr->mkdir(
"STEREOX");
989 TDirectory* gp_try_stereo = gp_tr->mkdir(
"STEREOY");
990 TDirectory* gp_trz_stereo = gp_tr->mkdir(
"STEREOZ");
991 TDirectory* gp_rsx_stereo = gp_rs->mkdir(
"STEREOX");
992 TDirectory* gp_rsy_stereo = gp_rs->mkdir(
"STEREOY");
993 TDirectory* gp_rsz_stereo = gp_rs->mkdir(
"STEREOZ");
999 for (
int i = 0;
i != 6;
i++)
1000 for (
int j = 0;
j != 9;
j++) {
1001 if (
i == 0 &&
j > 2)
1003 if (
i == 1 &&
j > 1)
1005 if (
i == 2 &&
j > 3)
1007 if (
i == 3 &&
j > 2)
1009 if (
i == 4 &&
j > 5)
1011 if (
i == 5 &&
j > 8)
1015 title <<
"Chi2Increment_" <<
i + 1 <<
"-" <<
j + 1;
1021 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts";
1025 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts";
1029 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts";
1035 title <<
"PullGM_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts";
1039 title <<
"PullGM_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts";
1043 title <<
"PullGM_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts";
1049 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr";
1053 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr";
1057 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr";
1063 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs";
1067 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs";
1071 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs";
1074 if (((
i == 2 ||
i == 4) && (
j == 0 ||
j == 1)) || (
i == 3 ||
i == 5)) {
1079 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_mono";
1083 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_mono";
1087 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_mono";
1093 title <<
"PullGM_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_mono";
1097 title <<
"PullGM_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_mono";
1101 title <<
"PullGM_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_mono";
1107 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr_mono";
1111 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr_mono";
1115 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr_mono";
1121 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs_mono";
1125 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs_mono";
1129 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs_mono";
1134 gp_tsx_stereo->cd();
1136 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_stereo";
1138 gp_tsy_stereo->cd();
1140 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_stereo";
1142 gp_tsz_stereo->cd();
1144 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_stereo";
1148 gm_tsx_stereo->cd();
1150 title <<
"PullGM_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_stereo";
1152 gm_tsy_stereo->cd();
1154 title <<
"PullGM_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_stereo";
1156 gm_tsz_stereo->cd();
1158 title <<
"PullGM_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_stereo";
1162 gp_trx_stereo->cd();
1164 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr_stereo";
1166 gp_try_stereo->cd();
1168 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr_stereo";
1170 gp_trz_stereo->cd();
1172 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr_stereo";
1176 gp_rsx_stereo->cd();
1178 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs_stereo";
1180 gp_rsy_stereo->cd();
1182 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs_stereo";
1184 gp_rsz_stereo->cd();
1186 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs_stereo";
1201 LocalPoint localHit = plane.toLocal(globalpos);
1218 return std::pair<LocalPoint, LocalVector>(projectedPos, localStripDir);