old unused alipmdv3.cxx deleted
[u/mrichter/AliRoot.git] / PMD / AliPMDReconstructor.cxx
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 ///////////////////////////////////////////////////////////////////////////////
17 //                                                                           //
18 // class for PMD reconstruction                                              //
19 //                                                                           //
20 ///////////////////////////////////////////////////////////////////////////////
21
22 #include "Riostream.h"
23 #include "AliPMDReconstructor.h"
24 #include "AliRun.h"
25 #include "AliPMDClusterFinder.h"
26 #include "AliPMDtracker.h"
27 #include "AliRawReader.h"
28 #include "AliESDPmdTrack.h"
29 #include "AliESDEvent.h"
30 #include "AliLog.h"
31
32 ClassImp(AliPMDReconstructor)
33
34 // ------------------------------------------------------------------------ //
35
36 void AliPMDReconstructor::Reconstruct(AliRawReader *rawReader,
37                                       TTree *clustersTree) const
38 {
39 // reconstruct clusters from Raw Data
40     static AliPMDClusterFinder pmdClus;
41     pmdClus.Digits2RecPoints(rawReader, clustersTree);
42 }
43
44 // ------------------------------------------------------------------------ //
45 void AliPMDReconstructor::Reconstruct(TTree *digitsTree,
46                                       TTree *clustersTree) const
47 {
48 // reconstruct clusters from Raw Data
49
50   static AliPMDClusterFinder pmdClus;
51   pmdClus.Digits2RecPoints(digitsTree, clustersTree);
52
53 }
54
55 // ------------------------------------------------------------------------ //
56 void AliPMDReconstructor::FillESD(AliRawReader* /*rawReader*/,
57                                   TTree* clustersTree, AliESDEvent* esd) const
58 {
59     static AliPMDtracker pmdtracker;
60     pmdtracker.LoadClusters(clustersTree);
61     pmdtracker.Clusters2Tracks(esd);
62 }
63 // ------------------------------------------------------------------------ //
64 void AliPMDReconstructor::FillESD(TTree * /*digitsTree*/,
65                                   TTree* clustersTree, AliESDEvent* esd) const
66 {
67     static AliPMDtracker pmdtracker;
68     pmdtracker.LoadClusters(clustersTree);
69     pmdtracker.Clusters2Tracks(esd);
70 }
71
72