message: Avoid loading NUA&NUE Container Repeatedly
diff: @@ -150,13 +150,16 @@ AliAnalysisTaskFlowPPTask* AddFlowPPTask(
  //Config Weights Input
  Int_t inSlotCounter=1;
  if(fNUA || fNUE)TGrid::Connect("alien:");
  +
  + TObjArray *AllContainers = mgr->GetContainers();
  +
  //NUA
  if(fNUA) {
  //if(AllContainers->FindObject("NUA")){}(from AddTaskNonlinearFlowC)
  -
  + if(!AllContainers->FindObject("NUA")){
  AliAnalysisDataContainer *cin_NUA = mgr->CreateContainer(Form("NUA%s", uniqueID.Data()), TFile::Class(), AliAnalysisManager::kInputContainer);
  - TFile *inNUA;
  + TFile *inNUA=nullptr;
  if (fPeriod.EqualTo("LHC15o")) {
  // inNUA = TFile::Open("alien:///alice/cern.ch/user/z/zumoravc/weights/LHC15o/RBRweights.root");
  @@ -204,6 +207,7 @@ AliAnalysisTaskFlowPPTask* AddFlowPPTask(
  // inNUA = TFile::Open("alien:///alice/cern.ch/user/z/zumoravc/weights/pp_LHC18/weights_LHC18_allHM.root");
  //}
  }
  +
  if(!inNUA){
  printf("Can't Access NUA File\n");
  return 0;
  @@ -223,9 +227,22 @@ AliAnalysisTaskFlowPPTask* AddFlowPPTask(
  //Connect the weight input with task
  mgr->ConnectInput(task,inSlotCounter,cin_NUA);
  inSlotCounter++;
  + }
  + else{
  + //Already have NUA container, avoid loading repeatedly
  + mgr->ConnectInput(task,inSlotCounter,(AliAnalysisDataContainer*)AllContainers->FindObject("NUA"));
  + inSlotCounter++;
  + printf("NUA already loaded\n");
  + }
  +
  +
  +
  }
  //NUE
  if(fNUE) {
  +
  + if(!AllContainers->FindObject("NUE")){
  +
  AliAnalysisDataContainer *cin_NUE = mgr->CreateContainer(Form("NUE%s", uniqueID.Data()), TFile::Class(), AliAnalysisManager::kInputContainer);
  TFile *inNUE =TFile::Open("alien:///alice/cern.ch/user/v/vvislavi/Aux/LHC17d20a1_WithModEff_Syst.root");
  TList* weight_listEff = NULL;
  @@ -239,6 +256,14 @@ AliAnalysisTaskFlowPPTask* AddFlowPPTask(
  mgr->ConnectInput(task,inSlotCounter,cin_NUE);
  inSlotCounter++;
  }
  + else{
  + mgr->ConnectInput(task,inSlotCounter,(AliAnalysisDataContainer*)AllContainers->FindObject("NUE"));
  + inSlotCounter++;
  + printf("NUE already loaded\n");
  + }
  +
  +
  + }
  return task;
  