Versions Compared

Key

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

...

This document attempts to explain the names and functions found in the myana code and give some working examples on how to set up your analysis software. And we try to explain the structure of the data file and how to extract useful information from your data.

...

You can analyze the xtc data with the offline tools, myana and pyana. You also have the option of using the hdf5 data format (hierarchical data format 5), but you will have to wait for the xtc -> hdf5 translation which may take some time. Also, there is no support for hdf5 analysis by the offline group quite yet. hdf5 will be the standard offline LCLS data format, and tools are under development for analyzing these files. More about data formats and where to find the experiment data files, see Analysis Workbook. Data Formats

Anchor
pdsdata
pdsdata

The pdsdata library

...

  • Most of the functions return 0 if it was a successful function call, any other number means it failed.unmigrated-wiki-markup
  • Values are obtained through the arguments of the function calls. E.g. declare an array in your myana.cc, and {{getXXXValue(&myarray\[0\])}} will fill the array for you.
  • Enums: Several of the functions can be used to extract data from several of the detectors. Which detector is specified by an enum (named constant integers). You are encouraged to use the names instead of the numbers, in case the underlying order changes in a new version of the program.

...

  • Front end enclosure Gas detector
    Code Block
     int getFeeGasDet  (double* shotEnergy);
     
    Wiki Markup
    Gives you the shot energy to the array {{shotEnergy\[4\]}}.
  • Electron beam monitor
    Code Block
     int getEBeam(double& charge, double& energy, double& posx, double& posy,
                  double& angx, double& angy);
     int getEBeam(double& charge, double& energy, double& posx, double& posy,
                  double& angx, double& angy, double& pkcurr);
      
    Gives electron beam values for each of these doubles. The measured charge of the beam (in nC),
    the measured energy of the beam (in MeV), the 2D position of the beam (in mm) away from the origin
    (nominal beam position), and 2D angular position (in mrad) off the assumed direction. and the
    pkcurr = current? in (Amps)

...