]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDReconstructor.cxx
Fix compiler warnings
[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
3bc9d03e 44Bool_t AliTRDReconstructor::fgkSeedingOn = kFALSE;
45Int_t AliTRDReconstructor::fgStreamLevel = 0; // Stream (debug) level
0397ce53 46
121a60bd 47//_____________________________________________________________________________
a8fbb161 48void AliTRDReconstructor::ConvertDigits(AliRawReader *rawReader
49 , TTree *digitsTree) const
121a60bd 50{
3bc9d03e 51 //
25ca55ce 52 // Convert raw data digits into digit objects in a root tree
3bc9d03e 53 //
121a60bd 54
ca21baaa 55 AliInfo("Convert raw data digits into digit objects [RawReader -> Digit TTree]");
56
a8fbb161 57 AliTRDrawData rawData;
3a0f6479 58 rawReader->Reset();
59 rawReader->Select("TRD");
a8fbb161 60 AliTRDdigitsManager *manager = rawData.Raw2Digits(rawReader);
61 manager->MakeBranch(digitsTree);
62 manager->WriteDigits();
c0ab62ff 63 delete manager;
0ee00e25 64
121a60bd 65}
66
25ca55ce 67//_____________________________________________________________________________
68void AliTRDReconstructor::Reconstruct(AliRawReader *rawReader
69 , TTree *clusterTree) const
70{
71 //
72 // Reconstruct clusters
73 //
74
ca21baaa 75 AliInfo("Reconstruct TRD clusters from RAW data [RawReader -> Cluster TTree]");
25ca55ce 76
3a0f6479 77 rawReader->Reset();
78 rawReader->Select("TRD");
79
ca21baaa 80 // New (fast) cluster finder
3fe61b77 81 AliTRDclusterizer clusterer("clusterer","TRD clusterizer");
25ca55ce 82 clusterer.OpenOutput(clusterTree);
ca21baaa 83 clusterer.SetAddLabels(kFALSE);
84 clusterer.Raw2ClustersChamber(rawReader);
d6e36038 85
25ca55ce 86}
87
88//_____________________________________________________________________________
a8fbb161 89void AliTRDReconstructor::Reconstruct(TTree *digitsTree
90 , TTree *clusterTree) const
25ca55ce 91{
92 //
93 // Reconstruct clusters
94 //
e4f2f73d 95
ca21baaa 96 AliInfo("Reconstruct TRD clusters from Digits [Digit TTree -> Cluster TTree]");
25ca55ce 97
3fe61b77 98 AliTRDclusterizer clusterer("clusterer","TRD clusterizer");
25ca55ce 99 clusterer.OpenOutput(clusterTree);
100 clusterer.ReadDigits(digitsTree);
101 clusterer.MakeClusters();
d6e36038 102
25ca55ce 103}
104
105//_____________________________________________________________________________
44dbae42 106AliTracker *AliTRDReconstructor::CreateTracker() const
121a60bd 107{
3bc9d03e 108 //
109 // Create a TRD tracker
110 //
121a60bd 111
e4f2f73d 112 //return new AliTRDtracker(NULL);
113
114 return new AliTRDtrackerV1(NULL, AliTRDrecoParam::GetLowFluxParam());
25ca55ce 115
25ca55ce 116}
117
118//_____________________________________________________________________________
119void AliTRDReconstructor::FillESD(TTree* /*digitsTree*/
120 , TTree* /*clusterTree*/
ca21baaa 121 , AliESDEvent* /*esd*/) const
25ca55ce 122{
123 //
af26ce80 124 // Fill ESD
25ca55ce 125 //
126
25ca55ce 127}