Belle II Software development
AlignmentGeneratorConfig Class Reference

basf2 (Belle II Analysis Software Framework) # Author: The Belle II Collaboration # # See git log for contributors and copyright holders. More...

Public Member Functions

def __init__ (self)
 
def get_name (self)
 
def get_data (self)
 
def align_sensors (self, vxdid, param_id, distribution, value)
 
def gen_u_gaus (self, vxdid, value)
 
def gen_v_gaus (self, vxdid, value)
 
def gen_w_gaus (self, vxdid, value)
 
def gen_alpha_gaus (self, vxdid, value)
 
def gen_beta_gaus (self, vxdid, value)
 
def gen_gamma_gaus (self, vxdid, value)
 
def gen_u_uniform (self, vxdid, value)
 
def gen_v_uniform (self, vxdid, value)
 
def gen_w_uniform (self, vxdid, value)
 
def gen_alpha_uniform (self, vxdid, value)
 
def gen_beta_uniform (self, vxdid, value)
 
def gen_gamma_uniform (self, vxdid, value)
 
def set_u (self, vxdid, value)
 
def set_v (self, vxdid, value)
 
def set_w (self, vxdid, value)
 
def set_alpha (self, vxdid, value)
 
def set_beta (self, vxdid, value)
 
def set_gamma (self, vxdid, value)
 
def set_all (self, vxdid, value)
 

Public Attributes

 alignment
 alignment data = list of VxdID mask, param id, generation distribution and value
 

Detailed Description

basf2 (Belle II Analysis Software Framework) # Author: The Belle II Collaboration # # See git log for contributors and copyright holders.

# This file is licensed under LGPL-3.0, see LICENSE.md. #

 Class to generate data for AlignmentGenerator module
Can be used to train VXD misalignment by storing wrong alignment
and trying to reach nominal values (zeros)

Definition at line 12 of file utils.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
 Constructor 

Definition at line 18 of file utils.py.

18 def __init__(self):
19 """ Constructor """
20
21 self.alignment = []
22

Member Function Documentation

◆ align_sensors()

def align_sensors (   self,
  vxdid,
  param_id,
  distribution,
  value 
)
 align sensors by VxdID pattern 

Definition at line 31 of file utils.py.

31 def align_sensors(self, vxdid, param_id, distribution, value):
32 """ align sensors by VxdID pattern """
33 self.alignment.append(str(vxdid + ',' + str(param_id) + ',' + distribution + ',' + str(value)))
34

◆ gen_alpha_gaus()

def gen_alpha_gaus (   self,
  vxdid,
  value 
)
 generate alpha rotation for VxdID mask with gausian distribution of given width 

Definition at line 47 of file utils.py.

47 def gen_alpha_gaus(self, vxdid, value):
48 """ generate alpha rotation for VxdID mask with gausian distribution of given width """
49 self.align_sensors(vxdid, 4, 'gaus', value)
50

◆ gen_alpha_uniform()

def gen_alpha_uniform (   self,
  vxdid,
  value 
)
 generate alpha rotation for VxdID mask with uniform distribution of given width 

Definition at line 71 of file utils.py.

71 def gen_alpha_uniform(self, vxdid, value):
72 """ generate alpha rotation for VxdID mask with uniform distribution of given width """
73 self.align_sensors(vxdid, 4, 'gaus', value)
74

◆ gen_beta_gaus()

def gen_beta_gaus (   self,
  vxdid,
  value 
)
 generate beta rotation for VxdID mask with gausian distribution of given width 

Definition at line 51 of file utils.py.

51 def gen_beta_gaus(self, vxdid, value):
52 """ generate beta rotation for VxdID mask with gausian distribution of given width """
53 self.align_sensors(vxdid, 5, 'gaus', value)
54

◆ gen_beta_uniform()

def gen_beta_uniform (   self,
  vxdid,
  value 
)
 generate beta rotation for VxdID mask with uniform distribution of given width 

Definition at line 75 of file utils.py.

75 def gen_beta_uniform(self, vxdid, value):
76 """ generate beta rotation for VxdID mask with uniform distribution of given width """
77 self.align_sensors(vxdid, 5, 'gaus', value)
78

◆ gen_gamma_gaus()

def gen_gamma_gaus (   self,
  vxdid,
  value 
)
 generate gamma rotation coordinate shift for VxdID mask with gausian distribution of given width 

Definition at line 55 of file utils.py.

55 def gen_gamma_gaus(self, vxdid, value):
56 """ generate gamma rotation coordinate shift for VxdID mask with gausian distribution of given width """
57 self.align_sensors(vxdid, 6, 'gaus', value)
58

◆ gen_gamma_uniform()

def gen_gamma_uniform (   self,
  vxdid,
  value 
)
 generate gamma rotation coordinate shift for VxdID mask with uniform distribution of given width 

Definition at line 79 of file utils.py.

79 def gen_gamma_uniform(self, vxdid, value):
80 """ generate gamma rotation coordinate shift for VxdID mask with uniform distribution of given width """
81 self.align_sensors(vxdid, 6, 'gaus', value)
82

◆ gen_u_gaus()

def gen_u_gaus (   self,
  vxdid,
  value 
)
 generate u coordinate shift for VxdID mask with gausian distribution of given width 

Definition at line 35 of file utils.py.

