]> git.uio.no Git - u/mrichter/AliRoot.git/blame - T0/AliT0Loader.cxx
hardcoded LookUp table removed
[u/mrichter/AliRoot.git] / T0 / AliT0Loader.cxx
CommitLineData
dc7ca31d 1//////////////////////////////////////////////////////////////////////////////
2// //
3// Loader for T0 digits and RecPoints inherit from AliBaseDataLoader //
4// T0Digits 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// T0 RecPoints is TObject with mean time (start signal) //
8// and evrtex position (cm) //
9/////////////////////////////////////////////////////////////////////////////
10#include "AliT0Loader.h"
11#include "AliConfig.h"
12#include "AliRunLoader.h"
13
14
15ClassImp(AliT0Loader)
16
17/*****************************************************************************/
18void AliT0Loader::InitObjectLoaders()
19{
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","T0_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","T0_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);
39}