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 **************************************************************************/
16 ///////////////////////////////////////////////////////////////////////////////
18 // class for PMD reconstruction //
20 ///////////////////////////////////////////////////////////////////////////////
22 #include "Riostream.h"
23 #include "AliPMDReconstructor.h"
25 #include "AliPMDClusterFinder.h"
26 #include "AliPMDtracker.h"
27 #include "AliRawReader.h"
28 #include "AliESDPmdTrack.h"
29 #include "AliESDEvent.h"
32 ClassImp(AliPMDReconstructor)
34 // ------------------------------------------------------------------------ //
36 void AliPMDReconstructor::Reconstruct(AliRawReader *rawReader,
37 TTree *clustersTree) const
39 // reconstruct clusters from Raw Data
41 AliPMDClusterFinder pmdClus;
42 pmdClus.Digits2RecPoints(rawReader, clustersTree);
46 // ------------------------------------------------------------------------ //
47 void AliPMDReconstructor::Reconstruct(TTree *digitsTree,
48 TTree *clustersTree) const
50 // reconstruct clusters from Raw Data
52 AliPMDClusterFinder pmdClus;
53 pmdClus.Digits2RecPoints(digitsTree, clustersTree);
57 // ------------------------------------------------------------------------ //
58 void AliPMDReconstructor::FillESD(AliRawReader* /*rawReader*/,
59 TTree* clustersTree, AliESDEvent* esd) const
61 AliPMDtracker pmdtracker;
62 pmdtracker.LoadClusters(clustersTree);
63 pmdtracker.Clusters2Tracks(esd);
65 // ------------------------------------------------------------------------ //
66 void AliPMDReconstructor::FillESD(TTree * /*digitsTree*/,
67 TTree* clustersTree, AliESDEvent* esd) const
69 AliPMDtracker pmdtracker;
70 pmdtracker.LoadClusters(clustersTree);
71 pmdtracker.Clusters2Tracks(esd);