Creating and filling a tuple in memory and projecting into a cloud.
Description
A tuple is booked, filled and it is projected to a cloud. The tuple contains itself a sub-tuple
C++ program
Click to retrieve the C++ source code of the example and the corresponding
textual output.
You can build the application typing :
scram b bin exa7
You can run the application typing (using bash shell):
eval `scram runtime -sh'
exa7
Program flow
- A tuple is created passing a description string containing name of variables and their types. The last variable, representing a particle 4-momentum, is a sub-tuple. Notice the syntax used to describe the tuple (and the sub-tuple).
- The tuple is filled with random data
- An evaluator expression and a filter (cut expression) are created to analyze the tuple
- The tuple is projected to a cloud using the evaluator and filter