]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSTrackSegmentMaker.cxx
Copy constructor is corrected (by T.P.)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSTrackSegmentMaker.cxx
index 21a404df8126ee4903b7516e59474e26e5438c60..0f3ea3b29be51bd3f7d83d5f3a79d779827848fc 100644 (file)
  * about the suitability of this software for any purpose. It is          *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
-
+/* $Id$ */
 //_________________________________________________________________________
-// A brief description of the class
-//*-- Author : Yves Schutz  SUBATECH 
-//////////////////////////////////////////////////////////////////////////////
+// Algorithm Base class to construct PHOS track segments
+// Associates EMC and PPSD clusters
+// Unfolds the EMC cluster   
+//*-- 
+//*-- Author: Dmitri Peressounko (RRC Ki & SUBATECH)
 
-// --- ROOT system ---
 
-#include "TObjArray.h"
-#include "TClonesArray.h"
+// --- ROOT system ---
 
 // --- Standard library ---
 
-#include <iostream>
-
 // --- AliRoot header files ---
-
 #include "AliPHOSTrackSegmentMaker.h"
-#include "AliPHOSTrackSegment.h"
-#include "AliPHOSLink.h"
-#include "AliPHOSv0.h"
-#include "AliRun.h"
+#include "AliPHOSGetter.h"
 
 ClassImp( AliPHOSTrackSegmentMaker) 
 
 
 //____________________________________________________________________________
- AliPHOSTrackSegmentMaker:: AliPHOSTrackSegmentMaker() // ctor
+  AliPHOSTrackSegmentMaker:: AliPHOSTrackSegmentMaker() : TTask("","")
 {
+  // ctor
+  fEventFolderName = "" ; 
+  fFirstEvent = 0 ; 
+  fLastEvent  = -1 ; 
+}
 
+//____________________________________________________________________________
+AliPHOSTrackSegmentMaker::AliPHOSTrackSegmentMaker(const TString alirunFileName, 
+                                                  const TString eventFolderName):
+  TTask("PHOS"+AliConfig::Instance()->GetTrackerTaskName(), alirunFileName), 
+  fEventFolderName(eventFolderName)
+{
+  // ctor
+  fFirstEvent = 0 ; 
+  fLastEvent  = -1 ; 
 }
 
+//____________________________________________________________________________
+AliPHOSTrackSegmentMaker::~AliPHOSTrackSegmentMaker()
+{
+ //Remove this from the parental task before destroying
+  if(AliPHOSGetter::Instance()->PhosLoader())
+    AliPHOSGetter::Instance()->PhosLoader()->CleanTracker();
+}