Full PID delegated to AliPHOSPID
[u/mrichter/AliRoot.git] / PHOS / AliPHOSReconstructioner.cxx
index 98d5b55..173879e 100644 (file)
@@ -39,10 +39,13 @@ AliPHOSReconstructioner::AliPHOSReconstructioner()
 }        
 
 //____________________________________________________________________________
-AliPHOSReconstructioner::AliPHOSReconstructioner(AliPHOSClusterizer & Clusterizer, AliPHOSTrackSegmentMaker & Tracker)
+AliPHOSReconstructioner::AliPHOSReconstructioner(AliPHOSClusterizer * Clusterizer, 
+                                                AliPHOSTrackSegmentMaker * Tracker,
+                                                AliPHOSPID * Pid)
 {
-  fClusterizer         = &Clusterizer ;
-  fTrackSegmentMaker  = &Tracker ;
+  fClusterizer        = Clusterizer ;
+  fTrackSegmentMaker  = Tracker ;
+  fPID                = Pid ; 
 } 
 
 //____________________________________________________________________________
@@ -52,9 +55,25 @@ AliPHOSReconstructioner::~AliPHOSReconstructioner()
 }  
 
 //____________________________________________________________________________
- void AliPHOSReconstructioner:: Make(TClonesArray * dl, RecPointsList * emccl, RecPointsList * ppsdl, TrackSegmentsList * trsl)
+ void AliPHOSReconstructioner::Init(AliPHOSClusterizer * Clusterizer, 
+                                                AliPHOSTrackSegmentMaker * Tracker,
+                                                AliPHOSPID * Pid)
+{
+  fClusterizer        = Clusterizer ;
+  fTrackSegmentMaker  = Tracker ;
+  fPID                = Pid ; 
+} 
+
+
+
+//____________________________________________________________________________
+ void AliPHOSReconstructioner::Make(TClonesArray * dl, RecPointsList * emccl, RecPointsList * ppsdl, 
+                                    TrackSegmentsList * trsl, RecParticlesList * rpl)
 {
   fClusterizer->MakeClusters(dl, emccl, ppsdl);
+  
+
+  fTrackSegmentMaker->MakeTrackSegments(dl, emccl, ppsdl, trsl) ;
 
-  fTrackSegmentMaker->MakeTrackSegments(dl,emccl,ppsdl,trsl) ;
+  fPID->MakeParticles(trsl, rpl) ; 
 }