- added check for the existence of HLT tracks in the HLTesdTree and printout of the...
authorkkanaki <kkanaki@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 6 May 2010 10:18:07 +0000 (10:18 +0000)
committerkkanaki <kkanaki@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 6 May 2010 10:18:07 +0000 (10:18 +0000)
- switched off warning for missing AliESDfriend file

HLT/QA/tasks/AliAnalysisTaskHLT.cxx
HLT/QA/tasks/macros/compare-HLT-offline-grid.C
HLT/QA/tasks/macros/compare-HLT-offline-local.C

index 57d9520..3cefd97 100644 (file)
@@ -366,14 +366,20 @@ void AliAnalysisTaskHLT::UserExec(Option_t *){
   
   AliESDInputHandler *esdH = dynamic_cast<AliESDInputHandler*>(fInputHandler);
   AliESDEvent *esdHLT = NULL;   
-  if(esdH) esdHLT = esdH->GetHLTEvent();
-    
-  if(!esdHLT){
-    Printf("ERROR: HLTesd not available");
-    return;
+  
+  if(esdH){
+     esdHLT = esdH->GetHLTEvent();
+  }
+  else{
+     Printf("ERROR: HLTesd not available");
+     return;
   }
 
-  
+  if(esdHLT->GetNumberOfTracks()==0){
+     Printf("No tracks in the HLTesdTree for event %d", esdHLT->GetEventNumberInFile());
+     return;
+  }  
+
   //Fill CTP Trigger stuff
   //fHistTrigger->Fill(esdOFF->GetTriggerMask());
   
index 80fc691..4e3ed8f 100644 (file)
@@ -85,6 +85,7 @@ void compare_HLT_offline_grid(TString runNumber, TString dataDir, TString gridWo
   AliAnalysisManager *mgr  = new AliAnalysisManager("TestManager");
   AliESDInputHandler *esdH = new AliESDInputHandler;
   esdH->SetReadHLT();
+  esdH->SetReadFriends(kFALSE);
   mgr->SetInputEventHandler(esdH);  
   mgr->SetNSysInfo(1000);
   
index c90a0e1..d3463df 100644 (file)
@@ -100,6 +100,7 @@ void compare_HLT_offline_local(TString file, const char* detectorTask="global"){
   AliAnalysisManager *mgr  = new AliAnalysisManager("TestManager");
   AliESDInputHandler *esdH = new AliESDInputHandler;
   esdH->SetReadHLT();
+  esdH->SetReadFriends(kFALSE);
   mgr->SetInputEventHandler(esdH);  
   mgr->SetNSysInfo(1000);