1 | LoadEventNexus(Filename='/SNS/VIS/2012_1_16B_SCI/1/1085/NeXus/VIS_1085_event.nxs',OutputWorkspace='ws',BankName='bank4') |
---|
2 | |
---|
3 | #Apply ModeratorTzero to the events |
---|
4 | ModeratorTzero(InputWorkspace='ws',OutputWorkspace='wsx') |
---|
5 | |
---|
6 | #Apply ModeratorTzero to the histograms |
---|
7 | Rebin(InputWorkspace='ws',Params=[0,4,16000],OutputWorkspace='hws',PreserveEvents=0) |
---|
8 | ModeratorTzero(InputWorkspace='hws',OutputWorkspace='hwsx') |
---|
9 | |
---|
10 | #compare original with transformed events and with transformed histograms |
---|
11 | SumSpectra(InputWorkspace='ws',OutputWorkspace='sum') |
---|
12 | SumSpectra(InputWorkspace='wsx',OutputWorkspace='sumx') |
---|
13 | SumSpectra(InputWorkspace='hwsx',OutputWorkspace='transformed_histograms') |
---|
14 | Rebin(InputWorkspace='sum',Params=[0,4,16000],OutputWorkspace='original') |
---|
15 | Rebin(InputWorkspace='sumx',Params=[0,4,16000],OutputWorkspace='transformed_events') |
---|
16 | plot((mtd['original'],mtd['transformed_events'],mtd['transformed_histograms']),0) |
---|