Commit a6a56c3d authored by Zolnierczuk, Piotr's avatar Zolnierczuk, Piotr
Browse files

examples instrument switch macros update

parent be1242be
Loading
Loading
Loading
Loading
+32 −0
Original line number Diff line number Diff line
macro

! mk data with "instrument direct"


! ==== set paths
! datapath ./examples
! savepath ./out

! ==== set binning
bins pix nbins 8
bins tof custom 2 13 26 39

! ==== set histogramming
set A  1e-10
set ns 1e-9

histo tau  nbins 20 min 0.002*ns max 200.0*ns log
histo q    nbins 20 min 0.000/A  max 0.5/A

c ==== read data
read s5848.echo s5849.echo s5850.echo s5851.echo s5852.echo s5853.echo as resolution
read s5854.echo s5855.echo s5857.echo s5858.echo s5859.echo s5860.echo s5861.echo as sample

c === process
match all
fit   res
fit   sam flag offset
collect to mk_inst_direct.dat


+3 −0
Original line number Diff line number Diff line
@@ -9,3 +9,6 @@ set i.det.size_y 0.300
set i.det.center_x     0.000
set i.det.center_y     0.000
set i.src.sample     -41.643

! 0.005/Angstrom is the default for J-NSE
set r.postcoll_qcat    0.0050000E+10
+2 −0
Original line number Diff line number Diff line
@@ -9,3 +9,5 @@ set i.det.size_y 0.300
set i.det.center_x     0
set i.det.center_y     0
set i.src.sample     -17.348
!
set r.postcoll_qcat    0.0
+33 −0
Original line number Diff line number Diff line
macro

! mk data with "instrument switch"

macro_inst_sns-nse

! ==== set paths
! datapath ./examples
! savepath ./out

! ==== set binning
bins pix nbins 8
bins tof custom 2 13 26 39

! ==== set histogramming
set A  1e-10
set ns 1e-9

histo tau  nbins 20 min 0.002*ns max 200.0*ns log
histo q    nbins 20 min 0.000/A  max 0.5/A

c ==== read data
read s5848.echo s5849.echo s5850.echo s5851.echo s5852.echo s5853.echo as resolution
read s5854.echo s5855.echo s5857.echo s5858.echo s5859.echo s5860.echo s5861.echo as sample

c === process
match all
fit   res
fit   sam flag offset
collect to mk_inst_switch.dat