d15a28e7 |
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 | // A brief description of the class |
18 | //*-- Author : Gines MARTINEZ SUBATECH |
19 | ////////////////////////////////////////////////////////////////////////////// |
20 | |
21 | // --- ROOT system --- |
22 | |
23 | #include "TClonesArray.h" |
24 | |
25 | // --- Standard library --- |
26 | |
27 | // --- AliRoot header files --- |
28 | |
29 | #include "AliPHOSReconstructioner.h" |
30 | #include "AliPHOSClusterizer.h" |
31 | |
32 | ClassImp(AliPHOSReconstructioner) |
33 | |
34 | |
35 | //____________________________________________________________________________ |
36 | AliPHOSReconstructioner::AliPHOSReconstructioner() |
37 | { |
38 | // ctor |
39 | } |
40 | |
41 | //____________________________________________________________________________ |
6ad0bfa0 |
42 | AliPHOSReconstructioner::AliPHOSReconstructioner(AliPHOSClusterizer * Clusterizer, |
43 | AliPHOSTrackSegmentMaker * Tracker, |
908558fc |
44 | AliPHOSPID * Pid) |
d15a28e7 |
45 | { |
6ad0bfa0 |
46 | fClusterizer = Clusterizer ; |
47 | fTrackSegmentMaker = Tracker ; |
908558fc |
48 | fPID = Pid ; |
d15a28e7 |
49 | } |
50 | |
51 | //____________________________________________________________________________ |
52 | AliPHOSReconstructioner::~AliPHOSReconstructioner() |
53 | { |
54 | // dtor |
55 | } |
56 | |
57 | //____________________________________________________________________________ |
6ad0bfa0 |
58 | void AliPHOSReconstructioner::Init(AliPHOSClusterizer * Clusterizer, |
59 | AliPHOSTrackSegmentMaker * Tracker, |
908558fc |
60 | AliPHOSPID * Pid) |
6ad0bfa0 |
61 | { |
62 | fClusterizer = Clusterizer ; |
63 | fTrackSegmentMaker = Tracker ; |
908558fc |
64 | fPID = Pid ; |
6ad0bfa0 |
65 | } |
66 | |
67 | |
68 | |
69 | //____________________________________________________________________________ |
70 | void AliPHOSReconstructioner::Make(TClonesArray * dl, RecPointsList * emccl, RecPointsList * ppsdl, |
71 | TrackSegmentsList * trsl, RecParticlesList * rpl) |
d15a28e7 |
72 | { |
6a3f1304 |
73 | |
74 | cout << "Clusterizing" << endl; |
d15a28e7 |
75 | fClusterizer->MakeClusters(dl, emccl, ppsdl); |
6ad0bfa0 |
76 | |
6a3f1304 |
77 | cout << "Segment Track Maker" << endl; |
9f616d61 |
78 | fTrackSegmentMaker->MakeTrackSegments(dl, emccl, ppsdl, trsl) ; |
6ad0bfa0 |
79 | |
6a3f1304 |
80 | cout << "Particle Maker" << endl; |
0dd37dda |
81 | fPID->MakeParticles(trsl, rpl) ; |
d15a28e7 |
82 | } |