* provided "as is" without express or implied warranty. *
**************************************************************************/
/* $Id$ */
+
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// 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 "TFile.h"
-#include "TROOT.h"
-
// --- Standard library ---
// --- AliRoot header files ---
-#include "AliRun.h"
#include "AliPHOSTrackSegmentMaker.h"
-#include "AliPHOS.h"
-#include "AliPHOSGeometry.h"
+#include "AliPHOSGetter.h"
ClassImp( AliPHOSTrackSegmentMaker)
//____________________________________________________________________________
- AliPHOSTrackSegmentMaker:: AliPHOSTrackSegmentMaker() : TTask()
+ AliPHOSTrackSegmentMaker:: AliPHOSTrackSegmentMaker() : TTask("","")
{
+ // ctor
+ fEventFolderName = "" ;
+ fFirstEvent = 0 ;
+ fLastEvent = -1 ;
}
+
//____________________________________________________________________________
-AliPHOSTrackSegmentMaker::AliPHOSTrackSegmentMaker(char * header,char * branch): TTask("AliPHOSTrackSegmentMaker","")
+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();
}