changes in AddTasks
authorfbock <fbock@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 22 Jul 2013 15:59:37 +0000 (15:59 +0000)
committerfbock <fbock@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 22 Jul 2013 15:59:37 +0000 (15:59 +0000)
PWGGA/GammaConv/macros/AddTask_GammaConvV1_PbPb.C
PWGGA/GammaConv/macros/AddTask_GammaConvV1_pPb.C
PWGGA/GammaConv/macros/AddTask_GammaConvV1_pp.C

index 11e598b..ac7b9e5 100644 (file)
@@ -3,7 +3,8 @@ void AddTask_GammaConvV1_PbPb(  Int_t trainConfig = 1,  //change different set o
                               Bool_t enableQAMesonTask = kFALSE, //enable QA in AliAnalysisTaskGammaConvV1
                               Bool_t enableQAPhotonTask = kFALSE, // enable additional QA task
                               TString fileNameInputForWeighting = "MCSpectraInput.root", // path to file for weigting input
-                              Bool_t doWeighting = kFALSE //enable Weighting
+                              Bool_t doWeighting = kFALSE,  //enable Weighting
+                              TString cutnumberAODBranch = "1000000060084000001500000" 
                            ) {
 
    // ================= Load Librariers =================================
@@ -67,6 +68,11 @@ void AddTask_GammaConvV1_PbPb(  Int_t trainConfig = 1,  //change different set o
             fCuts->SetFillCutHistograms("",kTRUE);
          }
       }
+      
+      if(inputHandler->IsA()==AliAODInputHandler::Class()){
+      // AOD mode
+         fV0ReaderV1->SetDeltaAODBranchName(Form("GammaConv_%s_gamma",cutnumberAODBranch.Data()));
+      }
       fV0ReaderV1->Init();
 
       AliLog::SetGlobalLogLevel(AliLog::kInfo);
index 0cf981c..f244ac1 100644 (file)
@@ -2,7 +2,8 @@ void AddTask_GammaConvV1_pPb(  Int_t trainConfig = 1,  //change different set of
                               Bool_t isMC   = kFALSE, //run MC 
                               Bool_t enableQAMesonTask = kFALSE, //enable QA in AliAnalysisTaskGammaConvV1
                               Bool_t enableQAPhotonTask = kFALSE, // enable additional QA task
-                              TString fileNameInputForWeighting = "MCSpectraInput.root" // path to file for weigting input
+                              TString fileNameInputForWeighting = "MCSpectraInput.root", // path to file for weigting input
+                              TString cutnumberAODBranch = "8000000060084000001500000" // cutnumber for AOD branch
                            ) {
 
    // ================= Load Librariers =================================
@@ -68,6 +69,10 @@ void AddTask_GammaConvV1_pPb(  Int_t trainConfig = 1,  //change different set of
             fCuts->SetFillCutHistograms("",kTRUE);
          }
       }
+      if(inputHandler->IsA()==AliAODInputHandler::Class()){
+      // AOD mode
+         fV0ReaderV1->SetDeltaAODBranchName(Form("GammaConv_%s_gamma",cutnumberAODBranch.Data()));
+      }
       fV0ReaderV1->Init();
 
       AliLog::SetGlobalLogLevel(AliLog::kInfo);
index ff3de5c..6d95a52 100644 (file)
@@ -2,7 +2,8 @@ void AddTask_GammaConvV1_pp(  Int_t trainConfig = 1,  //change different set of
                               Bool_t isMC   = kFALSE, //run MC 
                               Bool_t enableQAMesonTask = kFALSE, //enable QA in AliAnalysisTaskGammaConvV1
                               Bool_t enableQAPhotonTask = kFALSE, // enable additional QA task
-                              TString fileNameInputForWeighting = "MCSpectraInput.root" // path to file for weigting input
+                              TString fileNameInputForWeighting = "MCSpectraInput.root", // path to file for weigting input
+                              TString cutnumberAODBranch = "0000000060084001001500000" // cutnumber for AOD branch
                            ) {
 
    // ================= Load Librariers =================================
@@ -67,6 +68,10 @@ void AddTask_GammaConvV1_pp(  Int_t trainConfig = 1,  //change different set of
             fCuts->SetFillCutHistograms("",kTRUE);
          }
       }
+      if(inputHandler->IsA()==AliAODInputHandler::Class()){
+      // AOD mode
+         fV0ReaderV1->SetDeltaAODBranchName(Form("GammaConv_%s_gamma",cutnumberAODBranch.Data()));
+      }
       fV0ReaderV1->Init();
 
       AliLog::SetGlobalLogLevel(AliLog::kInfo);