11 #include <TDirectory.h> 24 trackerHitAssociatorConfig_(consumesCollector()){
25 LogTrace(
"TestSmoothHits") << iConfig<< std::endl;
47 file =
new TFile(
"testSmoothHits.root",
"recreate");
48 for (
int i=0;
i!=6;
i++)
49 for (
int j=0; j!=9; j++){
50 if (
i==0 && j>2)
break;
51 if (
i==1 && j>1)
break;
52 if (
i==2 && j>3)
break;
53 if (
i==3 && j>2)
break;
54 if (
i==4 && j>5)
break;
55 if (
i==5 && j>8)
break;
57 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_ts";
60 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_ts";
63 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_ts";
66 title <<
"Chi2Increment_" <<
i+1 <<
"-" << j+1;
70 title <<
"PullGM_X_" <<
i+1 <<
"-" << j+1 <<
"_ts";
73 title <<
"PullGM_Y_" <<
i+1 <<
"-" << j+1 <<
"_ts";
76 title <<
"PullGM_Z_" <<
i+1 <<
"-" << j+1 <<
"_ts";
80 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_tr";
83 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_tr";
86 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_tr";
90 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_rs";
93 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_rs";
96 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_rs";
99 if ( ((
i==2||
i==4)&&(j==0||j==1)) || (
i==3||
i==5) ){
102 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_ts_mono";
105 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_ts_mono";
108 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_ts_mono";
112 title <<
"PullGM_X_" <<
i+1 <<
"-" << j+1 <<
"_ts_mono";
115 title <<
"PullGM_Y_" <<
i+1 <<
"-" << j+1 <<
"_ts_mono";
118 title <<
"PullGM_Z_" <<
i+1 <<
"-" << j+1 <<
"_ts_mono";
122 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_tr_mono";
125 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_tr_mono";
128 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_tr_mono";
132 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_rs_mono";
135 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_rs_mono";
138 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_rs_mono";
143 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_ts_stereo";
146 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_ts_stereo";
149 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_ts_stereo";
153 title <<
"PullGM_X_" <<
i+1 <<
"-" << j+1 <<
"_ts_stereo";
156 title <<
"PullGM_Y_" <<
i+1 <<
"-" << j+1 <<
"_ts_stereo";
159 title <<
"PullGM_Z_" <<
i+1 <<
"-" << j+1 <<
"_ts_stereo";
163 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_tr_stereo";
166 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_tr_stereo";
169 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_tr_stereo";
173 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_rs_stereo";
176 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_rs_stereo";
179 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_rs_stereo";
184 hChi2_vs_Process =
new TH2F(
"Chi2_vs_Process",
"Chi2_vs_Process",1000,0,100,17,-0.5,16.5);
185 hChi2_vs_clsize =
new TH2F(
"Chi2_vs_clsize",
"Chi2_vs_clsize",1000,0,100,17,-0.5,16.5);
196 LogTrace(
"TestSmoothHits") <<
"new event" << std::endl;
205 LogTrace(
"TestSmoothHits") <<
"new candidate" << std::endl;
218 if (theTSOS.globalMomentum().eta()>
maxeta || theTSOS.globalMomentum().eta()<
mineta)
continue;
224 i!=recHitVec.second;
i++){
229 std::vector<Trajectory> fitted =
fit->fit(theTC->
seed(),
hits, theTSOS);
231 std::vector<Trajectory>
result;
232 for(std::vector<Trajectory>::iterator it = fitted.begin(); it != fitted.end(); it++) {
234 result.insert(result.end(), smoothed.begin(), smoothed.end());
236 if (result.empty())
continue;
237 std::vector<TrajectoryMeasurement> vtm = result[0].measurements();
239 TSOS lastState = theTSOS;
240 for (std::vector<TrajectoryMeasurement>::iterator tm=vtm.begin(); tm!=vtm.end();tm++){
243 if ((rhit)->isValid()==0&&rhit->det()!=
nullptr)
continue;
244 LogTrace(
"TestSmoothHits") <<
"new hit" ;
246 int subdetId = rhit->det()->geographicalId().subdetId();
247 DetId id = rhit->
det()->geographicalId();
248 int layerId = tTopo->
layer(
id);
249 LogTrace(
"TestSmoothHits") <<
"subdetId=" << subdetId <<
" layerId=" << layerId ;
251 double delta = 99999;
254 std::vector<PSimHit> assSimHits = hitAssociator.
associateHit(*(rhit->hit()));
255 if (assSimHits.empty())
continue;
257 for(std::vector<PSimHit>::const_iterator
m=assSimHits.begin();
m<assSimHits.end();
m++){
258 if ((
m->localPosition()-rhitLPv).
mag()<
delta) {
260 delta = (
m->localPosition()-rhitLPv).
mag();
264 TSOS currentState = combiner(tm->backwardPredictedState(), tm->forwardPredictedState());
268 double chi2increment = tm->estimate();
269 LogTrace(
"TestSmoothHits") <<
"tm->estimate()=" << tm->estimate();
271 title <<
"Chi2Increment_" << subdetId <<
"-" << layerId;
275 if (dynamic_cast<const SiPixelRecHit*>(rhit->hit()))
277 if (dynamic_cast<const SiStripRecHit2D*>(rhit->hit()))
281 const Surface * surf = &( (rhit)->det()->surface() );
284 if (dynamic_cast<const SiStripMatchedRecHit2D*>(rhit->hit())) {
285 double rechitmatchedx = rhit->localPosition().
x();
286 double rechitmatchedy = rhit->localPosition().y();
287 double mindist = 999999;
289 std::pair<LocalPoint,LocalVector> closestPair;
291 const BoundPlane& plane = (rhit)->det()->surface();
292 for(std::vector<PSimHit>::const_iterator
m=assSimHits.begin();
m<assSimHits.end();
m++) {
294 std::pair<LocalPoint,LocalVector> hitPair =
projectHit((*
m),stripDet,plane);
295 distx = fabs(rechitmatchedx - hitPair.first.x());
296 disty = fabs(rechitmatchedy - hitPair.first.y());
297 double dist = distx*distx+disty*disty;
298 if(
sqrt(dist)<mindist){
300 closestPair = hitPair;
303 shitLPos = closestPair.first;
304 shitLMom = closestPair.second;
358 GlobalError rhitGPEr = (rhit)->globalPositionError();
360 double pullGPX_rs = (rhitGPos.
x()-shitGPos.
x())/
sqrt(rhitGPEr.
cxx());
361 double pullGPY_rs = (rhitGPos.
y()-shitGPos.
y())/
sqrt(rhitGPEr.
cyy());
362 double pullGPZ_rs = (rhitGPos.
z()-shitGPos.
z())/
sqrt(rhitGPEr.
czz());
367 LogTrace(
"TestSmoothHits") <<
"rs" << std::endl;
370 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_rs";
373 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_rs";
376 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_rs";
379 double pullGPX_tr = (tsosGPos.
x()-rhitGPos.
x())/
sqrt(tsosGPEr.
cxx()+rhitGPEr.
cxx());
380 double pullGPY_tr = (tsosGPos.
y()-rhitGPos.
y())/
sqrt(tsosGPEr.
cyy()+rhitGPEr.
cyy());
381 double pullGPZ_tr = (tsosGPos.
z()-rhitGPos.
z())/
sqrt(tsosGPEr.
czz()+rhitGPEr.
czz());
386 LogTrace(
"TestSmoothHits") <<
"tr" << std::endl;
389 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_tr";
392 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_tr";
395 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_tr";
398 double pullGPX_ts = (tsosGPos.
x()-shitGPos.
x())/
sqrt(tsosGPEr.
cxx());
399 double pullGPY_ts = (tsosGPos.
y()-shitGPos.
y())/
sqrt(tsosGPEr.
cyy());
400 double pullGPZ_ts = (tsosGPos.
z()-shitGPos.
z())/
sqrt(tsosGPEr.
czz());
405 LogTrace(
"TestSmoothHits") <<
"ts1" << std::endl;
408 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_ts";
411 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_ts";
414 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_ts";
417 double pullGMX_ts = (tsosGMom.
x()-shitGMom.
x())/
sqrt(tsosGMEr.
cxx());
418 double pullGMY_ts = (tsosGMom.
y()-shitGMom.
y())/
sqrt(tsosGMEr.
cyy());
419 double pullGMZ_ts = (tsosGMom.
z()-shitGMom.
z())/
sqrt(tsosGMEr.
czz());
424 LogTrace(
"TestSmoothHits") <<
"ts2" << std::endl;
427 title <<
"PullGM_X_" << subdetId <<
"-" << layerId <<
"_ts";
430 title <<
"PullGM_Y_" << subdetId <<
"-" << layerId <<
"_ts";
433 title <<
"PullGM_Z_" << subdetId <<
"-" << layerId <<
"_ts";
436 if (dynamic_cast<const SiStripMatchedRecHit2D*>((rhit)->
hit())) {
438 LogTrace(
"TestSmoothHits") <<
"MONO HIT" << std::endl;
442 if (tMonoHit==
nullptr)
continue;
443 vector<PSimHit> assMonoSimHits = hitAssociator.
associateHit(*tMonoHit->hit());
444 if (assMonoSimHits.empty())
continue;
445 const PSimHit sMonoHit = *(assSimHits.begin());
446 const Surface * monoSurf = &( tMonoHit->det()->surface() );
447 if (monoSurf==
nullptr)
continue;
449 if (monoState.
isValid()==0)
continue;
461 GlobalPoint monoRhitGPos = tMonoHit->globalPosition();
462 GlobalError monoRhitGPEr = tMonoHit->globalPositionError();
464 double pullGPX_rs_mono = (monoRhitGPos.
x()-monoShitGPos.
x())/
sqrt(monoRhitGPEr.
cxx());
465 double pullGPY_rs_mono = (monoRhitGPos.
y()-monoShitGPos.
y())/
sqrt(monoRhitGPEr.
cyy());
466 double pullGPZ_rs_mono = (monoRhitGPos.
z()-monoShitGPos.
z())/
sqrt(monoRhitGPEr.
czz());
472 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_rs_mono";
475 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_rs_mono";
478 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_rs_mono";
481 double pullGPX_tr_mono = (monoTsosGPos.
x()-monoRhitGPos.
x())/
sqrt(monoTsosGPEr.
cxx()+monoRhitGPEr.
cxx());
482 double pullGPY_tr_mono = (monoTsosGPos.
y()-monoRhitGPos.
y())/
sqrt(monoTsosGPEr.
cyy()+monoRhitGPEr.
cyy());
483 double pullGPZ_tr_mono = (monoTsosGPos.
z()-monoRhitGPos.
z())/
sqrt(monoTsosGPEr.
czz()+monoRhitGPEr.
czz());
489 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_tr_mono";
492 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_tr_mono";
495 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_tr_mono";
498 double pullGPX_ts_mono = (monoTsosGPos.
x()-monoShitGPos.
x())/
sqrt(monoTsosGPEr.
cxx());
499 double pullGPY_ts_mono = (monoTsosGPos.
y()-monoShitGPos.
y())/
sqrt(monoTsosGPEr.
cyy());
500 double pullGPZ_ts_mono = (monoTsosGPos.
z()-monoShitGPos.
z())/
sqrt(monoTsosGPEr.
czz());
506 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_ts_mono";
509 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_ts_mono";
512 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_ts_mono";
515 double pullGMX_ts_mono = (monoTsosGMom.
x()-monoShitGMom.
x())/
sqrt(monoTsosGMEr.
cxx());
516 double pullGMY_ts_mono = (monoTsosGMom.
y()-monoShitGMom.
y())/
sqrt(monoTsosGMEr.
cyy());
517 double pullGMZ_ts_mono = (monoTsosGMom.
z()-monoShitGMom.
z())/
sqrt(monoTsosGMEr.
czz());
523 title <<
"PullGM_X_" << subdetId <<
"-" << layerId <<
"_ts_mono";
526 title <<
"PullGM_Y_" << subdetId <<
"-" << layerId <<
"_ts_mono";
529 title <<
"PullGM_Z_" << subdetId <<
"-" << layerId <<
"_ts_mono";
533 LogTrace(
"TestSmoothHits") <<
"STEREO HIT" << std::endl;
537 if (tStereoHit==
nullptr)
continue;
538 vector<PSimHit> assStereoSimHits = hitAssociator.
associateHit(*tStereoHit->hit());
539 if (assStereoSimHits.empty())
continue;
540 const PSimHit sStereoHit = *(assSimHits.begin());
541 const Surface * stereoSurf = &( tStereoHit->det()->surface() );
542 if (stereoSurf==
nullptr)
continue;
544 if (stereoState.
isValid()==0)
continue;
556 GlobalPoint stereoRhitGPos = tStereoHit->globalPosition();
557 GlobalError stereoRhitGPEr = tStereoHit->globalPositionError();
559 double pullGPX_rs_stereo = (stereoRhitGPos.
x()-stereoShitGPos.
x())/
sqrt(stereoRhitGPEr.
cxx());
560 double pullGPY_rs_stereo = (stereoRhitGPos.
y()-stereoShitGPos.
y())/
sqrt(stereoRhitGPEr.
cyy());
561 double pullGPZ_rs_stereo = (stereoRhitGPos.
z()-stereoShitGPos.
z())/
sqrt(stereoRhitGPEr.
czz());
567 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_rs_stereo";
570 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_rs_stereo";
573 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_rs_stereo";
576 double pullGPX_tr_stereo = (stereoTsosGPos.
x()-stereoRhitGPos.
x())/
sqrt(stereoTsosGPEr.
cxx()+stereoRhitGPEr.
cxx());
577 double pullGPY_tr_stereo = (stereoTsosGPos.
y()-stereoRhitGPos.
y())/
sqrt(stereoTsosGPEr.
cyy()+stereoRhitGPEr.
cyy());
578 double pullGPZ_tr_stereo = (stereoTsosGPos.
z()-stereoRhitGPos.
z())/
sqrt(stereoTsosGPEr.
czz()+stereoRhitGPEr.
czz());
584 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_tr_stereo";
587 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_tr_stereo";
590 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_tr_stereo";
593 double pullGPX_ts_stereo = (stereoTsosGPos.
x()-stereoShitGPos.
x())/
sqrt(stereoTsosGPEr.
cxx());
594 double pullGPY_ts_stereo = (stereoTsosGPos.
y()-stereoShitGPos.
y())/
sqrt(stereoTsosGPEr.
cyy());
595 double pullGPZ_ts_stereo = (stereoTsosGPos.
z()-stereoShitGPos.
z())/
sqrt(stereoTsosGPEr.
czz());
601 title <<
"PullGP_X_" << subdetId <<
"-" << layerId <<
"_ts_stereo";
604 title <<
"PullGP_Y_" << subdetId <<
"-" << layerId <<
"_ts_stereo";
607 title <<
"PullGP_Z_" << subdetId <<
"-" << layerId <<
"_ts_stereo";
610 double pullGMX_ts_stereo = (stereoTsosGMom.
x()-stereoShitGMom.
x())/
sqrt(stereoTsosGMEr.
cxx());
611 double pullGMY_ts_stereo = (stereoTsosGMom.
y()-stereoShitGMom.
y())/
sqrt(stereoTsosGMEr.
cyy());
612 double pullGMZ_ts_stereo = (stereoTsosGMom.
z()-stereoShitGMom.
z())/
sqrt(stereoTsosGMEr.
czz());
618 title <<
"PullGM_X_" << subdetId <<
"-" << layerId <<
"_ts_stereo";
621 title <<
"PullGM_Y_" << subdetId <<
"-" << layerId <<
"_ts_stereo";
624 title <<
"PullGM_Z_" << subdetId <<
"-" << layerId <<
"_ts_stereo";
631 LogTrace(
"TestSmoothHits") <<
"end of event" << std::endl;
636 TDirectory * chi2i =
file->mkdir(
"Chi2_Increment");
638 TDirectory * gp_ts =
file->mkdir(
"GP_TSOS-SimHit");
639 TDirectory * gm_ts =
file->mkdir(
"GM_TSOS-SimHit");
640 TDirectory * gp_tr =
file->mkdir(
"GP_TSOS-RecHit");
641 TDirectory * gp_rs =
file->mkdir(
"GP_RecHit-SimHit");
643 TDirectory * gp_tsx = gp_ts->mkdir(
"X");
644 TDirectory * gp_tsy = gp_ts->mkdir(
"Y");
645 TDirectory * gp_tsz = gp_ts->mkdir(
"Z");
646 TDirectory * gm_tsx = gm_ts->mkdir(
"X");
647 TDirectory * gm_tsy = gm_ts->mkdir(
"Y");
648 TDirectory * gm_tsz = gm_ts->mkdir(
"Z");
649 TDirectory * gp_trx = gp_tr->mkdir(
"X");
650 TDirectory * gp_try = gp_tr->mkdir(
"Y");
651 TDirectory * gp_trz = gp_tr->mkdir(
"Z");
652 TDirectory * gp_rsx = gp_rs->mkdir(
"X");
653 TDirectory * gp_rsy = gp_rs->mkdir(
"Y");
654 TDirectory * gp_rsz = gp_rs->mkdir(
"Z");
656 TDirectory * gp_tsx_mono = gp_ts->mkdir(
"MONOX");
657 TDirectory * gp_tsy_mono = gp_ts->mkdir(
"MONOY");
658 TDirectory * gp_tsz_mono = gp_ts->mkdir(
"MONOZ");
659 TDirectory * gm_tsx_mono = gm_ts->mkdir(
"MONOX");
660 TDirectory * gm_tsy_mono = gm_ts->mkdir(
"MONOY");
661 TDirectory * gm_tsz_mono = gm_ts->mkdir(
"MONOZ");
662 TDirectory * gp_trx_mono = gp_tr->mkdir(
"MONOX");
663 TDirectory * gp_try_mono = gp_tr->mkdir(
"MONOY");
664 TDirectory * gp_trz_mono = gp_tr->mkdir(
"MONOZ");
665 TDirectory * gp_rsx_mono = gp_rs->mkdir(
"MONOX");
666 TDirectory * gp_rsy_mono = gp_rs->mkdir(
"MONOY");
667 TDirectory * gp_rsz_mono = gp_rs->mkdir(
"MONOZ");
669 TDirectory * gp_tsx_stereo = gp_ts->mkdir(
"STEREOX");
670 TDirectory * gp_tsy_stereo = gp_ts->mkdir(
"STEREOY");
671 TDirectory * gp_tsz_stereo = gp_ts->mkdir(
"STEREOZ");
672 TDirectory * gm_tsx_stereo = gm_ts->mkdir(
"STEREOX");
673 TDirectory * gm_tsy_stereo = gm_ts->mkdir(
"STEREOY");
674 TDirectory * gm_tsz_stereo = gm_ts->mkdir(
"STEREOZ");
675 TDirectory * gp_trx_stereo = gp_tr->mkdir(
"STEREOX");
676 TDirectory * gp_try_stereo = gp_tr->mkdir(
"STEREOY");
677 TDirectory * gp_trz_stereo = gp_tr->mkdir(
"STEREOZ");
678 TDirectory * gp_rsx_stereo = gp_rs->mkdir(
"STEREOX");
679 TDirectory * gp_rsy_stereo = gp_rs->mkdir(
"STEREOY");
680 TDirectory * gp_rsz_stereo = gp_rs->mkdir(
"STEREOZ");
686 for (
int i=0;
i!=6;
i++)
687 for (
int j=0; j!=9; j++){
688 if (
i==0 && j>2)
break;
689 if (
i==1 && j>1)
break;
690 if (
i==2 && j>3)
break;
691 if (
i==3 && j>2)
break;
692 if (
i==4 && j>5)
break;
693 if (
i==5 && j>8)
break;
696 title <<
"Chi2Increment_" <<
i+1 <<
"-" << j+1;
702 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_ts";
706 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_ts";
710 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_ts";
716 title <<
"PullGM_X_" <<
i+1 <<
"-" << j+1 <<
"_ts";
720 title <<
"PullGM_Y_" <<
i+1 <<
"-" << j+1 <<
"_ts";
724 title <<
"PullGM_Z_" <<
i+1 <<
"-" << j+1 <<
"_ts";
730 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_tr";
734 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_tr";
738 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_tr";
744 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_rs";
748 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_rs";
752 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_rs";
755 if ( ((
i==2||
i==4)&&(j==0||j==1)) || (
i==3||
i==5) ){
760 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_ts_mono";
764 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_ts_mono";
768 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_ts_mono";
774 title <<
"PullGM_X_" <<
i+1 <<
"-" << j+1 <<
"_ts_mono";
778 title <<
"PullGM_Y_" <<
i+1 <<
"-" << j+1 <<
"_ts_mono";
782 title <<
"PullGM_Z_" <<
i+1 <<
"-" << j+1 <<
"_ts_mono";
788 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_tr_mono";
792 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_tr_mono";
796 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_tr_mono";
802 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_rs_mono";
806 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_rs_mono";
810 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_rs_mono";
817 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_ts_stereo";
821 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_ts_stereo";
825 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_ts_stereo";
831 title <<
"PullGM_X_" <<
i+1 <<
"-" << j+1 <<
"_ts_stereo";
835 title <<
"PullGM_Y_" <<
i+1 <<
"-" << j+1 <<
"_ts_stereo";
839 title <<
"PullGM_Z_" <<
i+1 <<
"-" << j+1 <<
"_ts_stereo";
845 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_tr_stereo";
849 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_tr_stereo";
853 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_tr_stereo";
859 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_rs_stereo";
863 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_rs_stereo";
867 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_rs_stereo";
877 std::pair<LocalPoint,LocalVector>
882 LocalPoint localHit = plane.toLocal(globalpos);
889 float scale = -localHit.
z() / dir.
z();
899 return std::pair<LocalPoint,LocalVector>( projectedPos, localStripDir);
std::map< std::string, TH1F * > hPullGP_Z_rs_stereo
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
T getParameter(std::string const &) const
std::map< std::string, TH1F * > hPullGP_X_ts_mono
std::map< std::string, TH1F * > hPullGM_Y_ts_mono
edm::Handle< TrackCandidateCollection > theTCCollection
TestSmoothHits(const edm::ParameterSet &)
LocalVector momentumAtEntry() const
The momentum of the track that produced the hit, at entry point.
std::map< std::string, TH1F * > hChi2Increment
std::map< std::string, TH1F * > hPullGP_X_rs_mono
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
std::string propagatorName
Sin< T >::type sin(const T &t)
TrajectorySeed const & seed() const
std::map< std::string, TH1F * > hPullGM_Z_ts_stereo
const CartesianTrajectoryError cartesianError() const
virtual float strip(const LocalPoint &) const =0
std::vector< ConstRecHitPointer > RecHitContainer
GlobalPoint globalPosition() const
std::map< std::string, TH1F * > hPullGP_Y_rs
std::map< std::string, TH1F * > hPullGM_X_ts_mono
std::map< std::string, TH1F * > hPullGP_Z_tr
std::map< std::string, TH1F * > hPullGP_X_ts
std::pair< const_iterator, const_iterator > range
std::map< std::string, TH1F * > hPullGP_Y_tr_stereo
std::map< std::string, TH1F * > hPullGP_Z_ts
virtual const StripTopology & specificTopology() const
Returns a reference to the strip proxy topology.
const Plane & surface() const
The nominal surface of the GeomDet.
std::map< std::string, TH1F * > hPullGP_X_rs_stereo
edm::ESHandle< TrajectorySmoother > smooth
virtual TrajectoryContainer trajectories(const Trajectory &traj) const
std::map< std::string, TH1F * > hPullGP_Y_rs_mono
std::map< std::string, TH1F * > hPullGM_Y_ts_stereo
PTrajectoryStateOnDet const & trajectoryStateOnDet() const
void beginRun(edm::Run const &run, const edm::EventSetup &) override
std::map< std::string, TH1F * > hPullGP_Z_rs_mono
edm::ESHandle< MagneticField > theMF
TrackerHitAssociator::Config trackerHitAssociatorConfig_
#define DEFINE_FWK_MODULE(type)
std::map< std::string, TH1F * > hPullGP_Y_ts_mono
std::map< std::string, TH1F * > hPullGM_Y_ts
ROOT::Math::SMatrix< double, 3, 3, ROOT::Math::MatRepSym< double, 3 > > AlgebraicSymMatrix33
std::map< std::string, TH1F * > hPullGP_Z_tr_mono
Local3DPoint localPosition() const
virtual float stripAngle(float strip) const =0
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
std::map< std::string, TH1F * > hPullGM_Z_ts
Cos< T >::type cos(const T &t)
std::map< std::string, TH1F * > hPullGP_X_tr
TransientTrackingRecHit::ConstRecHitPointer CTTRHp
unsigned int detId() const
std::map< std::string, TH1F * > hPullGP_Y_rs_stereo
edm::ESHandle< TransientTrackingRecHitBuilder > theBuilder
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::map< std::string, TH1F * > hPullGP_Y_tr_mono
virtual RecHitPointer build(const TrackingRecHit *p) const =0
build a tracking rechit from an existing rechit
const AlgebraicSymMatrix66 & matrix() const
std::map< std::string, TH1F * > hPullGP_X_ts_stereo
std::map< std::string, TH1F * > hPullGP_Y_ts
LocalVector localDirection() const
Obsolete. Same as momentumAtEntry().unit(), for backward compatibility.
std::map< std::string, TH1F * > hPullGP_Z_ts_stereo
std::map< std::string, TH1F * > hPullGM_Z_ts_mono
~TestSmoothHits() override
const GlobalError position() const
Position error submatrix.
std::map< std::string, TH1F * > hPullGP_X_rs
TrajectoryStateOnSurface TSOS
edm::ESHandle< Propagator > thePropagator
std::map< std::string, TH1F * > hPullGP_X_tr_stereo
void analyze(const edm::Event &, const edm::EventSetup &) override
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
unsigned short processType() const
unsigned int layer(const DetId &id) const
edm::ESHandle< TrackerGeometry > theG
std::map< std::string, TH1F * > hPullGP_X_tr_mono
std::pair< LocalPoint, LocalVector > projectHit(const PSimHit &, const StripGeomDetUnit *, const BoundPlane &)
GlobalVector globalMomentum() const
const TrackerGeomDet * idToDet(DetId) const override
std::map< std::string, TH1F * > hPullGP_Z_tr_stereo
std::map< std::string, TH1F * > hPullGP_Z_rs
std::vector< PSimHit > associateHit(const TrackingRecHit &thit) const
std::map< std::string, TH1F * > hPullGP_Y_ts_stereo
std::map< std::string, TH1F * > hPullGP_Z_ts_mono
std::map< std::string, TH1F * > hPullGM_X_ts
std::map< std::string, TH1F * > hPullGM_X_ts_stereo
TransientTrackingRecHit::ConstRecHitPointer CTTRHp
T const * product() const
std::map< std::string, TH1F * > hPullGP_Y_tr
constexpr Detector det() const
get the detector field from this detid