# Reconstruction of Raw Data

The class AliReconstruction manages the reconstruction starting from raw data input. It creates a raw reader for the given raw data input format and calls the Reconstruct method of the  AliReconstructor objects of the selected detectors with the raw reader as argument. In the Reconstruct method the detector specific local reconstruction is performed for all events. For the determination of the primary vertex and the tracking the same methods are used as for Monte Carlo data. For raw data input the FillESD method of the reconstructors is called for each event with the raw reader as additional argument.

For the time being the galice.root file and the run loader as they were created by the simulation are used for the reconstruction of raw data as well. In the future the galice.root file will probably be created by the AliReconstruction class taking the information from a run database.

The local reconstruction of raw data has to be implemented in a method of the reconstructor of the corresponding detector with the following signature:

void Reconstruct(AliRunLoader* runLoader, AliRawReader* rawReader) const;

The signature differs from the one for the local reconstruction of Monte Carlo data by the additional argument for the raw reader. The loop over the events is done inside the method and can be implemented in the following way:

Int_t iEvent = 0;
}

void FillESD(AliRunLoader* runLoader, AliRawReader* rawReader; AliESD* esd) const;