fixed typo
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 16 May 2012 19:17:19 +0000 (19:17 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 16 May 2012 19:17:19 +0000 (19:17 +0000)
PWGJE/AliAnalysisTaskJetSpectrum2.cxx
PWGJE/macros/AddTaskJetSpectrum2.C

index 560441c..87bfe5c 100644 (file)
@@ -1666,10 +1666,12 @@ void AliAnalysisTaskJetSpectrum2::SetAcceptance(Int_t i,Float_t phiMin,Float_t p
   //
 
   if(i<fNAcceptance){
-      fAcceptancePhiMin[i] = phiMin; 
-      fAcceptancePhiMax[i] = phiMax;
-      fAcceptanceEtaMin[i] = etaMin;
-      fAcceptanceEtaMax[i] = etaMax;
+    Printf("%s:%d Setting acceptance %d phi %3.3f-%3.3f eta %3.3f-%3.3f",(char*)__FILE__,__LINE__,i,phiMin,phiMax,etaMin,etaMax); 
+
+    fAcceptancePhiMin[i] = phiMin; 
+    fAcceptancePhiMax[i] = phiMax;
+    fAcceptanceEtaMin[i] = etaMin;
+    fAcceptanceEtaMax[i] = etaMax;
   }
   else{
     fNTrigger = 0;
@@ -1683,8 +1685,7 @@ Int_t AliAnalysisTaskJetSpectrum2::CheckAcceptance(Float_t phi,Float_t eta){
   // return aceptnace bin do no use ovelapping bins
   //
 
-  for(int i = 0;i<fNAcceptance;i++){
-    
+  for(int i = 0;i<fNAcceptance;i++){    
     if(phi<fAcceptancePhiMin[i])continue;
     if(phi>fAcceptancePhiMax[i])continue;
     if(eta<fAcceptanceEtaMin[i])continue;
index 7cc4692..cb7cb0a 100644 (file)
@@ -189,9 +189,9 @@ Bool_t ConfigWithFlagsJetSpectrum2(){
     for(int ia = 0;ia < nAcceptance;ia++){\r
       jetspec->SetAcceptance(ia,\r
                             AliAnalysisManager::GetGlobalDbl(Form("kAcceptancePhiMinSpec%d",ia),bGood1),\r
-                            AliAnalysisManager::GetGlobalDbl(Form("kAcceptancePhiMaxSpec0%d",ia),bGood2),\r
+                            AliAnalysisManager::GetGlobalDbl(Form("kAcceptancePhiMaxSpec%d",ia),bGood1),\r
                             AliAnalysisManager::GetGlobalDbl(Form("kAcceptanceEtaMinSpec%d",ia),bGood1),\r
-                            AliAnalysisManager::GetGlobalDbl(Form("kAcceptanceEtaMaxSpec0%d",ia),bGood2));\r
+                            AliAnalysisManager::GetGlobalDbl(Form("kAcceptanceEtaMaxSpec%d",ia),bGood1));\r
     }\r
    }\r
    else {\r