Bug fix in AddTaskPHOSPi0pPb.C. Remove redundant macro AddTaskPHOSPi0pPbv2.C.
authorkharlov <kharlov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 20 Oct 2013 20:02:26 +0000 (20:02 +0000)
committerkharlov <kharlov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 20 Oct 2013 20:02:26 +0000 (20:02 +0000)
PWGGA/PHOSTasks/PHOS_pPb/AddTaskPHOSPi0pPb.C
PWGGA/PHOSTasks/PHOS_pPb/AddTaskPHOSPi0pPbv2.C [deleted file]

index e9bac91..2311ddb 100644 (file)
@@ -8,7 +8,7 @@ AliAnalysisTaskPi0Flow* AddTaskPHOSPi0pPb (const char* name = "PHOSPi0pPb",
                                           const Int_t centEdge2 = 40,
                                           const Int_t centEdge3 = 60,
                                           const Int_t centEdge4 = 80,
-                                          const Int_t centEdge4 = 100)
+                                          const Int_t centEdge5 = 100)
 {
   //Add a task AliAnalysisTaskPi0Flow to the analysis train, for LHC13 PbP data
   //Author: Paul Baetzing
diff --git a/PWGGA/PHOSTasks/PHOS_pPb/AddTaskPHOSPi0pPbv2.C b/PWGGA/PHOSTasks/PHOS_pPb/AddTaskPHOSPi0pPbv2.C
deleted file mode 100644 (file)
index fcd8282..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-AliAnalysisTaskPi0Flow* AddTaskPHOSPi0pPbv2 (const char* name = "PHOSPi0pPb",
-                                            const char* options = "",
-                                            const char* centrality = "V0M",
-                                            UInt_t offlineTriggerMask = AliVEvent::kINT7 )
-{
-  //Add a task AliAnalysisTaskPi0Flow to the analysis train, for LHC13 PbP data
-  //Author: Paul Baetzing
-  /* $Id$ */
-
-  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
-  if (!mgr) {
-    ::Error("AddTaskPHOSPi0pPb", "No analysis manager to connect to");
-    return NULL;
-  }
-  
-  if (!mgr->GetInputEventHandler()) {
-    ::Error("AddTaskPHOSPi0pPb", "This task requires an input event handler");
-    return NULL;
-  }
-
-  AliAnalysisTaskPi0Flow* task = new AliAnalysisTaskPi0Flow(Form("%sTask", name));
-
-  // MB or PHOS Trigger:
-  if( AliVEvent::kINT7 == offlineTriggerMask || AliVEvent::kPHI7 == offlineTriggerMask ) {
-    // const int nbins = 5;
-    // Double_t cbin[nbins+1] = {0., 20., 40., 60., 80., 100.};
-    const int nbins = 20;
-    Double_t cbin[nbins+1] = { 0.,  5., 10., 15., 20., 25., 30., 35., 40., 45., 
-                             50., 55., 60., 65., 70., 75., 80., 85., 90., 95., 100.};
-    TArrayD tbin(nbins+1, cbin);
-    Int_t    nMixed[nbins] = {20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 
-                             20, 20, 20, 20, 20, 20, 20, 20, 20, 20};
-    TArrayI tNMixed(nbins, nMixed);
-    task->SetCentralityBinning(tbin, tNMixed);
-  }
-  if( TString(options).Contains("LHC13") )
-    task->SetPeriod( AliAnalysisTaskPi0Flow::kLHC13 );
-  task->SetCentralityEstimator(centrality);
-
-
-  task->SetEventMixingRPBinning(1);
-  task->SelectCollisionCandidates(offlineTriggerMask);
-  task->SetEnablePHOSModule(2, kFALSE);
-  task->EnableTOFCut(true, 100.e-9, true);
-
-  mgr->AddTask(task);
-  mgr->ConnectInput(task, 0, mgr->GetCommonInputContainer() );
-  
-  TString cname(Form("%sCoutput1", name));
-  TString pname(Form("%s:%s", AliAnalysisManager::GetCommonFileName(), name));
-  AliAnalysisDataContainer *coutput1 = mgr->CreateContainer(cname.Data(), TList::Class(), AliAnalysisManager::kOutputContainer, pname.Data());
-  mgr->ConnectOutput(task, 1, coutput1);
-  
-  return task;
-}