// --- ROOT system ---
-#include "TGeometry.h"
-#include "TDirectory.h"
-#include "TFile.h"
-#include "TTree.h"
-
-// --- Standard library ---
-#include <stdlib.h>
+// --- Standard library ---
// --- AliRoot header files ---
-#include "AliRun.h"
#include "AliEMCALPID.h"
-#include "AliHeader.h"
+#include "AliEMCALGetter.h"
ClassImp(AliEMCALPID)
AliEMCALPID::AliEMCALPID():TTask("","")
{
// ctor
- fSplitFile= 0 ;
-
+ fEventFolderName = "" ;
+ fFirstEvent = 0 ;
+ fLastEvent = -1 ;
}
//____________________________________________________________________________
-AliEMCALPID::AliEMCALPID(const char* headerFile, const char * name, const Bool_t toSplit):TTask(name, headerFile)
+AliEMCALPID::AliEMCALPID(const TString alirunFileName, const TString eventFolderName):
+ TTask("EMCAL"+AliConfig::Instance()->GetPIDTaskName(), alirunFileName),
+ fEventFolderName(eventFolderName)
{
// ctor
-
- fToSplit = toSplit ;
- fSplitFile= 0 ;
+ fFirstEvent = 0 ;
+ fLastEvent = -1 ;
}
//____________________________________________________________________________
AliEMCALPID::~AliEMCALPID()
{
// dtor
+ //Remove this from the parental task before destroying
+ AliEMCALGetter::Instance()->EmcalLoader()->CleanPIDTask();
- fSplitFile = 0 ;
}