]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDReconstructor.cxx
Major commit related to steering of the reco parameters: AliDAQ and trigger classes...
[u/mrichter/AliRoot.git] / TRD / AliTRDReconstructor.cxx
CommitLineData
121a60bd 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
16/* $Id$ */
17
18///////////////////////////////////////////////////////////////////////////////
19// //
4fad09c9 20// Class for TRD reconstruction //
121a60bd 21// //
22///////////////////////////////////////////////////////////////////////////////
23
e3b2b5e5 24#include <TFile.h>
121a60bd 25
121a60bd 26#include "AliRunLoader.h"
3bc9d03e 27#include "AliRawReader.h"
28#include "AliLog.h"
3bc9d03e 29#include "AliESDTrdTrack.h"
af885e0f 30#include "AliESDEvent.h"
3bc9d03e 31
32#include "AliTRDReconstructor.h"
3fe61b77 33#include "AliTRDclusterizer.h"
121a60bd 34#include "AliTRDtracker.h"
b0f03c34 35#include "AliTRDpidESD.h"
e3b2b5e5 36#include "AliTRDgtuTrack.h"
a8fbb161 37#include "AliTRDrawData.h"
38#include "AliTRDdigitsManager.h"
e4f2f73d 39#include "AliTRDtrackerV1.h"
40#include "AliTRDrecoParam.h"
121a60bd 41
42ClassImp(AliTRDReconstructor)
43
eb38ed55 44//_____________________________________________________________________________
45AliTRDReconstructor::~AliTRDReconstructor() {
eb38ed55 46}
47
48
0397ce53 49
121a60bd 50//_____________________________________________________________________________
a8fbb161 51void AliTRDReconstructor::ConvertDigits(AliRawReader *rawReader
52 , TTree *digitsTree) const
121a60bd 53{
3bc9d03e 54 //
25ca55ce 55 // Convert raw data digits into digit objects in a root tree
3bc9d03e 56 //
121a60bd 57
ca21baaa 58 AliInfo("Convert raw data digits into digit objects [RawReader -> Digit TTree]");
59
a8fbb161 60 AliTRDrawData rawData;
3a0f6479 61 rawReader->Reset();
62 rawReader->Select("TRD");
a8fbb161 63 AliTRDdigitsManager *manager = rawData.Raw2Digits(rawReader);
64 manager->MakeBranch(digitsTree);
65 manager->WriteDigits();
c0ab62ff 66 delete manager;
0ee00e25 67
121a60bd 68}
69
25ca55ce 70//_____________________________________________________________________________
71void AliTRDReconstructor::Reconstruct(AliRawReader *rawReader
72 , TTree *clusterTree) const
73{
74 //
75 // Reconstruct clusters
76 //
77
ca21baaa 78 AliInfo("Reconstruct TRD clusters from RAW data [RawReader -> Cluster TTree]");
25ca55ce 79
c5f589b9 80
3a0f6479 81 rawReader->Reset();
82 rawReader->Select("TRD");
83
ca21baaa 84 // New (fast) cluster finder
3fe61b77 85 AliTRDclusterizer clusterer("clusterer","TRD clusterizer");
25ca55ce 86 clusterer.OpenOutput(clusterTree);
ca21baaa 87 clusterer.SetAddLabels(kFALSE);
88 clusterer.Raw2ClustersChamber(rawReader);
d6e36038 89
25ca55ce 90}
91
92//_____________________________________________________________________________
a8fbb161 93void AliTRDReconstructor::Reconstruct(TTree *digitsTree
94 , TTree *clusterTree) const
25ca55ce 95{
96 //
97 // Reconstruct clusters
98 //
e4f2f73d 99
ca21baaa 100 AliInfo("Reconstruct TRD clusters from Digits [Digit TTree -> Cluster TTree]");
25ca55ce 101
3fe61b77 102 AliTRDclusterizer clusterer("clusterer","TRD clusterizer");
25ca55ce 103 clusterer.OpenOutput(clusterTree);
104 clusterer.ReadDigits(digitsTree);
105 clusterer.MakeClusters();
d6e36038 106
25ca55ce 107}
108
109//_____________________________________________________________________________
44dbae42 110AliTracker *AliTRDReconstructor::CreateTracker() const
121a60bd 111{
3bc9d03e 112 //
113 // Create a TRD tracker
114 //
121a60bd 115
e4f2f73d 116 //return new AliTRDtracker(NULL);
117
eb38ed55 118 return new AliTRDtrackerV1();
25ca55ce 119
25ca55ce 120}
121
122//_____________________________________________________________________________
123void AliTRDReconstructor::FillESD(TTree* /*digitsTree*/
124 , TTree* /*clusterTree*/
ca21baaa 125 , AliESDEvent* /*esd*/) const
25ca55ce 126{
127 //
af26ce80 128 // Fill ESD
25ca55ce 129 //
130
25ca55ce 131}