From 1ff5456cb04d3b2e4ced50dacc358310f9f31191 Mon Sep 17 00:00:00 2001 From: Yifan Chen Date: Tue, 21 May 2024 14:33:11 -0700 Subject: [PATCH] divide the recombination faction instead (more charge at the origin than at the readout) --- src/proto_nd_flow/reco/charge/calib_prompt_hits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proto_nd_flow/reco/charge/calib_prompt_hits.py b/src/proto_nd_flow/reco/charge/calib_prompt_hits.py index eead47e5..7ac260c8 100644 --- a/src/proto_nd_flow/reco/charge/calib_prompt_hits.py +++ b/src/proto_nd_flow/reco/charge/calib_prompt_hits.py @@ -220,7 +220,7 @@ def run(self, source_name, source_slice, cache): calib_hits_arr['io_channel'] = packets_arr['io_channel'] calib_hits_arr['Q'] = self.charge_from_dataword(packets_arr['dataword'],vref,vcm,ped) #!!! hardcoding W_ion, R=0.7, and not accounting for finite electron lifetime - calib_hits_arr['E'] = self.charge_from_dataword(packets_arr['dataword'],vref,vcm,ped) * 23.6e-3 * 0.7 + calib_hits_arr['E'] = self.charge_from_dataword(packets_arr['dataword'],vref,vcm,ped) * 23.6e-3 / 0.7 # create truth-level backtracking dataset if has_mc_truth: