Skip to content

Commit 824e133

Browse files
ftouchtebaltzell
authored andcommitted
use the same time2distance for simu and real data
We now invert the ccdb time2distance in simulation.
1 parent 9dbaffa commit 824e133

File tree

1 file changed

+0
-4
lines changed
  • reconstruction/alert/src/main/java/org/jlab/rec/ahdc/Hit

1 file changed

+0
-4
lines changed

reconstruction/alert/src/main/java/org/jlab/rec/ahdc/Hit/HitReader.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@ public final void fetch_AHDCHits(DataEvent event, AlertDCDetector detector) {
8080
// Hit selection : wfType and additional cuts
8181
if (((wfType <= 2) && (adc >= adc_min) && (adc <= adc_max) && (time >= t_min) && (time <= t_max) && (timeOverThreshold >= tot_min) && (timeOverThreshold <= tot_max) && (adcOffset >= ped_min) && (adcOffset <= ped_max)) || sim) {
8282
double doca = p0 + p1*Math.pow(time,1.0) + p2*Math.pow(time,2.0) + p3*Math.pow(time,3.0) + p4*Math.pow(time,4.0) + p5*Math.pow(time, 5.0);
83-
if (sim) {
84-
time += 5; // correction from mctime - systematic error of the decoding
85-
doca = -0.0497 - 0.00667*Math.pow(time,1.0) + 0.389*Math.pow(time,1.0/2) - 0.189*Math.pow(time,1.0/3);
86-
}
8783
if (time < 0) doca = 0;
8884
Hit h = new Hit(id, superlayer, layer, wire, doca, adc, time);
8985
h.setWirePosition(detector);

0 commit comments

Comments
 (0)