Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This script saves 3 text files

  • acq-amo01509-r0125.txt -- with configuration parameters:

    Code Block
    Acqiris::ConfigV1:
      nbrBanks=1 channelMask=69905 nbrChannels=5 nbrConvertersPerChannel=4
      horiz: sampInterval=2.5e-10 delayTime=0 nbrSegments=1 nbrSamples=10000
      vert(0): fullScale=0.1 slope=1.52588e-06 offset=0 coupling=3 bandwidth=0
      vert(1): fullScale=0.1 slope=1.52588e-06 offset=0 coupling=3 bandwidth=0
      vert(2): fullScale=0.1 slope=1.52588e-06 offset=0 coupling=3 bandwidth=0
      vert(3): fullScale=0.1 slope=1.52588e-06 offset=0 coupling=3 bandwidth=0
      vert(4): fullScale=0.1 slope=1.52588e-06 offset=0 coupling=3 bandwidth=0
    
  • acq-AmoETOF-wform-r0125-20091018-182512.194787218.txt – with waveforms for 5th event
  • acq-AmoETOF-wtime-r0125-20091018-182512.194787218.txt – with wave-times for 5th event

...

Code Block
bgColors#AAFFFF
# Command to run this script: 
# psana -c psana-amo01509-r0125-acqiris-average.cfg;
#
# Useful commands: 
# psana -n 5 -m EventKeys exp=amo01509:run=125:xtc > test-acqiris-file.txt;
# psana -n 5 -m psana_examples.DumpAcqiris exp=amo01509:run=125:xtc > test-acqiris-file.txt;    (C++ version)
# psana -n 1 -m psana_examples.dump_acqiris exp=amo01509:run=125:xtc > test-acqiris-file.txt;   (python version)

[psana]
#files = /reg/d/psdm/AMO/amo01509/xtc/e8-r0125-s00-c00.xtc /reg/d/psdm/AMO/amo01509/xtc/e8-r0125-s01-c00.xtc
files = exp=amo01509:run=125:xtc

modules = ImgAlgos.AcqirisArrProducer ImgAlgos.AcqirisAverage

skip-events = 0
events      = 1000


[ImgAlgos.AcqirisArrProducer]
source        = AmoETOF.0:Acqiris.0
key_in        = 
key_wform     = acqiris_wform
key_wtime     = acqiris_wtime
fname_prefix  = acq
print_bits    = 3


[ImgAlgos.AcqirisAverage]
source               = AmoETOF.0:Acqiris.0
key_in               = acqiris_wform
key_ave              = acqiris_average
fname_ave_prefix_ave_prefix     = acq
thresholds           = -0.005 -0.005 -0.005 -0.005 -0.005
is_positive_signal   = no
do_inverse_selection = yes
#skip_events          = 0
#proc_events          = 100
print_bits           = 255

Psana with this script runs over 1000 events apply threshold-based selection algorithm and produces files:

  • acq

...

  • -amo01509-r0125-config.txt -- with Acqiris configuration parameters:

    Code Block
    Acqiris::ConfigV1:
      nbrBanks=1 channelMask=69905 nbrChannels=5 nbrConvertersPerChannel=4
      horiz: sampInterval=2.5e-10 delayTime=0 nbrSegments=1 nbrSamples=10000
      vert(0): fullScale=0.1 slope=1.52588e-06 offset=0 coupling=3 bandwidth=0
      vert(1): fullScale=0.1 slope=1.52588e-06 offset=0 coupling=3 bandwidth=0
      vert(2): fullScale=0.1 slope=1.52588e-06 offset=0 coupling=3 bandwidth=0
      vert(3): fullScale=0.1 slope=1.52588e-06 offset=0 coupling=3 bandwidth=0
      vert(4): fullScale=0.1 slope=1.52588e-06 offset=0 coupling=3 bandwidth=0
    

Psana with this script runs over 1000 events apply threshold-based selection algorithm and produces files:

  • acq-amo01509-r0125-config.txt -- with Acqiris configuration parameters
  • acq-amo01509-r0125-ave-wfs.txt with averaged array of waveforms, which were below threshold (averaging for bae-line baseline level):

Anchor
AcqirisCalib
AcqirisCalib

...