* 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
// --- AliRoot header files ---
#include "AliPHOSTrackSegmentMaker.h"
+#include "AliPHOSGetter.h"
ClassImp( AliPHOSTrackSegmentMaker)
AliPHOSTrackSegmentMaker:: AliPHOSTrackSegmentMaker() : TTask("","")
{
// ctor
+ fEventFolderName = "" ;
+ fFirstEvent = 0 ;
+ fLastEvent = -1 ;
}
//____________________________________________________________________________
-AliPHOSTrackSegmentMaker::AliPHOSTrackSegmentMaker(const char * headerFile, const char * name): TTask(name, headerFile)
+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();
}