Skip to content

Experimental data analysis

Dmytro Kresan edited this page Aug 11, 2014 · 14 revisions

General information

Data sources

Unpacking and analysis of experimental data is to be performed using an instance of the FairRunOnline class. Multiple types of data source (remote-event-server, local LMD file, etc.) are supported by inheritance from the base abstract class FairSource. Such derived classes (FairRemoteSource, FairLmdSource) have to override the member function ReadEvent(), where the actual parsing takes place, as well as Init() and Close().

Unpackers

A detector-specific unpacker (derived from the abstract class FairUnpack), parses and converts data subset from a source into ROOT objects. Unpacker has to override member functions Init(), DoUnpack(), Reset() and Register(). MBS parameters of the detector (type, sub-type, crate, etc.) have to be set in the standard constructor of the FairUnpack. Using values of these parameters, the framework takes care of matching between sub-events and unpackers.

Output

Data will be stored in ROOT tree with branches defined in Register() of an unpacker class. Using the task mechanism of FairRoot, one can perform further data analysis on the fly or in a separate macro.

Clone this wiki locally