Versions Compared

Key

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

...

  • jobName – analysis job name, arbitrary string
  • hmgr – histogram manager object
  • subproc – flag which should must be set to true if when running in pyana subprocesssub-process

Objects of this type are created by pyana itself and end users do not need to create new instances.

...

In case of single-process job this method is equivalent to a regular Python open() method. In case of multi-processing when this method is called from a subprocess sub-process then the file is created somewhere in a temporary location (with unique name). At the end of the job files from all subprocessed sub-processes are merged into one file with name filename and the temporary files are deleted.

...

This method updates environment contents with selected data from event object. This is equivalent to calling env.updateEpics() and env.updateConfig().

Parameters:

  • evt – event object of type event.Event

This method is not supposed to be called from user code, pyana takes care of all updates itself.

...

This method updates environment EPICS data from event object.

Parameters:

  • evt – event object of type event.Event

This method is not supposed to be called from user code, pyana takes care of all updates itself.

...

This method copies configuration objects from event object into environment.

Parameters:

  • evt – event object of type event.Event

This method is not supposed to be called from user code, pyana takes care of all updates itself.

...

Method used by pyana to extract the data produced by a single subprocess sub-process in multi-processing setup. Not to be used by end users.

...

Class EpicsStore

Construction

Usage: store = pyana.event.EpicsStore()

Creates EPICS store object.

Objects of this type are created by pyana itself and end users do not need to create new instances.

Method update()

Usage: store.update(evt)

This method updates environment EPICS data from event object.

Parameters:

  • evt – event object of type event.Event

This method is not supposed to be called from user code, pyana takes care of all updates itself.

Method value()

Usage epics = store.value(name)

Returns current value of the EPICS channel with the given name. The type of returned data is either pypdsdata.epics.EpicsPvCtrl or pypdsdata.epics.EpicsPvTime.

Parameters:

  • name – name of the EPICS channel

This is the primary method to access EPICS information in pyana jobs.