11 #include <TDirectory.h>
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++) {
233 std::vector<Trajectory> smoothed =
smooth->trajectories(*it);
234 result.insert(result.end(), smoothed.begin(), smoothed.end());
236 if (result.size()==0)
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()!=0)
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;
255 if (assSimHits.size()==0)
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());
265 TSOS updatedState = tm->updatedState();
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()))
278 hChi2_vs_clsize->Fill( chi2increment, ((
const SiStripRecHit2D*)(rhit->hit()))->cluster()->amplitudes().size() );
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;
439 auto m =
dynamic_cast<const SiStripMatchedRecHit2D*
>((rhit)->
hit())->monoHit();
442 if (tMonoHit==0)
continue;
444 if (assMonoSimHits.size()==0)
continue;
445 const PSimHit sMonoHit = *(assSimHits.begin());
446 const Surface * monoSurf = &( tMonoHit->det()->surface() );
447 if (monoSurf==0)
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;
534 auto s =
dynamic_cast<const SiStripMatchedRecHit2D*
>((rhit)->
hit())->stereoHit();
537 if (tStereoHit==0)
continue;
539 if (assStereoSimHits.size()==0)
continue;
540 const PSimHit sStereoHit = *(assSimHits.begin());
541 const Surface * stereoSurf = &( tStereoHit->det()->surface() );
542 if (stereoSurf==0)
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";
627 lastState = updatedState;
632 LogTrace(
"TestSmoothHits") <<
"end of event" << std::endl;
637 TDirectory * chi2i =
file->mkdir(
"Chi2_Increment");
639 TDirectory * gp_ts =
file->mkdir(
"GP_TSOS-SimHit");
640 TDirectory * gm_ts =
file->mkdir(
"GM_TSOS-SimHit");
641 TDirectory * gp_tr =
file->mkdir(
"GP_TSOS-RecHit");
642 TDirectory * gp_rs =
file->mkdir(
"GP_RecHit-SimHit");
644 TDirectory * gp_tsx = gp_ts->mkdir(
"X");
645 TDirectory * gp_tsy = gp_ts->mkdir(
"Y");
646 TDirectory * gp_tsz = gp_ts->mkdir(
"Z");
647 TDirectory * gm_tsx = gm_ts->mkdir(
"X");
648 TDirectory * gm_tsy = gm_ts->mkdir(
"Y");
649 TDirectory * gm_tsz = gm_ts->mkdir(
"Z");
650 TDirectory * gp_trx = gp_tr->mkdir(
"X");
651 TDirectory * gp_try = gp_tr->mkdir(
"Y");
652 TDirectory * gp_trz = gp_tr->mkdir(
"Z");
653 TDirectory * gp_rsx = gp_rs->mkdir(
"X");
654 TDirectory * gp_rsy = gp_rs->mkdir(
"Y");
655 TDirectory * gp_rsz = gp_rs->mkdir(
"Z");
657 TDirectory * gp_tsx_mono = gp_ts->mkdir(
"MONOX");
658 TDirectory * gp_tsy_mono = gp_ts->mkdir(
"MONOY");
659 TDirectory * gp_tsz_mono = gp_ts->mkdir(
"MONOZ");
660 TDirectory * gm_tsx_mono = gm_ts->mkdir(
"MONOX");
661 TDirectory * gm_tsy_mono = gm_ts->mkdir(
"MONOY");
662 TDirectory * gm_tsz_mono = gm_ts->mkdir(
"MONOZ");
663 TDirectory * gp_trx_mono = gp_tr->mkdir(
"MONOX");
664 TDirectory * gp_try_mono = gp_tr->mkdir(
"MONOY");
665 TDirectory * gp_trz_mono = gp_tr->mkdir(
"MONOZ");
666 TDirectory * gp_rsx_mono = gp_rs->mkdir(
"MONOX");
667 TDirectory * gp_rsy_mono = gp_rs->mkdir(
"MONOY");
668 TDirectory * gp_rsz_mono = gp_rs->mkdir(
"MONOZ");
670 TDirectory * gp_tsx_stereo = gp_ts->mkdir(
"STEREOX");
671 TDirectory * gp_tsy_stereo = gp_ts->mkdir(
"STEREOY");
672 TDirectory * gp_tsz_stereo = gp_ts->mkdir(
"STEREOZ");
673 TDirectory * gm_tsx_stereo = gm_ts->mkdir(
"STEREOX");
674 TDirectory * gm_tsy_stereo = gm_ts->mkdir(
"STEREOY");
675 TDirectory * gm_tsz_stereo = gm_ts->mkdir(
"STEREOZ");
676 TDirectory * gp_trx_stereo = gp_tr->mkdir(
"STEREOX");
677 TDirectory * gp_try_stereo = gp_tr->mkdir(
"STEREOY");
678 TDirectory * gp_trz_stereo = gp_tr->mkdir(
"STEREOZ");
679 TDirectory * gp_rsx_stereo = gp_rs->mkdir(
"STEREOX");
680 TDirectory * gp_rsy_stereo = gp_rs->mkdir(
"STEREOY");
681 TDirectory * gp_rsz_stereo = gp_rs->mkdir(
"STEREOZ");
687 for (
int i=0;
i!=6;
i++)
688 for (
int j=0;
j!=9;
j++){
689 if (
i==0 &&
j>2)
break;
690 if (
i==1 &&
j>1)
break;
691 if (
i==2 &&
j>3)
break;
692 if (
i==3 &&
j>2)
break;
693 if (
i==4 &&
j>5)
break;
694 if (
i==5 &&
j>8)
break;
697 title <<
"Chi2Increment_" <<
i+1 <<
"-" <<
j+1;
703 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_ts";
707 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_ts";
711 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_ts";
717 title <<
"PullGM_X_" <<
i+1 <<
"-" << j+1 <<
"_ts";
721 title <<
"PullGM_Y_" <<
i+1 <<
"-" << j+1 <<
"_ts";
725 title <<
"PullGM_Z_" <<
i+1 <<
"-" << j+1 <<
"_ts";
731 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_tr";
735 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_tr";
739 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_tr";
745 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_rs";
749 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_rs";
753 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_rs";
756 if ( ((
i==2||
i==4)&&(j==0||j==1)) || (
i==3||
i==5) ){
761 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_ts_mono";
765 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_ts_mono";
769 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_ts_mono";
775 title <<
"PullGM_X_" <<
i+1 <<
"-" << j+1 <<
"_ts_mono";
779 title <<
"PullGM_Y_" <<
i+1 <<
"-" << j+1 <<
"_ts_mono";
783 title <<
"PullGM_Z_" <<
i+1 <<
"-" << j+1 <<
"_ts_mono";
789 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_tr_mono";
793 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_tr_mono";
797 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_tr_mono";
803 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_rs_mono";
807 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_rs_mono";
811 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_rs_mono";
818 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_ts_stereo";
822 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_ts_stereo";
826 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_ts_stereo";
832 title <<
"PullGM_X_" <<
i+1 <<
"-" << j+1 <<
"_ts_stereo";
836 title <<
"PullGM_Y_" <<
i+1 <<
"-" << j+1 <<
"_ts_stereo";
840 title <<
"PullGM_Z_" <<
i+1 <<
"-" << j+1 <<
"_ts_stereo";
846 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_tr_stereo";
850 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_tr_stereo";
854 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_tr_stereo";
860 title <<
"PullGP_X_" <<
i+1 <<
"-" << j+1 <<
"_rs_stereo";
864 title <<
"PullGP_Y_" <<
i+1 <<
"-" << j+1 <<
"_rs_stereo";
868 title <<
"PullGP_Z_" <<
i+1 <<
"-" << j+1 <<
"_rs_stereo";
878 std::pair<LocalPoint,LocalVector>
883 LocalPoint localHit = plane.toLocal(globalpos);
890 float scale = -localHit.
z() / dir.
z();
900 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
TrackerHitAssociator * hitAssociator
std::map< std::string, TH1F * > hPullGP_X_ts_mono
std::map< std::string, TH1F * > hPullGM_Y_ts_mono
edm::Handle< TrackCandidateCollection > theTCCollection
virtual float stripAngle(float strip) const =0
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())
#define DEFINE_FWK_MODULE(type)
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
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
std::map< std::string, TH1F * > hPullGP_Y_rs_mono
virtual float strip(const LocalPoint &) const =0
std::map< std::string, TH1F * > hPullGM_Y_ts_stereo
edm::ESHandle< TrajectoryFitter > fit
PTrajectoryStateOnDet const & trajectoryStateOnDet() const
std::map< std::string, TH1F * > hPullGP_Z_rs_mono
edm::ESHandle< MagneticField > theMF
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
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
const edm::ParameterSet conf_
TransientTrackingRecHit::ConstRecHitPointer CTTRHp
unsigned int detId() const
std::map< std::string, TH1F * > hPullGP_Y_rs_stereo
virtual void analyze(const edm::Event &, const edm::EventSetup &)
edm::ESHandle< TransientTrackingRecHitBuilder > theBuilder
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual void beginRun(edm::Run &run, const edm::EventSetup &)
std::map< std::string, TH1F * > hPullGP_Y_tr_mono
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
TrajectoryStateOnSurface TSOS
std::map< std::string, TH1F * > hPullGM_Z_ts_mono
const GlobalError position() const
Position error submatrix.
std::map< std::string, TH1F * > hPullGP_X_rs
edm::ESHandle< Propagator > thePropagator
T const * product() const
std::map< std::string, TH1F * > hPullGP_X_tr_stereo
unsigned short processType() 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
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
Detector det() const
get the detector field from this detid
std::map< std::string, TH1F * > hPullGM_X_ts
std::map< std::string, TH1F * > hPullGM_X_ts_stereo
std::map< std::string, TH1F * > hPullGP_Y_tr