File tree Expand file tree Collapse file tree
tracking/src/main/java/org/hps/recon/tracking/kalman Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -531,16 +531,14 @@ public Pair<Double, Double> getIsoAndT0(MeasurementSite ms){
531531 double isot0 =-999. ;
532532 SiModule sensor =ms .m ;
533533 List <Measurement > allHits =sensor .hits ;
534- if (allHits .size ()>2 && ms .hitID >-1 ){
534+ if (allHits .size ()>1 && ms .hitID >-1 ){
535535 Measurement hitOnTrack = allHits .get (ms .hitID );
536536 double hitTime =hitOnTrack .time ;
537- double [] hpsSensorPos =KalmanInterface .localKalToHps (sensor .p .X ());
538537 // keep track of sensor position & orientation
539538 // use the sign of the global plane position (vertical = z)
540539 // times the local-->global v-->z element
541540 // to determine if sensor is aligned (+ive v --> away from beam)
542541 // or anti-aligned (+ive v is towards beam)
543-
544542 double vertPos =sensor .p .X ().v [2 ];
545543 double l2gv2z =sensor .R .M [1 ][2 ];
546544 int awayFromBeam = (int )Math .signum (vertPos *l2gv2z );
You can’t perform that action at this time.
0 commit comments