-
Notifications
You must be signed in to change notification settings - Fork 97
Experimental data analysis
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().
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 this parameters, the framework takes care of matching between sub-event and unpacker.
Data will be stored in ROOT tree with branches defined in Register() of an unpacker class. One can perform further analysis (on the fly or in a separate macro) using the task mechanism of FairRoot.