Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 21, 2024
1 parent 0b301d1 commit 5b9b2b3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions fuse/plugins/detector_physics/electron_drift.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,15 +377,19 @@ def get_s2_drift_time_params(self, xy_int, z_int):
)

# if pp wire s2 width simulation (substract ):
drift_time_mean = drift_time_below_gate + drift_time_above_gate - (3.8 / drift_velocity_below_gate)
drift_time_mean = (
drift_time_below_gate + drift_time_above_gate - (3.8 / drift_velocity_below_gate)
)
drift_time_spread_38mm = (
2
* diffusion_constant_longitudinal
* (3.8 / drift_velocity_below_gate)
/ drift_velocity_below_gate**2
)
drift_time_spread = np.sqrt(
drift_time_spread_below_gate_squared + drift_time_spread_above_gate_squared - drift_time_spread_38mm
drift_time_spread_below_gate_squared
+ drift_time_spread_above_gate_squared
- drift_time_spread_38mm
)

return drift_time_mean, drift_time_spread
Expand Down

0 comments on commit 5b9b2b3

Please sign in to comment.