Fixes in alimdc package in order to be able to compile the code without HLT
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 25 Oct 2004 11:50:11 +0000 (11:50 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 25 Oct 2004 11:50:11 +0000 (11:50 +0000)
RAW/AliMDC.cxx
RAW/AliRawDB.cxx
RAW/AliRawDB.h

index a05580d..8a79b19 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());
index 28a128e..1b99156 100644 (file)
@@ -56,7 +56,9 @@ AliRawDB::AliRawDB(AliRawEvent *event,
    // Create a new raw DB containing at most maxsize bytes.
 
    fEvent    = event;
+#ifdef USE_HLT
    fESD      = esd;
+#endif
    fMaxSize  = maxsize;
    fCompress = compress;
 
@@ -261,7 +263,9 @@ void AliRawDB::Close()
 
    // Write the tree.
    fTree->Write();
+#ifdef USE_HLT
    fESDTree->Write();
+#endif
 
    // Close DB, this also deletes the fTree
    fRawDB->Close();
index bfc1825..8ae6b53 100644 (file)
@@ -49,7 +49,11 @@ public:
    virtual Int_t       GetNetopt() const { return 0; }
    virtual Bool_t      Create();
    virtual void        Close();
-   void                Fill() { fTree->Fill(); fESDTree->Fill(); }
+   void                Fill() { fTree->Fill();
+#ifdef USE_HLT
+                                fESDTree->Fill();
+#endif
+                              }
    Bool_t              FileFull() { return (fRawDB->GetBytesWritten() > fMaxSize) ?
                                     kTRUE : kFALSE; }