# Basic ideas of follows convention of Hall A Tech Notes JLAB-TN-02-012: # http://hallaweb.jlab.org/publications/Technotes/files/2002/02-012.pdf ######################################################### # Common Section for THaOptics ######################################################### # source of beam information. # this item could be overwriten by # 1. parameter in the constructor function # 2. any call of function THaOptics::SetBeamName BeamDetectorName = B # OLD INPUTS: # shift of target coordinate system origin, in the hall coordinate system # rotation of the whole spectrometer will be read out from db_run.dat # target_x = 0.0 # target_y = 0.0 # target_z = 0.0 # the shift of Transport Coordinate System Origin in Target Coordinate System trans_x = -0.37 trans_y = 0.0 trans_z = 2.4 # the rotation for a vector expressed in Transport Coordinate System # to be translate into Target Coordinate System # # The rotation is described by a series of angles ( unit is degree ) as below. # # The rotation take the order of x -> y-> z trans_rot_x = -0.0 trans_rot_y = -25.0 trans_rot_z = 0.0 #0st order corection ThShift = -0.04945 PhShift = 0.0 PShift = 0.0 PathLenShift= 0.0 ######################################################### # Additional Section for THaOpticsAGen ######################################################### # description of this part could be found at # http://hallaweb.jlab.org/experiment/E02-013/offline/BBdatabase.txt effbendplanetheta = 10.0 effbendz = 1.85 effbendx = 0.0 effbendy = 0.0 ciDef = 0.283 ciDefXbend = 0.126 cThetaTarg = 0.0 cY = 0.10 cPhi = 0.0 ca = 0.0 cV = 1.0 cVX = 0.012 cVXp = 0.0 cVY = 0.05 cVYp = 0.0 ######################################################### # Additional Section for THaOpticsHRS ######################################################### # format is described in # http://hallaweb.jlab.org/publications/Technotes/files/2002/02-012.pdf [matrix] t 1 0 0 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 y 1 0 0 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 p 1 0 0 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 D 0 0 0 -0.08749 -0.67627 1.91361 -3.11562 -6.33754 11.5908 D 1 0 0 2.80163 -8.35861 17.7113 17.3145 -56.5428 0.00000 D 2 0 0 11.6524 -46.0247 7.91907 119.282 0.00000 0.00000 D 3 0 0 44.3530 -77.9449 -99.1704 0.00000 0.00000 0.00000 D 4 0 0 79.0134 -4.96614 0.00000 0.00000 0.00000 0.00000 D 5 0 0 42.3238 0.00000 0.00000 0.00000 0.00000 0.00000 D 0 0 0 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 T 0 0 0 0.01628 0.52262 -0.05985 -0.05323 0.07144 T 0 0 1 0.00000 -0.24186 0.00000 0.00139 0.00000 T 0 0 2 -0.01478 0.03324 0.00000 0.00000 0.00000 T 0 0 3 0.00000 2.27640 0.00000 0.00000 0.00000 T 0 1 0 0.00000 0.08945 0.00000 0.00000 0.00000 T 0 1 1 0.00000 -0.08372 0.00000 0.00000 0.00000 T 0 1 2 0.00000 -4.22919 0.00000 0.00000 0.00000 T 0 2 0 0.00000 0.08359 0.00000 0.00000 0.00000 T 0 2 1 0.00000 1.83541 0.00000 0.00000 0.00000 T 1 0 0 -0.45961 -0.02880 0.09455 -0.08116 0.00000 T 1 0 1 0.28138 0.00000 0.11322 0.00000 0.00000 T 1 0 3 -3.08268 0.00000 0.00000 0.00000 0.00000 T 1 1 0 -0.08642 0.00000 0.00000 0.00000 0.00000 T 2 0 0 0.04289 0.00000 -0.02958 0.00000 0.00000 T 2 0 1 0.00000 -0.54018 0.00000 0.00000 0.00000 P 0 0 0 0.00873 0.00654 0.00433 -0.03137 -0.05554 P 0 0 1 1.00197 -0.22111 0.00000 0.00000 0.00000 P 0 0 2 -1.85838 -1.08076 0.00000 0.00000 0.00000 P 0 0 3 24.2962 2.50163 0.00000 0.00000 0.00000 P 0 1 0 -0.01622 0.10266 0.09110 -1.17133 0.00000 P 0 1 1 2.34751 1.09849 0.00000 0.00000 0.00000 P 0 1 2 -35.4271 0.00000 0.00000 0.00000 0.00000 P 0 1 3 -21.9948 0.00000 0.00000 0.00000 0.00000 P 0 2 0 -0.87079 0.00000 0.00000 0.00000 0.00000 P 0 2 1 22.0197 0.00000 0.00000 0.00000 0.00000 P 0 3 0 -5.43382 0.00000 0.00000 0.00000 0.00000 P 0 3 1 10.3034 0.00000 0.00000 0.00000 0.00000 P 1 0 0 0.00000 0.01358 0.04407 0.10015 0.00000 P 1 0 1 0.00000 0.00000 1.13845 0.00000 0.00000 P 1 0 3 4.33170 0.00000 0.00000 0.00000 0.00000 P 1 1 0 0.12449 -0.07625 1.29633 0.00000 0.00000 P 1 1 1 0.83016 -0.37522 0.00000 0.00000 0.00000 P 1 2 0 -0.73711 0.00000 0.00000 0.00000 0.00000 P 1 2 1 -5.73354 0.00000 0.00000 0.00000 0.00000 P 2 0 0 0.00000 0.00167 -0.02580 0.00000 0.00000 P 2 0 1 0.00000 -1.15315 0.00000 0.00000 0.00000 P 2 1 0 0.46776 -0.07927 0.00000 0.00000 0.00000 Y 0 0 0 0.02420 0.00000 Y 0 0 1 -2.77260 0.00000 Y 0 0 2 -1.33277 0.97479 Y 0 0 3 -15.1454 0.00000 Y 0 0 4 212.594 0.00000 Y 0 1 0 1.00077 -0.11737 Y 0 1 1 0.81629 -1.51468 Y 0 1 2 7.43661 0.00000 Y 0 1 3 -251.699 0.00000 Y 0 2 0 0.00000 0.35839 Y 0 2 2 107.362 0.00000 Y 0 3 1 -22.7024 0.00000 Y 1 0 0 0.00496 0.00000 Y 1 0 2 0.35765 0.00000 Y 1 1 0 0.18844 0.00000 Y 1 1 1 -0.27074 0.00000 ######################################################### # Additional Section for THaOpticsAnalytical ######################################################### # P=q*B*R=K*I*R, in which, # P is calculated momentum # q is charge of the incoming particle # B is the magnetic field # R is bending radius # K is an constant related to the magnetic # I is the current in coil # # there are two method of scaling bending radius to momentum: # 1. given current I and constant K # 2. given radius of central momentum # this class will try both of above method. # Priority of method 1 is higher # K<=0 will a push this class to use method 2 # setup the constant K here, as discussed above # units: GeV/A/m/c K=7.96996e-4 # The radius of curve for a particle with central momentum to move in the average magnetic field. # CurveRadiusOfCentralMomentum>0 in meter to be valid. # in case CurveRadiusOfCentralMomentum<=0, code will be automatically calculated one according to definition. CurveRadiusOfCentralMomentum= -1 # see http://www.jlab.org/~jinhuang/BigBiteDoc/THaOpticsAnalytical.html for reference # no need to change if old parameters working fine # model defined fitted parameters MagneticFieldFrontShift = 0.0 MagneticFieldTopCrossing = 1.773 MagneticFieldRearSlopeAngle = 20 #CurveRadiusOfCentralMomentum = 1.57 ######################################################### # Additional Section for THaOpticsNoFeild #########################################################