File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
tracking/src/main/java/org/hps/recon/tracking Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 44import java .util .List ;
55import java .util .HashMap ;
66import java .util .Map ;
7+ import java .util .Optional ;
78import java .io .BufferedReader ;
89import java .io .IOException ;
910import java .io .InputStream ;
@@ -297,8 +298,8 @@ public void process(EventHeader event) {
297298 Long evtPhaseL =(event .getTimeStamp () % 24 )/4 ;
298299 Integer evtPhase =evtPhaseL .intValue ();
299300 Pair <String ,Integer > evtPair =new Pair (simpleName ,evtPhase );
300- Double calConstant = sensorPhaseCalibConstants .get (evtPair );
301- // System.out.println("shifting t0 by "+calConstant);
301+ Double calConstant = Optional . ofNullable ( sensorPhaseCalibConstants .get (evtPair )). orElse ( 0.0 );
302+ //System.out.println("shifting t0 by "+calConstant);
302303 fit .setT0 (fit .getT0 ()-calConstant );
303304 }
304305
You can’t perform that action at this time.
0 commit comments