Usage of weights in the analysis of MC data.
authorpolicheh <Boris.Polishchuk@cern.ch>
Fri, 13 Jun 2014 16:38:36 +0000 (20:38 +0400)
committerpolicheh <Boris.Polishchuk@cern.ch>
Fri, 13 Jun 2014 16:38:36 +0000 (20:38 +0400)
PWGGA/CMakelibPWGGAPHOSTasks.pkg
PWGGA/PHOSTasks/PHOS_pPb/AddTaskPHOSPi0pPbMC.C
PWGGA/PWGGAPHOSTasksLinkDef.h

index 116b175..d6a57c0 100644 (file)
@@ -33,6 +33,7 @@ set ( SRCS
  PHOSTasks/PHOS_PbPb/AliAnalysisTaskPi0FlowMC.cxx
  PHOSTasks/PHOS_PbPb/AliAnalysisTaskPi0FlowMCAOD.cxx
  PHOSTasks/PHOS_PbPb/AliAnalysisTaskPi0FlowMCHijing.cxx
+ PHOSTasks/PHOS_PbPb/AliAnalysisTaskPi0FlowMCParamWeights.cxx
  PHOSTasks/PHOS_PbPb/AliPHOSTenderTask.cxx
  PHOSTasks/PHOS_PbPb_MC/AliPHOSHijingEfficiency.cxx
  PHOSTasks/PHOS_embedding/AliPHOSEmbedding.cxx
index 6d61858..7bea71d 100644 (file)
@@ -1,5 +1,6 @@
-AliAnalysisTaskPi0FlowMC* AddTaskPHOSPi0pPbMC (const char* name = "PHOSPi0pPbMC",
-                                           const char* options = "",
+AliAnalysisTaskPi0FlowMC* AddTaskPHOSPi0pPbMC (Bool_t kWeightsApplied = kFALSE,    
+                                              const char* name = "PHOSPi0pPbMC",
+                                              const char* options = "",
                                               UInt_t offlineTriggerMask = AliVEvent::kINT7,
                                               const char* centrality = "V0M",
                                               const Int_t nCentBins = 5,
@@ -25,7 +26,10 @@ AliAnalysisTaskPi0FlowMC* AddTaskPHOSPi0pPbMC (const char* name = "PHOSPi0pPbMC"
     return NULL;
   }
 
-  AliAnalysisTaskPi0FlowMC* task = new AliAnalysisTaskPi0FlowMC(Form("%sTask", name));
+  AliAnalysisTaskPi0FlowMC* task;
+
+  if(kWeightsApplied) task  = new AliAnalysisTaskPi0FlowMCParamWeights(Form("%sTask", name));
+  else task  = new AliAnalysisTaskPi0FlowMC(Form("%sTask", name));
 
   if( AliVEvent::kINT7 == offlineTriggerMask ) {
     if (nCentBins<1) {
index f39e76a..b91af98 100644 (file)
@@ -13,6 +13,7 @@
 #pragma link C++ class AliAnalysisTaskPi0FlowMC+;
 #pragma link C++ class AliAnalysisTaskPi0FlowMCAOD+;
 #pragma link C++ class AliAnalysisTaskPi0FlowMCHijing+;
+#pragma link C++ class AliAnalysisTaskPi0FlowMCParamWeights+;
 #pragma link C++ class AliPHOSTenderTask+;
 
 //PHOS_EpRatio