1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 ///////////////////////////////////////////////////////////////////////////////
20 // Class for TRD reconstruction //
22 ///////////////////////////////////////////////////////////////////////////////
26 #include "AliRunLoader.h"
27 #include "AliRawReader.h"
29 #include "AliESDTrdTrack.h"
30 #include "AliESDEvent.h"
32 #include "AliTRDReconstructor.h"
33 #include "AliTRDclusterizer.h"
34 #include "AliTRDtracker.h"
35 #include "AliTRDpidESD.h"
36 #include "AliTRDgtuTrack.h"
37 #include "AliTRDrawData.h"
38 #include "AliTRDdigitsManager.h"
39 #include "AliTRDtrackerV1.h"
40 #include "AliTRDrecoParam.h"
42 ClassImp(AliTRDReconstructor)
44 Bool_t AliTRDReconstructor::fgkSeedingOn = kFALSE;
45 Int_t AliTRDReconstructor::fgStreamLevel = 0; // Stream (debug) level
47 //_____________________________________________________________________________
48 void AliTRDReconstructor::ConvertDigits(AliRawReader *rawReader
49 , TTree *digitsTree) const
52 // Convert raw data digits into digit objects in a root tree
55 AliInfo("Convert raw data digits into digit objects [RawReader -> Digit TTree]");
57 AliTRDrawData rawData;
59 rawReader->Select("TRD");
60 AliTRDdigitsManager *manager = rawData.Raw2Digits(rawReader);
61 manager->MakeBranch(digitsTree);
62 manager->WriteDigits();
67 //_____________________________________________________________________________
68 void AliTRDReconstructor::Reconstruct(AliRawReader *rawReader
69 , TTree *clusterTree) const
72 // Reconstruct clusters
75 AliInfo("Reconstruct TRD clusters from RAW data [RawReader -> Cluster TTree]");
78 rawReader->Select("TRD");
80 // New (fast) cluster finder
81 AliTRDclusterizer clusterer("clusterer","TRD clusterizer");
82 clusterer.OpenOutput(clusterTree);
83 clusterer.SetAddLabels(kFALSE);
84 clusterer.Raw2ClustersChamber(rawReader);
88 //_____________________________________________________________________________
89 void AliTRDReconstructor::Reconstruct(TTree *digitsTree
90 , TTree *clusterTree) const
93 // Reconstruct clusters
96 AliInfo("Reconstruct TRD clusters from Digits [Digit TTree -> Cluster TTree]");
98 AliTRDclusterizer clusterer("clusterer","TRD clusterizer");
99 clusterer.OpenOutput(clusterTree);
100 clusterer.ReadDigits(digitsTree);
101 clusterer.MakeClusters();
105 //_____________________________________________________________________________
106 AliTracker *AliTRDReconstructor::CreateTracker() const
109 // Create a TRD tracker
112 //return new AliTRDtracker(NULL);
114 return new AliTRDtrackerV1(NULL, AliTRDrecoParam::GetLowFluxParam());
118 //_____________________________________________________________________________
119 void AliTRDReconstructor::FillESD(TTree* /*digitsTree*/
120 , TTree* /*clusterTree*/
121 , AliESDEvent* /*esd*/) const