Updated macros for lego_train (mvala)
authorfbellini <fbellini@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 19 Nov 2012 14:48:02 +0000 (14:48 +0000)
committerfbellini <fbellini@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 19 Nov 2012 14:48:02 +0000 (14:48 +0000)
PWGLF/RESONANCES/macros/lego_train/AddAMRsn.C
PWGLF/RESONANCES/macros/lego_train/AddRsnPairsPhi.C
PWGLF/RESONANCES/macros/lego_train/AddRsnTask.C

index 8a869d1..bbed223 100644 (file)
@@ -142,7 +142,7 @@ Bool_t AddAMRsn(TString analysisSource = "proof", TString analysisMode = "test",
 //   rsnBaseSettings = "Rsn_PbPb";
 //   rsnBaseSettings = "Rsn_pPb";
 
-   if (input.CompareTo("esd")) rsnBaseSettings.Append("_ESD");
+   if (!input.CompareTo("esd")) rsnBaseSettings.Append("_ESD");
    else rsnBaseSettings.Append("_AOD");
 
    // use mc
index dbc9210..01722c6 100644 (file)
@@ -15,7 +15,6 @@ void AddRsnPairsPhi(AliAnalysisTaskSE *task,
                     AliRsnCutSet *cutsEvent=0,
                     AliRsnCutSet *cutsPair=0,
                     TString suffix = "") {
-   cerr<<"***** AddRsnPairsPhi"<<endl;
 
    Printf("id1=%d id2=%d",listID1,listID2);
 
@@ -42,7 +41,7 @@ void AddPairOutputPhi(AliRsnLoopPair *pair)
    Int_t isFullOutput = AliRsnTrainManager::GetGlobalInt("RsnOutputFull",valid);
    Int_t collisionType = AliRsnTrainManager::GetGlobalInt("IsCollisionType",valid);
    Int_t useRapidity = AliRsnTrainManager::GetGlobalInt("RsnUseRapidity",valid);
-
+   
    // axes
    AliRsnValuePair *axisIM = new AliRsnValuePair("IM", AliRsnValuePair::kInvMass);
    AliRsnValuePair *axisPt = new AliRsnValuePair("PT", AliRsnValuePair::kPt);
@@ -87,7 +86,7 @@ void AddPairOutputMiniPhi(AliAnalysisTaskSE *task, Bool_t isMC,Bool_t isMixing,
    Int_t useMixing = AliRsnTrainManager::GetGlobalInt("IsMixing",valid);
    Int_t collisionType = AliRsnTrainManager::GetGlobalInt("IsCollisionType",valid);
 
-   Int_t useRapidity = AliAnalysisManager::GetGlobalInt("rsnUseRapidity",valid);
+   Int_t useRapidity = AliAnalysisManager::GetGlobalInt("RsnUseRapidity",valid);
 
    AliRsnMiniAnalysisTask *taskRsnMini =  (AliRsnMiniAnalysisTask *)task;
 
index 2cf5874..1b0badd 100644 (file)
@@ -56,7 +56,7 @@ AliAnalysisTaskSE *AddRsnTask(TString rsnPart,TString rsnCut,TString postfix="")
    if (isMixing) AddEventMixingSettings(task);
 
    if (isAOD049 && (!useMC) && (collisionType==1)) {
-      task->SetUseCentralityPatch(kTRUE);
+      if (isRsnMini) taskRsnMini->SetUseCentralityPatch(kTRUE);
    }
 
    // add the task to manager