Fixes in alimdc package in order to be able to compile the code without HLT
[u/mrichter/AliRoot.git] / RAW / AliMDC.cxx
index a05580de3fabc42872d7158c505c1d606f9e0c22..8a79b19c69bb3cd291c523dd7f78de0a789d989c 100644 (file)
@@ -264,15 +264,35 @@ Int_t AliMDC::Run()
    // Create new raw DB.
    AliRawDB *rawdb;
    if (fWriteMode == kRFIO)
-      rawdb = new AliRawRFIODB(event, esd, fMaxFileSize, fCompress);
+      rawdb = new AliRawRFIODB(event,
+#ifdef USE_HLT
+                              esd,
+#endif
+                              fMaxFileSize, fCompress);
    else if (fWriteMode == kROOTD)
-      rawdb = new AliRawRootdDB(event, esd, fMaxFileSize, fCompress);
+      rawdb = new AliRawRootdDB(event,
+#ifdef USE_HLT
+                               esd,
+#endif
+                               fMaxFileSize, fCompress);
    else if (fWriteMode == kCASTOR)
-      rawdb = new AliRawCastorDB(event, esd, fMaxFileSize, fCompress);
+      rawdb = new AliRawCastorDB(event,
+#ifdef USE_HLT
+                                esd,
+#endif
+                                fMaxFileSize, fCompress);
    else if (fWriteMode == kDEVNULL)
-      rawdb = new AliRawNullDB(event, esd, fMaxFileSize, fCompress);
+      rawdb = new AliRawNullDB(event,
+#ifdef USE_HLT
+                              esd,
+#endif
+                              fMaxFileSize, fCompress);
    else
-      rawdb = new AliRawDB(event, esd, fMaxFileSize, fCompress);
+      rawdb = new AliRawDB(event,
+#ifdef USE_HLT
+                          esd,
+#endif
+                          fMaxFileSize, fCompress);
 
    if (rawdb->IsZombie()) return 1;
    printf("Filling raw DB %s\n", rawdb->GetDBName());