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