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;
214 if (theTSOS.globalMomentum().eta() >
maxeta || theTSOS.globalMomentum().eta() <
mineta)
228 std::vector<TrajectoryMeasurement> vtm =
result[0].measurements();
231 TSOS lastState = theTSOS;
232 for (std::vector<TrajectoryMeasurement>::iterator tm = vtm.begin(); tm != vtm.end(); tm++) {
234 if ((rhit)->isValid() == 0 && rhit->det() !=
nullptr)
236 LogTrace(
"TestHits") <<
"*****************new hit*****************";
238 int subdetId = rhit->det()->geographicalId().subdetId();
239 DetId id = rhit->
det()->geographicalId();
240 int layerId = tTopo->
layer(
id);
241 LogTrace(
"TestHits") <<
"subdetId=" << subdetId <<
" layerId=" << layerId;
243 double delta = 99999;
246 std::vector<PSimHit> assSimHits =
hitAssociator.associateHit(*(rhit->hit()));
247 if (assSimHits.empty())
250 for (std::vector<PSimHit>::const_iterator
m = assSimHits.begin();
m < assSimHits.end();
m++) {
251 if ((
m->localPosition() - rhitLPv).
mag() <
delta) {
253 delta = (
m->localPosition() - rhitLPv).
mag();
257 TSOS currentState = tm->forwardPredictedState();
258 if (tm->backwardPredictedState().isValid())
259 currentState =
combiner(tm->backwardPredictedState(), tm->forwardPredictedState());
260 TSOS updatedState = tm->updatedState();
261 tchi2 += tm->estimate();
264 double chi2increment = tm->estimate();
265 LogTrace(
"TestHits") <<
"tm->estimate()=" << tm->estimate();
267 title <<
"Chi2Increment_" << subdetId <<
"-" << layerId;
271 if (dynamic_cast<const SiPixelRecHit*>(rhit->hit()))
273 if (dynamic_cast<const SiStripRecHit2D*>(rhit->hit()))
277 const Surface* surf = &((rhit)->det()->surface());
280 if (dynamic_cast<const SiStripMatchedRecHit2D*>((rhit)->
hit())) {
281 double rechitmatchedx = rhit->localPosition().
x();
282 double rechitmatchedy = rhit->localPosition().y();
283 double mindist = 999999;
285 std::pair<LocalPoint, LocalVector> closestPair;
287 const BoundPlane& plane = (rhit)->det()->surface();
288 for (std::vector<PSimHit>::const_iterator
m = assSimHits.begin();
m < assSimHits.end();
m++) {
290 std::pair<LocalPoint, LocalVector> hitPair =
projectHit((*
m), stripDet, plane);
291 distx = fabs(rechitmatchedx - hitPair.first.x());
292 disty = fabs(rechitmatchedy - hitPair.first.y());
293 double dist = distx * distx + disty * disty;
294 if (
sqrt(dist) < mindist) {
296 closestPair = hitPair;
299 shitLPos = closestPair.first;
300 shitLMom = closestPair.second;
314 GlobalError rhitGPEr = (rhit)->globalPositionError();
316 double pullGPX_rs = (rhitGPos.
x() - shitGPos.
x()) /
sqrt(rhitGPEr.
cxx());
317 double pullGPY_rs = (rhitGPos.
y() - shitGPos.
y()) /
sqrt(rhitGPEr.
cyy());
318 double pullGPZ_rs = (rhitGPos.
z() - shitGPos.
z()) /
sqrt(rhitGPEr.
czz());
323 LogTrace(
"TestHits") <<
"rs" << std::endl;
324 LogVerbatim(
"TestHits") <<
"assSimHits.size()=" << assSimHits.size();
325 LogVerbatim(
"TestHits") <<
"tsos globalPos =" << tsosGPos;
326 LogVerbatim(
"TestHits") <<
"sim hit globalPos=" << shitGPos;
327 LogVerbatim(
"TestHits") <<
"rec hit globalPos=" << rhitGPos;
328 LogVerbatim(
"TestHits") <<
"geographicalId =" << rhit->det()->geographicalId().rawId();
332 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_rs";
335 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_rs";
338 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_rs";
341 double pullGPX_tr = (tsosGPos.
x() - rhitGPos.
x()) /
sqrt(tsosGPEr.
cxx() + rhitGPEr.
cxx());
342 double pullGPY_tr = (tsosGPos.
y() - rhitGPos.
y()) /
sqrt(tsosGPEr.
cyy() + rhitGPEr.
cyy());
343 double pullGPZ_tr = (tsosGPos.
z() - rhitGPos.
z()) /
sqrt(tsosGPEr.
czz() + rhitGPEr.
czz());
348 LogTrace(
"TestHits") <<
"tr" << std::endl;
351 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_tr";
354 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_tr";
357 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_tr";
360 double pullGPX_ts = (tsosGPos.
x() - shitGPos.
x()) /
sqrt(tsosGPEr.
cxx());
361 double pullGPY_ts = (tsosGPos.
y() - shitGPos.
y()) /
sqrt(tsosGPEr.
cyy());
362 double pullGPZ_ts = (tsosGPos.
z() - shitGPos.
z()) /
sqrt(tsosGPEr.
czz());
367 LogTrace(
"TestHits") <<
"ts1" << std::endl;
370 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_ts";
373 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_ts";
376 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_ts";
379 double pullGMX_ts = (tsosGMom.
x() - shitGMom.
x()) /
sqrt(tsosGMEr.
cxx());
380 double pullGMY_ts = (tsosGMom.
y() - shitGMom.
y()) /
sqrt(tsosGMEr.
cyy());
381 double pullGMZ_ts = (tsosGMom.
z() - shitGMom.
z()) /
sqrt(tsosGMEr.
czz());
386 LogTrace(
"TestHits") <<
"ts2" << std::endl;
389 title <<
"PullGM_X_" << subdetId <<
"-" << layerId <<
"_ts";
392 title <<
"PullGM_Y_" << subdetId <<
"-" << layerId <<
"_ts";
395 title <<
"PullGM_Z_" << subdetId <<
"-" << layerId <<
"_ts";
398 if (dynamic_cast<const SiStripMatchedRecHit2D*>((rhit)->
hit())) {
400 LogTrace(
"TestHits") <<
"MONO HIT" << std::endl;
401 auto m = dynamic_cast<const SiStripMatchedRecHit2D*>((rhit)->
hit())->monoHit();
403 if (tMonoHit ==
nullptr)
405 vector<PSimHit> assMonoSimHits =
hitAssociator.associateHit(*tMonoHit->hit());
406 if (assMonoSimHits.empty())
408 const PSimHit sMonoHit = *(assSimHits.begin());
409 const Surface* monoSurf = &(tMonoHit->det()->surface());
410 if (monoSurf ==
nullptr)
426 GlobalPoint monoRhitGPos = tMonoHit->globalPosition();
427 GlobalError monoRhitGPEr = tMonoHit->globalPositionError();
429 double pullGPX_rs_mono = (monoRhitGPos.
x() - monoShitGPos.
x()) /
sqrt(monoRhitGPEr.
cxx());
430 double pullGPY_rs_mono = (monoRhitGPos.
y() - monoShitGPos.
y()) /
sqrt(monoRhitGPEr.
cyy());
431 double pullGPZ_rs_mono = (monoRhitGPos.
z() - monoShitGPos.
z()) /
sqrt(monoRhitGPEr.
czz());
437 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_rs_mono";
440 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_rs_mono";
443 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_rs_mono";
446 double pullGPX_tr_mono = (monoTsosGPos.
x() - monoRhitGPos.
x()) /
sqrt(monoTsosGPEr.
cxx() + monoRhitGPEr.
cxx());
447 double pullGPY_tr_mono = (monoTsosGPos.
y() - monoRhitGPos.
y()) /
sqrt(monoTsosGPEr.
cyy() + monoRhitGPEr.
cyy());
448 double pullGPZ_tr_mono = (monoTsosGPos.
z() - monoRhitGPos.
z()) /
sqrt(monoTsosGPEr.
czz() + monoRhitGPEr.
czz());
454 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_tr_mono";
457 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_tr_mono";
460 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_tr_mono";
463 double pullGPX_ts_mono = (monoTsosGPos.
x() - monoShitGPos.
x()) /
sqrt(monoTsosGPEr.
cxx());
464 double pullGPY_ts_mono = (monoTsosGPos.
y() - monoShitGPos.
y()) /
sqrt(monoTsosGPEr.
cyy());
465 double pullGPZ_ts_mono = (monoTsosGPos.
z() - monoShitGPos.
z()) /
sqrt(monoTsosGPEr.
czz());
471 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_ts_mono";
474 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_ts_mono";
477 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_ts_mono";
480 double pullGMX_ts_mono = (monoTsosGMom.
x() - monoShitGMom.
x()) /
sqrt(monoTsosGMEr.
cxx());
481 double pullGMY_ts_mono = (monoTsosGMom.
y() - monoShitGMom.
y()) /
sqrt(monoTsosGMEr.
cyy());
482 double pullGMZ_ts_mono = (monoTsosGMom.
z() - monoShitGMom.
z()) /
sqrt(monoTsosGMEr.
czz());
488 title <<
"PullGM_X_" << subdetId <<
"-" << layerId <<
"_ts_mono";
491 title <<
"PullGM_Y_" << subdetId <<
"-" << layerId <<
"_ts_mono";
494 title <<
"PullGM_Z_" << subdetId <<
"-" << layerId <<
"_ts_mono";
498 LogTrace(
"TestHits") <<
"STEREO HIT" << std::endl;
499 auto s = dynamic_cast<const SiStripMatchedRecHit2D*>((rhit)->
hit())->stereoHit();
501 if (tStereoHit ==
nullptr)
503 vector<PSimHit> assStereoSimHits =
hitAssociator.associateHit(*tStereoHit->hit());
504 if (assStereoSimHits.empty())
506 const PSimHit sStereoHit = *(assSimHits.begin());
507 const Surface* stereoSurf = &(tStereoHit->det()->surface());
508 if (stereoSurf ==
nullptr)
511 if (stereoState.
isValid() == 0)
524 GlobalPoint stereoRhitGPos = tStereoHit->globalPosition();
525 GlobalError stereoRhitGPEr = tStereoHit->globalPositionError();
527 double pullGPX_rs_stereo = (stereoRhitGPos.
x() - stereoShitGPos.
x()) /
sqrt(stereoRhitGPEr.
cxx());
528 double pullGPY_rs_stereo = (stereoRhitGPos.
y() - stereoShitGPos.
y()) /
sqrt(stereoRhitGPEr.
cyy());
529 double pullGPZ_rs_stereo = (stereoRhitGPos.
z() - stereoShitGPos.
z()) /
sqrt(stereoRhitGPEr.
czz());
535 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_rs_stereo";
538 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_rs_stereo";
541 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_rs_stereo";
544 double pullGPX_tr_stereo =
545 (stereoTsosGPos.
x() - stereoRhitGPos.
x()) /
sqrt(stereoTsosGPEr.
cxx() + stereoRhitGPEr.
cxx());
546 double pullGPY_tr_stereo =
547 (stereoTsosGPos.
y() - stereoRhitGPos.
y()) /
sqrt(stereoTsosGPEr.
cyy() + stereoRhitGPEr.
cyy());
548 double pullGPZ_tr_stereo =
549 (stereoTsosGPos.
z() - stereoRhitGPos.
z()) /
sqrt(stereoTsosGPEr.
czz() + stereoRhitGPEr.
czz());
555 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_tr_stereo";
558 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_tr_stereo";
561 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_tr_stereo";
564 double pullGPX_ts_stereo = (stereoTsosGPos.
x() - stereoShitGPos.
x()) /
sqrt(stereoTsosGPEr.
cxx());
565 double pullGPY_ts_stereo = (stereoTsosGPos.
y() - stereoShitGPos.
y()) /
sqrt(stereoTsosGPEr.
cyy());
566 double pullGPZ_ts_stereo = (stereoTsosGPos.
z() - stereoShitGPos.
z()) /
sqrt(stereoTsosGPEr.
czz());
572 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_ts_stereo";
575 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_ts_stereo";
578 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_ts_stereo";
581 double pullGMX_ts_stereo = (stereoTsosGMom.
x() - stereoShitGMom.
x()) /
sqrt(stereoTsosGMEr.
cxx());
582 double pullGMY_ts_stereo = (stereoTsosGMom.
y() - stereoShitGMom.
y()) /
sqrt(stereoTsosGMEr.
cyy());
583 double pullGMZ_ts_stereo = (stereoTsosGMom.
z() - stereoShitGMom.
z()) /
sqrt(stereoTsosGMEr.
czz());
589 title <<
"PullGM_X_" << subdetId <<
"-" << layerId <<
"_ts_stereo";
592 title <<
"PullGM_Y_" << subdetId <<
"-" << layerId <<
"_ts_stereo";
595 title <<
"PullGM_Z_" << subdetId <<
"-" << layerId <<
"_ts_stereo";
598 lastState = updatedState;
600 LogTrace(
"TestHits") <<
"traj chi2=" << tchi2;
603 LogTrace(
"TestHits") <<
"end of event" << std::endl;
948 TDirectory* chi2i =
file->mkdir(
"Chi2_Increment");
950 TDirectory* gp_ts =
file->mkdir(
"GP_TSOS-SimHit");
951 TDirectory* gm_ts =
file->mkdir(
"GM_TSOS-SimHit");
952 TDirectory* gp_tr =
file->mkdir(
"GP_TSOS-RecHit");
953 TDirectory* gp_rs =
file->mkdir(
"GP_RecHit-SimHit");
955 TDirectory* gp_tsx = gp_ts->mkdir(
"X");
956 TDirectory* gp_tsy = gp_ts->mkdir(
"Y");
957 TDirectory* gp_tsz = gp_ts->mkdir(
"Z");
958 TDirectory* gm_tsx = gm_ts->mkdir(
"X");
959 TDirectory* gm_tsy = gm_ts->mkdir(
"Y");
960 TDirectory* gm_tsz = gm_ts->mkdir(
"Z");
961 TDirectory* gp_trx = gp_tr->mkdir(
"X");
962 TDirectory* gp_try = gp_tr->mkdir(
"Y");
963 TDirectory* gp_trz = gp_tr->mkdir(
"Z");
964 TDirectory* gp_rsx = gp_rs->mkdir(
"X");
965 TDirectory* gp_rsy = gp_rs->mkdir(
"Y");
966 TDirectory* gp_rsz = gp_rs->mkdir(
"Z");
968 TDirectory* gp_tsx_mono = gp_ts->mkdir(
"MONOX");
969 TDirectory* gp_tsy_mono = gp_ts->mkdir(
"MONOY");
970 TDirectory* gp_tsz_mono = gp_ts->mkdir(
"MONOZ");
971 TDirectory* gm_tsx_mono = gm_ts->mkdir(
"MONOX");
972 TDirectory* gm_tsy_mono = gm_ts->mkdir(
"MONOY");
973 TDirectory* gm_tsz_mono = gm_ts->mkdir(
"MONOZ");
974 TDirectory* gp_trx_mono = gp_tr->mkdir(
"MONOX");
975 TDirectory* gp_try_mono = gp_tr->mkdir(
"MONOY");
976 TDirectory* gp_trz_mono = gp_tr->mkdir(
"MONOZ");
977 TDirectory* gp_rsx_mono = gp_rs->mkdir(
"MONOX");
978 TDirectory* gp_rsy_mono = gp_rs->mkdir(
"MONOY");
979 TDirectory* gp_rsz_mono = gp_rs->mkdir(
"MONOZ");
981 TDirectory* gp_tsx_stereo = gp_ts->mkdir(
"STEREOX");
982 TDirectory* gp_tsy_stereo = gp_ts->mkdir(
"STEREOY");
983 TDirectory* gp_tsz_stereo = gp_ts->mkdir(
"STEREOZ");
984 TDirectory* gm_tsx_stereo = gm_ts->mkdir(
"STEREOX");
985 TDirectory* gm_tsy_stereo = gm_ts->mkdir(
"STEREOY");
986 TDirectory* gm_tsz_stereo = gm_ts->mkdir(
"STEREOZ");
987 TDirectory* gp_trx_stereo = gp_tr->mkdir(
"STEREOX");
988 TDirectory* gp_try_stereo = gp_tr->mkdir(
"STEREOY");
989 TDirectory* gp_trz_stereo = gp_tr->mkdir(
"STEREOZ");
990 TDirectory* gp_rsx_stereo = gp_rs->mkdir(
"STEREOX");
991 TDirectory* gp_rsy_stereo = gp_rs->mkdir(
"STEREOY");
992 TDirectory* gp_rsz_stereo = gp_rs->mkdir(
"STEREOZ");
998 for (
int i = 0;
i != 6;
i++)
999 for (
int j = 0;
j != 9;
j++) {
1000 if (
i == 0 &&
j > 2)
1002 if (
i == 1 &&
j > 1)
1004 if (
i == 2 &&
j > 3)
1006 if (
i == 3 &&
j > 2)
1008 if (
i == 4 &&
j > 5)
1010 if (
i == 5 &&
j > 8)
1014 title <<
"Chi2Increment_" <<
i + 1 <<
"-" <<
j + 1;
1020 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts";
1024 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts";
1028 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts";
1034 title <<
"PullGM_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts";
1038 title <<
"PullGM_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts";
1042 title <<
"PullGM_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts";
1048 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr";
1052 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr";
1056 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr";
1062 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs";
1066 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs";
1070 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs";
1073 if (((
i == 2 ||
i == 4) && (
j == 0 ||
j == 1)) || (
i == 3 ||
i == 5)) {
1078 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_mono";
1082 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_mono";
1086 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_mono";
1092 title <<
"PullGM_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_mono";
1096 title <<
"PullGM_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_mono";
1100 title <<
"PullGM_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_mono";
1106 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr_mono";
1110 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr_mono";
1114 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr_mono";
1120 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs_mono";
1124 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs_mono";
1128 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs_mono";
1133 gp_tsx_stereo->cd();
1135 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_stereo";
1137 gp_tsy_stereo->cd();
1139 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_stereo";
1141 gp_tsz_stereo->cd();
1143 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_stereo";
1147 gm_tsx_stereo->cd();
1149 title <<
"PullGM_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_stereo";
1151 gm_tsy_stereo->cd();
1153 title <<
"PullGM_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_stereo";
1155 gm_tsz_stereo->cd();
1157 title <<
"PullGM_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_ts_stereo";
1161 gp_trx_stereo->cd();
1163 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr_stereo";
1165 gp_try_stereo->cd();
1167 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr_stereo";
1169 gp_trz_stereo->cd();
1171 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_tr_stereo";
1175 gp_rsx_stereo->cd();
1177 title <<
"PullGP_X_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs_stereo";
1179 gp_rsy_stereo->cd();
1181 title <<
"PullGP_Y_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs_stereo";
1183 gp_rsz_stereo->cd();
1185 title <<
"PullGP_Z_" <<
i + 1 <<
"-" <<
j + 1 <<
"_rs_stereo";
1200 LocalPoint localHit = plane.toLocal(globalpos);
1217 return std::pair<LocalPoint, LocalVector>(projectedPos, localStripDir);