message: Modified AddTaskTOFMC.C macro
diff: -AliAnalysisTaskTOFMC *AddTaskTOFMC(Int_t nTPC_CR=70, Int_t Chi2_TPCcluser=4, Int_t DCAz=2)
  +AliAnalysisTaskTOFMC *AddTaskTOFMC(const char *PeriodName=NULL, Int_t nTPC_CR=70, Int_t Chi2_TPCcluser=4, Int_t DCAz=2)
  {
  // Creates, configures and attaches to the train a cascades check task.
  // Get the pointer to the existing analysis manager via the static access method.
  //==============================================================================
  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
  if (!mgr) {
  - ::Error("AddTaskStrangenessVsMultiplicity", "No analysis manager to connect to.");
  + ::Error("AddTaskTOFMC", "No analysis manager to connect to.");
  return NULL;
  }
  // Check the analysis type using the event handlers connected to the analysis manager.
  //==============================================================================
  if (!mgr->GetInputEventHandler()) {
  - ::Error("AddTaskdE_D", "This task requires an input event handler");
  + ::Error("AddTaskTOFMC", "This task requires an input event handler");
  return NULL;
  }
  +
  + TString str = mgr->GetInputEventHandler()->GetDataType();
  + if (str.CompareTo("ESD")) {
  + Error("AddTaskTOFMC", "input data type is not \"ESD\"");
  + return NULL;
  + }
  +
  + /* check MC truth event handler */
  + if (!mgr->GetMCtruthEventHandler()) {
  + Error("AddTaskTOFMC", "cannot get MC truth event handler");
  + return NULL;
  + }
  + AliMCEventHandler * handler = (AliMCEventHandler *) mgr->GetMCtruthEventHandler();
  + handler->SetReadTR(kTRUE);
  +
  +
  + AliMultSelectionTask *mult = (AliMultSelectionTask*)mgr->GetTask("taskMultSelection");
  + mult->SetUseDefaultMCCalib(kTRUE);
  + mult->SetAlternateOADBforEstimators(PeriodName);
  +
  TString type = mgr->GetInputEventHandler()->GetDataType(); // can be "ESD" or "AOD"
  // Create and configure the task
  