]> git.uio.no Git - u/mrichter/AliRoot.git/blame - START/AliSTARTLoader.cxx
Replacing array of objects by array of pointers
[u/mrichter/AliRoot.git] / START / AliSTARTLoader.cxx
CommitLineData
0b73602e 1//////////////////////////////////////////////////////////////////////////////
2// //
3// Loader for START digits and RecPoints inherit from AliBaseDataLoader //
4// STARTDigits is TObject consists time flight signal from each PMTtube, //
5// mean time right and left array (start signal) and time differnce //
6// (vertex z position) //
7// START RecPoints is TObject with mean time (start signal) //
8// and evrtex position (cm) //
9/////////////////////////////////////////////////////////////////////////////
e79d2564 10#include "AliSTARTLoader.h"
6fc133d2 11#include "AliConfig.h"
12#include "AliRunLoader.h"
e79d2564 13
14
15ClassImp(AliSTARTLoader)
16
17/*****************************************************************************/
6fc133d2 18void AliSTARTLoader::InitObjectLoaders()
e79d2564 19{
6fc133d2 20// use an object instead of a tree for digits and rec points
21
22 // D I G I T S
23 if (fDataLoaders->At(kDigits)) {
24 delete fDataLoaders->Remove(fDataLoaders->At(kDigits));
25 }
26 AliDataLoader* dl = new AliDataLoader(fDetectorName + ".Digits.root","START_D", "Digits","O");//we want to have object data not tree
27 AliTaskLoader* tl = new AliTaskLoader(fDetectorName + AliConfig::Instance()->GetDigitizerTaskName(),dl,AliRunLoader::GetRunDigitizer(),kTRUE);
28 dl->SetBaseTaskLoader(tl);
29 fDataLoaders->AddAt(dl,kDigits);
30
31 // R E C O N S T R U C T E D P O I N T S, here: V E R T E X
32 if (fDataLoaders->At(kRecPoints)) {
33 delete fDataLoaders->Remove(fDataLoaders->At(kRecPoints));
34 }
35 dl = new AliDataLoader(fDetectorName + ".RecPoints.root","START_V", "Reconstructed Points","O");//we want to have object data not tree
36 tl = new AliTaskLoader(fDetectorName + AliConfig::Instance()->GetReconstructionerTaskName(),dl,AliRunLoader::GetRunReconstructioner(),kTRUE);
37 dl->SetBaseTaskLoader(tl);
38 fDataLoaders->AddAt(dl,kRecPoints);
e79d2564 39}