*-*-*-*-*Generate skeleton analysis class for this FrameChannel*-*-*-*-*-*
*-* ======================================================
The following files are produced: classname.h and classname.C
if classname is NULL, classname will be "MyFrameAnalysis".
When the option "selector" is specified, the function generates the
selector class described in VFrameChannel::MakeSelector.
The generated code in classname.h includes the following:
- Identification of the original frame channel and input conditions
- Definition of analysis class (data and functions)
- the following class functions:
-constructor (connecting by default the frame channel)
-Init(VFrameChannel *fc) to initialize a new VFrameChannel
The generated code in classname.C includes only the main
analysis function Loop.
To use this function:
- connect your frame channel (eg: fc = new VFrameChannel("infoDB.root");)
- fc->MakeClass("MyClass");
Where MyClass.h, MyClass.C the name of the files created by this function.
In a vega session, you can do:
Root > .L MyClass.C
Root > MyClass t
Root > t.Loop(); // Loop on the frames in the frame channel
The code in filename is loaded (interpreted or compiled , see below)
filename must contain a valid class implementation derived from VSelector.
where VSelector has the following member functions:
voidVSelector::Begin(): called everytime a loop on the frame channel starts,
a convenient place to create your histograms.
Bool_tVSelector::ProcessCut(): called at the beginning of each frame processing to return a flag,
true if the entry must be analyzed.
voidVSelector::ProcessFrame(): called in the frame loop for all frames accepted
by ProcessCut.
voidVSelector::ProcessVect(): called in the loop for specific vectors requested
voidVSelector::Terminate(): called at the end of a loop on the frame channel,
a convenient place to draw/fit your histograms.
if filename is of the form file.C, the file will be interpreted.
if filename is of the form file.C++, the file file.C will be compiled
and dynamically loaded. The corresponding binary file and shared library
will be deleted at the end of the function.
if filename is of the form file.C+, the file file.C will be compiled
and dynamically loaded. At next call, if file.C is older than file.o
and file.so, the file.C is not compiled, only file.so is loaded.
Process the data provided by the frame channel associated to this player
using the provided selector
The VSelector class has the following member functions
voidVSelector::Begin(): called everytime a loop on the frame channel starts,
a convenient place to create your histograms.
Bool_tVSelector::ProcessCut(): called at the beginning of each frame processing to return a flag,
true if the entry must be analyzed.
voidVSelector::ProcessFrame(): called in the frame loop for all frames accepted
by ProcessCut.
voidVSelector::ProcessVect(): called in the loop for specific vectors requested
voidVSelector::Terminate(): called at the end of a loop on the frame channel,
a convenient place to draw/fit your histograms.
If a condition is set via the cond string (string not empty), the processed
frames or vectors will be only the ones fulfilling the condition. In this case,
the step (via Set/GetProcessStep) information is not used
For more information about conditions, see VConditionSet
- ROOT page - VEGA page - Class index - Top of the page This page has been automatically generated. If you have any comments or suggestions
about the page layout send a mail to
, or
contact
with any questions or problems regarding ROOT or VEGA.