Versions Compared

Key

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

...

Indices for the events in all dimensions will be created and turned into one big flat index after which xarray binning is used. Finally, the data is reshaped into the expected form.

Returning event-by-event data (from smallData ONLY when using SmallDataAna.makeCubeData)

...

Code Block
ana.addToCube(<cubename>, targetVar, isIdxVar=True)

When variables are added to the cube is isIdxVars=True (default is False), in additional to the cube-dictionary, a second dictionary with list of values for each bin of the cube are returned. This only works for the SmallDataAna method, NOT the SmallDataAna_psana one. You can then treat the returned data further, e.g. by pic,ing one event for each bin out of the list and write out the data for those events. This is demonstrated in PickedEventsCube.pyIt is possible to do this.

Getting data from laser-off images closest in time for each cube slice

...