Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Lst
lst-data-process-128
Commits
eef220d9
Commit
eef220d9
authored
May 18, 2016
by
legoc
Browse files
Continuing with doc
parent
0caedc6b
Pipeline
#327
skipped
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
eef220d9
...
...
@@ -2,7 +2,7 @@ Introduction
------------
The LstDataProcess library provides tools to read, write and process Lst binary files produced at the ILL.
Read
T
he
[
User's Guide
](
doc/UsersGuide.md
)
Read
t
he
[
User's Guide
](
doc/UsersGuide.md
)
Installation
------------
...
...
doc/UsersGuide.md
View file @
eef220d9
Introduction
------------
The User's Guide provides essential information on how to use the library.
\ No newline at end of file
The User's Guide provides essential information on how to use the library.
To access the library API you should include:
#include <lstdpp128/lstdpp.h>
Open a File
-----------
First of all, you have to open a file.
// Initialize a reader with a buffer of size 4096.
Reader reader(4096);
// Open the file.
bool success = reader.open(fileName);
// Exit in case of error.
if (!success) {
return EXIT_FAILURE;
}
// Print the list mode context.
cout << listModeContext << endl;
The
*listModeContext*
object contains the context of the loaded file. It represents the configuration of the electronic cards.
The model is the following:
*
The context contains a Crateboard
*
A Crateboard contains some Boards
*
A Board contains some Channels
The structures are:
*
Board
Members|Type
------------
eventType|uint16_t
crate|uint8_t
nbChannels|uint16_t
boardType|BoardType
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment