fixing setting of histo labels
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 16 Feb 2012 12:07:05 +0000 (12:07 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 16 Feb 2012 12:07:05 +0000 (12:07 +0000)
PWGJE/AliAnalysisTaskJetServices.cxx
PWGJE/macros/ConfigLegoTrainPWGJE.C

index 8d41a5c..eb0274a 100644 (file)
@@ -310,8 +310,8 @@ void AliAnalysisTaskJetServices::UserCreateOutputObjects()
   fHistList->Add(fh2CentralityTrigger);
 
   for(int i = 0;i<fNTrigger;++i){
-    fh2CentralityTriggerESD->GetYaxis()->SetBinLabel(i+2,fTriggerName[i].Data());
-    fh2CentralityTrigger->GetYaxis()->SetBinLabel(i+2,fTriggerName[i].Data());
+    fh2CentralityTriggerESD->GetYaxis()->SetBinLabel(i+1,fTriggerName[i].Data());
+    fh2CentralityTrigger->GetYaxis()->SetBinLabel(i+1,fTriggerName[i].Data());
   }
 
 
index b26010f..83b6124 100644 (file)
@@ -10,11 +10,11 @@ void ConfigLegoTrainPWGJE(int iFlag = 0){
 
     AliAnalysisManager::SetGlobalStr("kDeltaAODJetName","");
 
+    // event selection
     AliAnalysisManager::SetGlobalInt("kPhysicsSelectionFlag",AliVEvent::kMB);
     AliAnalysisManager::SetGlobalInt("kNTrigger",1);    
     AliAnalysisManager::SetGlobalInt("kTriggerBit0",AliVEvent::kMB);    
     AliAnalysisManager::SetGlobalStr("kTriggerName0","kMB");    
-
     // jet selection
     AliAnalysisManager::SetGlobalDbl("kJetEtaWindow",0.5);
 
@@ -49,7 +49,6 @@ void ConfigLegoTrainPWGJE(int iFlag = 0){
     AliAnalysisManager::SetGlobalStr("kTriggerName3","kSemiCentral");    
     AliAnalysisManager::SetGlobalStr("kTriggerName4","kEMCEJE");    
 
-
     // jet selection
     AliAnalysisManager::SetGlobalDbl("kJetEtaWindow",0.5);
 
@@ -72,7 +71,6 @@ void ConfigLegoTrainPWGJE(int iFlag = 0){
     AliAnalysisManager::SetGlobalInt("kTriggerBit0",AliVEvent::kMB);    
     AliAnalysisManager::SetGlobalStr("kTriggerName0","kMB");    
 
-
     // jet selection
     AliAnalysisManager::SetGlobalDbl("kJetEtaWindow",0.5);