SND@LHC Software
Loading...
Searching...
No Matches
MufluxDigiReco Namespace Reference

Classes

class  MufluxDigiReco
 

Functions

 StripX (x)
 
 StripY (y)
 

Variables

 stop = ROOT.TVector3()
 
 start = ROOT.TVector3()
 

Function Documentation

◆ StripX()

MufluxDigiReco.StripX (   x)

Definition at line 23 of file MufluxDigiReco.py.

23def StripX(x):
24 # defining constants for rpc properties
25 STRIP_XWIDTH = 0.8625 # internal STRIP V, WIDTH, in cm
26 EXT_STRIP_XWIDTH_L = 0.9625 # nominal (R&L) and Left measured external STRIP V, WIDTH, in cm (beam along z, out from the V plane)
27 EXT_STRIP_XWIDTH_R = 0.86 # measured Right external STRIP V, WIDTH,in cm (beam along z, out from the V plane)
28 V_STRIP_OFF = 0.200
29 NR_VER_STRIPS = 184
30 total_width = (NR_VER_STRIPS - 2) * STRIP_XWIDTH + EXT_STRIP_XWIDTH_L + EXT_STRIP_XWIDTH_R + (NR_VER_STRIPS - 1) * V_STRIP_OFF
31 x_start = (total_width - EXT_STRIP_XWIDTH_R + EXT_STRIP_XWIDTH_L) / 2
32 # calculating strip as an integer
33 strip_x = (x_start - EXT_STRIP_XWIDTH_L + 1.5 * STRIP_XWIDTH + V_STRIP_OFF - x)//(STRIP_XWIDTH + V_STRIP_OFF)
34 if not (0 < strip_x <= NR_VER_STRIPS):
35 print("WARNING: X strip outside range!")
36 strip_x = 0
37 return int(strip_x)
38
39

◆ StripY()

MufluxDigiReco.StripY (   y)

Definition at line 40 of file MufluxDigiReco.py.

40def StripY(y):
41 STRIP_YWIDTH = 0.8625 # internal STRIP H, WIDTH, in cm
42 EXT_STRIP_YWIDTH = 0.3 # measured external STRIP H, WIDTH, in cm
43 H_STRIP_OFF = 0.1983
44 NR_HORI_STRIPS = 116
45 total_height = (NR_HORI_STRIPS - 2) * STRIP_YWIDTH + 2 * EXT_STRIP_YWIDTH + (NR_HORI_STRIPS - 1) * H_STRIP_OFF
46 y_start = total_height / 2
47 strip_y = (y_start - EXT_STRIP_YWIDTH + 1.5 * STRIP_YWIDTH + H_STRIP_OFF - y)//(STRIP_YWIDTH + H_STRIP_OFF)
48 if not (0 < strip_y <= NR_HORI_STRIPS):
49 print("WARNING: Y strip outside range!")
50 strip_y = 0
51 return int(strip_y)
52

Variable Documentation

◆ start

MufluxDigiReco.start = ROOT.TVector3()

Definition at line 19 of file MufluxDigiReco.py.

◆ stop

MufluxDigiReco.stop = ROOT.TVector3()

Definition at line 18 of file MufluxDigiReco.py.