Changes
Page history
Create Analyzers
authored
Sep 13, 2023
by
Erik Asbjørn Mikkelsen Jensen
Hide whitespace changes
Inline
Side-by-side
Analyzers.md
0 → 100644
View page @
b8de2c81
An analyzer is attached to a provider which will notify it when there is data.
An analyzer is divided into several steps
+
__setup__: Called before starting to analyze a new chain of data.
Use perform Setup specific initialization.
+
__analyze__: Called whenever the provider has a new event.
Analyze data.
+
__terminate__: Called when the provider has no more events.
Use this for anything that requires you to have all data ie. fitting.
+
__saveToRootFile__: Called if the user wants the results saved to a Root file.
Use to write your histograms to file.
Often one should subclass AbstractSortedAnalyzer it will
1.
Save SortedSetupOutput as
`output`
during
`setup`
.
2.
Provide no-op implementation of
`terminate`
.
3.
Save all
`TObject`
for which
`registerOutput`
have been called.
#### Example implementation
An example implementation of analysers can be found in the project
[
AnalyzerExample
](
https://gitlab.au.dk/ausa/AnalyzerExample
)
.
\ No newline at end of file