Page History
...
This example fetches data for each event and writes it to a root histogram and stores the histogram in a root file. You may want to store your data differently, e.g. one histogram for each event, or everything in a root ntuple for further processing. Or you can write some other format that you'd like to work with (ascii file, ... ).
Panel |
---|
myana.cc - example code to make a simple averaging histogram myana_morefeatures.cc - example code that does a little more than myana.cc |
...
examples/myana_cspad.cc - |
...
example code to read out data from the CsPad XPP detector. |
Here's a brief description of the functions of myana.cc and main.cc:
myana.hh,cc:
Panel |
---|
This is the "user analysis module". This is where you fill in your own code to extract the information that you want from your experiment's xtc file. This module contain only the following functions:
|
main.hh,cc:
Panel |
---|
This is the main control of the analysis, but you should avoid editing this file. After the all utility functions (in main) and user functions (in myana) have been read,
which iterates through the xtc file, keeps track of all the datagrams in it, and makes sure to execute your |
...