]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
several fixes in settings
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 16 Nov 2011 15:33:33 +0000 (15:33 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 16 Nov 2011 15:33:33 +0000 (15:33 +0000)
PWG4/macros/AddTaskPartCorr.C
PWG4/macros/ana.C

index e57d79e62316b58242105e38074c5974750c7442..e683e6b138e8952e0d20d1302a1952e9deaca366 100644 (file)
@@ -57,7 +57,6 @@ AliAnalysisTaskParticleCorrelation *AddTaskPartCorr(
   if(!kData.Contains("delta"))
     kInputDataType = mgr->GetInputEventHandler()->GetDataType(); // can be "ESD" or "AOD"
   
-  Bool_t kUseKinematics = kFALSE; 
   if(kSimulation) { 
     kUseKinematics = (mgr->GetMCtruthEventHandler())?kTRUE:kFALSE; 
     if (!kUseKinematics && data=="AOD" && kInputDataType != "ESD") kUseKinematics = kTRUE; //AOD primary should be available ... 
index ecb1dbb24fd5d1510cfd7768b80f291064ab7858..c63f8bd60671b38982cc9fe82c4dc15b7630e7fd 100644 (file)
@@ -149,9 +149,11 @@ void ana(Int_t mode=mGRID)
   AliPhysicsSelectionTask* physSelTask = AddTaskPhysicsSelection(kMC); 
   
   // Centrality
-  // gROOT->LoadMacro("$ALICE_ROOT/ANALYSIS/macros/AddTaskCentrality.C");
-  // AliCentralitySelectionTask *taskCentrality = AddTaskCentrality();
-  // taskCentrality->SetPass(2); // remember to set the pass you are processing!!!
+  if(kCollision=="PbPb"){
+    gROOT->LoadMacro("$ALICE_ROOT/ANALYSIS/macros/AddTaskCentrality.C");
+    AliCentralitySelectionTask *taskCentrality = AddTaskCentrality();
+    taskCentrality->SetPass(2); // remember to set the pass you are processing!!!
+  }
   
   // Simple event counting tasks
   AddTaskCounter("");   // All
@@ -184,8 +186,8 @@ void ana(Int_t mode=mGRID)
   Bool_t  bTrackMatch = kTRUE;
   Int_t   minEcell    = 50;  // 50  MeV (10 MeV used in reconstruction)
   Int_t   minEseed    = 100; // 100 MeV
-  Int_t   dTime       = 40;  // 40  ns difference in time of cells in cluster, open
-  Int_t   wTime       = 40;  // 40 ns time window of cells in cluster, open
+  Int_t   dTime       = 40;  // 40  ns difference in time of cells in cluster
+  Int_t   wTime       = 10000;  // open time window of cells in cluster, open
   TString clTrigger   = "";  // Do not select, do Min Bias and triggered
   
   //Analysis with clusterizer V1
@@ -698,6 +700,8 @@ void CheckEnvironmentVariables()
     
 #endif
     
+    TString sRun = "";
+    
     if (!(strcmp(gApplication->Argv(i),"--trigger")))
       sprintf(trigger,gApplication->Argv(i+1));
     
@@ -708,7 +712,7 @@ void CheckEnvironmentVariables()
       bBadChannel = atoi(gApplication->Argv(i+1));
     
     if (!(strcmp(gApplication->Argv(i),"--run"))){
-      TString sRun(gApplication->Argv(i+1));
+      sRun = gApplication->Argv(i+1);
       if(sRun.Contains("LHC10")) {
         kYear = 2010;
       }