]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSReconstructioner.cxx
Correct path of images and src
[u/mrichter/AliRoot.git] / PHOS / AliPHOSReconstructioner.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 /* $Id$ */
17
18 //_________________________________________________________________________
19 //  Algorithm class for the reconstruction: clusterizer
20 //                                          track segment maker
21 //                                          particle identifier   
22 //                  
23 //*-- Author: Gines Martinez & Yves Schutz (SUBATECH)
24
25
26 // --- ROOT system ---
27
28 #include "TClonesArray.h"
29
30 // --- Standard library ---
31
32 // --- AliRoot header files ---
33
34 #include "AliPHOSReconstructioner.h"
35 #include "AliPHOSClusterizer.h"
36
37 ClassImp(AliPHOSReconstructioner)
38
39 //____________________________________________________________________________
40 AliPHOSReconstructioner::AliPHOSReconstructioner(AliPHOSClusterizer * Clusterizer, 
41                                                  AliPHOSTrackSegmentMaker * Tracker,
42                                                  AliPHOSPID * Pid)
43 {
44   // ctor
45   
46   fClusterizer        = Clusterizer ;
47   fTrackSegmentMaker  = Tracker ;
48   fPID                = Pid ; 
49
50
51
52 //____________________________________________________________________________
53  void AliPHOSReconstructioner::Init(AliPHOSClusterizer * Clusterizer, 
54                                                  AliPHOSTrackSegmentMaker * Tracker,
55                                                  AliPHOSPID * Pid)
56 {
57   fClusterizer        = Clusterizer ;
58   fTrackSegmentMaker  = Tracker ;
59   fPID                = Pid ; 
60
61
62 //____________________________________________________________________________
63  void AliPHOSReconstructioner::Make(TClonesArray * dl, RecPointsList * emccl, RecPointsList * ppsdl, 
64                                      TrackSegmentsList * trsl, RecParticlesList * rpl)
65 {
66   // Launches the Reconstruction process in the sequence: Make the reconstructed poins (clusterize)
67   //                                                      Make the track segments 
68   //                                                      Make the reconstructed particles
69
70   cout << "Start making reconstructed points (clusterizing)" << endl;
71   fClusterizer->MakeClusters(dl, emccl, ppsdl);
72
73   cout << "Start making track segments" << endl;
74   fTrackSegmentMaker->MakeTrackSegments(dl, emccl, ppsdl, trsl) ;
75
76   cout << "Start making reconstructed particles" << endl;
77   fPID->MakeParticles(trsl, rpl) ; 
78 }