Modified macros for lego train (M.Vala+M.Venaruzzo)
authorfbellini <fbellini@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 8 Nov 2012 11:17:58 +0000 (11:17 +0000)
committerfbellini <fbellini@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 8 Nov 2012 11:17:58 +0000 (11:17 +0000)
PWGLF/RESONANCES/macros/lego_train/AddRsnTask.C
PWGLF/RESONANCES/macros/lego_train/RsnConfig.C
PWGLF/RESONANCES/macros/mini/AddAnalysisTaskSigmaStarPP.C

index 6c7fd2c..8a4dbd1 100644 (file)
@@ -21,15 +21,17 @@ AliAnalysisTaskSE *AddRsnTask(TString rsnPart,TString rsnCut,TString postfix="")
 
    if (isRsnMini) {
       postfix.Prepend("Mini");
-      AliRsnMiniAnalysisTask *taskRsnMini = new AliRsnMiniAnalysisTask(Form("Rsn%s",postfix.Data()),useMC);
+      AliRsnMiniAnalysisTask *taskRsnMini = new AliRsnMiniAnalysisTask(TString::Format("Rsn%s",postfix.Data()).Data(),useMC);
       Int_t refreshPrint = AliRsnTrainManager::GetGlobalInt("RsnMixPrintRefresh",valid);
       if (valid) taskRsnMini->SetMixPrintRefresh(refreshPrint);
       task = (AliAnalysisTaskSE *) taskRsnMini;
    }
    else {
-      AliRsnAnalysisTask *taskRsn = new AliRsnAnalysisTask(Form("Rsn%s",postfix.Data()));
+      AliRsnAnalysisTask *taskRsn = new AliRsnAnalysisTask(TString::Format("Rsn%s",postfix.Data()).Data());
       task = (AliAnalysisTaskSE *) taskRsn;
    }
+   
+   postfix.Append(TString::Format("_%s_%s",rsnPart.Data(),rsnCut.Data()).Data());
 
    if (physSelBit>=0) task->SelectCollisionCandidates((AliVEvent::EOfflineTriggerTypes)physSelBit);
 
index 750cd6d..9b2fae6 100644 (file)
@@ -119,9 +119,9 @@ Bool_t RsnLoadMacroFromConfig(TString macro,TString path="") {
       return kTRUE;
    }
 
-   if (!gSystem->AccessPathName(gSystem->ExpandPathName(Form("%s/%s",lego_path.Data(),macro.Data())))) {
-      gROOT->LoadMacro(gSystem->ExpandPathName(Form("%s/%s",lego_path.Data(),macro.Data())));
-      Printf("Macro loaded from %s ...",gSystem->ExpandPathName(Form("%s/%s",lego_path.Data(),macro.Data())));
+   if (!gSystem->AccessPathName(gSystem->ExpandPathName(TString::Format("%s/%s",lego_path.Data(),macro.Data()).Data()))) {
+      gROOT->LoadMacro(gSystem->ExpandPathName(TString::Format("%s/%s",lego_path.Data(),macro.Data()).Data()));
+      Printf("Macro loaded from %s ...",gSystem->ExpandPathName(TString::Format("%s/%s",lego_path.Data(),macro.Data()).Data()));
       return kTRUE;
    }
 
index 399d998..9507356 100644 (file)
@@ -106,7 +106,7 @@ AliRsnMiniAnalysisTask * AddAnalysisTaskSigmaStar
    // -- PAIR CUTS (common to all resonances) ------------------------------------------------------
    //
    AliRsnCutMiniPair *cutY = new AliRsnCutMiniPair("cutRapidity", AliRsnCutMiniPair::kRapidityRange);
-   cutY->SetRangeD(-0.8, 0.8);
+   cutY->SetRangeD(-0.5, 0.5);
    
    AliRsnCutSet *cutsPair = new AliRsnCutSet("pairCuts", AliRsnTarget::kMother);
    cutsPair->AddCut(cutY);