Fixes in case no raw data is available during online reco+viz (Matevz)
[u/mrichter/AliRoot.git] / EVE / macros / alieve_online.C
index c7024d68de8fa77ed24ccdbed0d8adbdbc339758..b5d3b344a48336a2d873d2e24820eac3d5c57c2c 100644 (file)
@@ -16,6 +16,7 @@ void alieve_online_init()
   gROOT->LoadMacro("its_clusters.C++");
   gROOT->LoadMacro("tpc_clusters.C++");
   gROOT->LoadMacro("trd_clusters.C++");
+  gROOT->LoadMacro("hmpid_clusters.C++");
 
   gROOT->LoadMacro("acorde_raw.C");
   gROOT->LoadMacro("its_raw.C");
@@ -61,13 +62,18 @@ void alieve_online_init()
 
 void alieve_online_on_new_event()
 {
-  its_raw();
+  if (AliEveEventManager::HasRawReader())
+    its_raw();
   its_clusters();
 
-  tpc_raw();
+  if (AliEveEventManager::HasRawReader())
+    tpc_raw();
   tpc_clusters();
 
-  acorde_raw();
+  hmpid_clusters();
+
+  if (AliEveEventManager::HasRawReader())
+    acorde_raw();
 
   primary_vertex();
   esd_tracks();