|
catm-python-lib
|
analysis utilities related to CAT-M More...
Go to the source code of this file.
Functions | |
| catmlib.util.catmviewer.find_nearest_index (array, value) | |
| find index of nearest point | |
| catmlib.util.catmviewer.calculate_track_dipole_magnet_analytical_solution (v0=np.array([1, 0, 0]), x0=np.array([0, 0, 0]), omega=1, t=0) | |
| analytical solution for equation of moyion in uniform magnetic field | |
| catmlib.util.catmviewer.calculate_unit_vector (v=np.array([-0.2, 0.01, 0.01])) | |
| calculate and return unit vector | |
| catmlib.util.catmviewer.calculate_extrapolated_position (position, direction, target_value, direction_to_extrapolate=2) | |
| calculate and return extrapolated_position | |
| catmlib.util.catmviewer.plot_3d_trajectory (x=[], y=[], z=[], u=[], v=[], w=[], x_lim=None, y_lim=None, z_lim=None, bpad=None, rpad=None, spad=None, bid=None, rid=None, sid=None, anaflag=-1, showflag=True, savepath=None, user_colors=['#B844A0','#36797A','#36797A','#B844A0']) | |
| plot 3 disimensional trajectories | |
| catmlib.util.catmviewer.plot_2d_trajectory (x=[], y=[], z=[], u=[], v=[], w=[], x_lim=None, y_lim=None, z_lim=None, bpad=None, rpad=None, spad=None, bid=None, rid=None, sid=None, anaflag=-1, showflag=True, savepath=None, user_colors=['#B844A0','#36797A','#36797A','#B844A0']) | |
| plot 3 disimensional trajectories | |
| catmlib.util.catmviewer.plot_2d_categories (x_lim=None, y_lim=None, z_lim=None, bpad=None, rpad=None, spad=None, bid=None, rid=None, sid=None, blabel=None, rlabel=None, slabel=None, showflag=True, savepath=None, user_colors=[['#B844A0'],['#36797A'],["#5CA3EF"]], legendFlag=False, title_name="Map file checker (Cobo, AsAd, AGET, Channel), [-1] = all") | |
| plot categories with 2 disimension | |
| catmlib.util.catmviewer.check_catm_view () | |
| plot catm readpad using matplotlib | |
analysis utilities related to CAT-M
Definition in file catmviewer.py.
| catmlib.util.catmviewer.calculate_extrapolated_position | ( | position, | |
| direction, | |||
| target_value, | |||
| direction_to_extrapolate = 2 ) |
calculate and return extrapolated_position
| position | reference position |
| direction | refarence vector |
| target_value | extrapolated value |
| direction_to_extrapolate | extrapolated axis |
Definition at line 51 of file catmviewer.py.
| catmlib.util.catmviewer.calculate_track_dipole_magnet_analytical_solution | ( | v0 = np.array([1,0,0]), | |
| x0 = np.array([0,0,0]), | |||
| omega = 1, | |||
| t = 0 ) |
analytical solution for equation of moyion in uniform magnetic field
| v0 | initial vector [m] (numpy.array([x,y,z])) |
| x0 | initial position [m] (numpy.array([x,y,z])) |
| omega | cyclotron frequency (qB/m [C][T][m]^-1) |
| t | list of time, which you want to calculate the position |
Definition at line 27 of file catmviewer.py.
| catmlib.util.catmviewer.calculate_unit_vector | ( | v = np.array([-0.2, 0.01, 0.01]) | ) |
calculate and return unit vector
| v | vector (np.array([-x, y, z])) |
Definition at line 42 of file catmviewer.py.
| catmlib.util.catmviewer.check_catm_view | ( | ) |
plot catm readpad using matplotlib
Definition at line 568 of file catmviewer.py.
| catmlib.util.catmviewer.find_nearest_index | ( | array, | |
| value ) |
find index of nearest point
| array | reference array for sorting index |
| reference | value |
Definition at line 16 of file catmviewer.py.
| catmlib.util.catmviewer.plot_2d_categories | ( | x_lim = None, | |
| y_lim = None, | |||
| z_lim = None, | |||
| bpad = None, | |||
| rpad = None, | |||
| spad = None, | |||
| bid = None, | |||
| rid = None, | |||
| sid = None, | |||
| blabel = None, | |||
| rlabel = None, | |||
| slabel = None, | |||
| showflag = True, | |||
| savepath = None, | |||
| user_colors = [['#B844A0'],['#36797A'],["#5CA3EF"]], | |||
| legendFlag = False, | |||
| title_name = "Map file checker (Cobo, AsAd, AGET, Channel), [-1] = all" ) |
plot categories with 2 disimension
| x_lim | draw range for X |
| y_lim | draw range for Y |
| z_lim | draw range for Z |
| bpad | beam tpc pad info (TReadoutPadArray) |
| rpad | recoil tpc pad info (TReadoutPadArray) |
| spad | silicon pad info (TReadoutPadArray) |
| bid | beam tpc categories list ([ [1,2,...], [3,6...] ]) |
| rid | recoil tpc categories list ([ [1,2,...], [3,6...] ]) |
| sid | silicon hit categories list ([ [1,2,...], [3,6...] ]) |
| showflag | draw flag (default : True) |
| savepath | save path |
| user_colors | color set |
| title_name | plot title |
Definition at line 388 of file catmviewer.py.
| catmlib.util.catmviewer.plot_2d_trajectory | ( | x = [], | |
| y = [], | |||
| z = [], | |||
| u = [], | |||
| v = [], | |||
| w = [], | |||
| x_lim = None, | |||
| y_lim = None, | |||
| z_lim = None, | |||
| bpad = None, | |||
| rpad = None, | |||
| spad = None, | |||
| bid = None, | |||
| rid = None, | |||
| sid = None, | |||
| anaflag = -1, | |||
| showflag = True, | |||
| savepath = None, | |||
| user_colors = ['#B844A0','#36797A','#36797A','#B844A0'] ) |
plot 3 disimensional trajectories
| x | point data list : [[x1,x2,..x3],[x1,x2,..x3],[x1,x2,..x3]] |
| y | point data list : [[y1,y2,..y3],[y1,y2,..y3],[y1,y2,..y3]] |
| z | point data list : [[z1,z2,..z3],[z1,z2,..z3],[z1,z2,..z3]] |
| u | line data list : [[x1,x2,..x3],[x1,x2,..x3],[x1,x2,..x3]] |
| v | line data list : [[y1,y2,..y3],[y1,y2,..y3],[y1,y2,..y3]] |
| w | line data list : [[z1,z2,..z3],[z1,z2,..z3],[z1,z2,..z3]] |
| x_lim | draw range for X |
| y_lim | draw range for Y |
| z_lim | draw range for Z |
| bpad | beam tpc pad info (TReadoutPadArray) |
| rpad | recoil tpc pad info (TReadoutPadArray) |
| spad | silicon pad info (TReadoutPadArray) |
| bid | beam tpc hit id |
| rid | recoil tpc hit id |
| sid | silicon hit id |
| anaflag | analysis flag (-1:tpc, 1:si) |
| showflag | draw flag (default : True) |
| savepath | save path |
| user_colors | color set |
Definition at line 220 of file catmviewer.py.
| catmlib.util.catmviewer.plot_3d_trajectory | ( | x = [], | |
| y = [], | |||
| z = [], | |||
| u = [], | |||
| v = [], | |||
| w = [], | |||
| x_lim = None, | |||
| y_lim = None, | |||
| z_lim = None, | |||
| bpad = None, | |||
| rpad = None, | |||
| spad = None, | |||
| bid = None, | |||
| rid = None, | |||
| sid = None, | |||
| anaflag = -1, | |||
| showflag = True, | |||
| savepath = None, | |||
| user_colors = ['#B844A0','#36797A','#36797A','#B844A0'] ) |
plot 3 disimensional trajectories
| x | point data list : [[x1,x2,..x3],[x1,x2,..x3],[x1,x2,..x3]] |
| y | point data list : [[y1,y2,..y3],[y1,y2,..y3],[y1,y2,..y3]] |
| z | point data list : [[z1,z2,..z3],[z1,z2,..z3],[z1,z2,..z3]] |
| u | line data list : [[x1,x2,..x3],[x1,x2,..x3],[x1,x2,..x3]] |
| v | line data list : [[y1,y2,..y3],[y1,y2,..y3],[y1,y2,..y3]] |
| w | line data list : [[z1,z2,..z3],[z1,z2,..z3],[z1,z2,..z3]] |
| x_lim | draw range for X |
| y_lim | draw range for Y |
| z_lim | draw range for Z |
| bpad | beam tpc pad info (TReadoutPadArray) |
| rpad | recoil tpc pad info (TReadoutPadArray) |
| spad | silicon pad info (TReadoutPadArray) |
| bid | beam tpc hit id |
| rid | recoil tpc hit id |
| sid | silicon hit id |
| anaflag | analysis flag (-1:tpc, 1:si) |
| showflag | draw flag (default : True) |
| savepath | save path |
| user_colors | color set |
Definition at line 93 of file catmviewer.py.