35 def gen_u_gaus(self, vxdid, value):
36 """ generate u coordinate shift for VxdID mask with gausian distribution of given width """
37 self.align_sensors(vxdid, 1, 'gaus', value)
38

◆ gen_u_uniform()

def gen_u_uniform (   self,
  vxdid,
  value 
)
 generate u coordinate shift for VxdID mask with uniform distribution of given width 

Definition at line 59 of file utils.py.

59 def gen_u_uniform(self, vxdid, value):
60 """ generate u coordinate shift for VxdID mask with uniform distribution of given width """
61 self.align_sensors(vxdid, 1, 'gaus', value)
62

◆ gen_v_gaus()

def gen_v_gaus (   self,
  vxdid,
  value 
)
 generate v coordinate shift for VxdID mask with gausian distribution of given width 

Definition at line 39 of file utils.py.

39 def gen_v_gaus(self, vxdid, value):
40 """ generate v coordinate shift for VxdID mask with gausian distribution of given width """
41 self.align_sensors(vxdid, 2, 'gaus', value)
42

◆ gen_v_uniform()

def gen_v_uniform (   self,
  vxdid,
  value 
)
 generate v coordinate shift for VxdID mask with uniform distribution of given width 

Definition at line 63 of file utils.py.

63 def gen_v_uniform(self, vxdid, value):
64 """ generate v coordinate shift for VxdID mask with uniform distribution of given width """
65 self.align_sensors(vxdid, 2, 'gaus', value)
66

◆ gen_w_gaus()

def gen_w_gaus (   self,
  vxdid,
  value 
)
 generate w coordinate shift for VxdID mask with gausian distribution of given width 

Definition at line 43 of file utils.py.

43 def gen_w_gaus(self, vxdid, value):
44 """ generate w coordinate shift for VxdID mask with gausian distribution of given width """
45 self.align_sensors(vxdid, 3, 'gaus', value)
46

◆ gen_w_uniform()

def gen_w_uniform (   self,
  vxdid,
  value 
)
 generate w coordinate shift for VxdID mask with uniform distribution of given width 

Definition at line 67 of file utils.py.

67 def gen_w_uniform(self, vxdid, value):
68 """ generate w coordinate shift for VxdID mask with uniform distribution of given width """
69 self.align_sensors(vxdid, 3, 'gaus', value)
70

◆ get_data()

def get_data (   self)
 get alignment data 

Definition at line 27 of file utils.py.

27 def get_data(self):
28 """ get alignment data """
29 return self.alignment
30

◆ get_name()

def get_name (   self)
 get object name 

Definition at line 23 of file utils.py.

23 def get_name(self):
24 """ get object name """
25 return self.name
26

◆ set_all()

def set_all (   self,
  vxdid,
  value 
)
 Set all shifts/rotation to given value (usually 0.) for VxdID mask 

Definition at line 107 of file utils.py.

107 def set_all(self, vxdid, value):
108 """ Set all shifts/rotation to given value (usually 0.) for VxdID mask """
109 self.set_u(vxdid, value)
110 self.set_v(vxdid, value)
111 self.set_w(vxdid, value)
112 self.set_alpha(vxdid, value)
113 self.set_beta(vxdid, value)
114 self.set_gamma(vxdid, value)

◆ set_alpha()

def set_alpha (   self,
  vxdid,
  value 
)
 set alpha angle for VxdID mask 

Definition at line 95 of file utils.py.

95 def set_alpha(self, vxdid, value):
96 """ set alpha angle for VxdID mask """
97 self.align_sensors(vxdid, 4, 'fix', value)
98

◆ set_beta()

def set_beta (   self,
  vxdid,
  value 
)
 set beta angle for VxdID mask  

Definition at line 99 of file utils.py.

99 def set_beta(self, vxdid, value):
100 """ set beta angle for VxdID mask """
101 self.align_sensors(vxdid, 5, 'fix', value)
102

◆ set_gamma()

def set_gamma (   self,
  vxdid,
  value 
)
 set gamma angle for VxdID mask 

Definition at line 103 of file utils.py.

103 def set_gamma(self, vxdid, value):
104 """ set gamma angle for VxdID mask """
105 self.align_sensors(vxdid, 6, 'fix', value)
106

◆ set_u()

def set_u (   self,
  vxdid,
  value 
)
 set u coordinate shift for VxdID 

Definition at line 83 of file utils.py.

83 def set_u(self, vxdid, value):
84 """ set u coordinate shift for VxdID """
85 self.align_sensors(vxdid, 1, 'fix', value)
86

◆ set_v()

def set_v (   self,
  vxdid,
  value 
)
 set v coordinate shift for VxdID 

Definition at line 87 of file utils.py.

87 def set_v(self, vxdid, value):
88 """ set v coordinate shift for VxdID """
89 self.align_sensors(vxdid, 2, 'fix', value)
90

◆ set_w()

def set_w (   self,
  vxdid,
  value 
)
 set w coordinate shift for VxdID 

Definition at line 91 of file utils.py.

91 def set_w(self, vxdid, value):
92 """ set w coordinate shift for VxdID """
93 self.align_sensors(vxdid, 3, 'fix', value)
94

Member Data Documentation

◆ alignment

alignment

alignment data = list of VxdID mask, param id, generation distribution and value

Definition at line 21 of file utils.py.


The documentation for this class was generated from the following file: