-// Fixed file system locations for the different DB's
-#ifdef USE_RDM
-const char* const AliMDC::fgkFifo = "/tmp/alimdc.fifo";
-const char* const AliMDC::fgkRawDBFS[2] = { "/tmp/mdc1", "/tmp/mdc2" };
-const char* const AliMDC::fgkTagDBFS = "/tmp/mdc1/tags";
-const char* const AliMDC::fgkRunDBFS = "/tmp/mdc1/meta";
-const char* const AliMDC::fgkRFIOFS = "rfio:/castor/cern.ch/user/r/rdm";
-const char* const AliMDC::fgkCastorFS = "castor:/castor/cern.ch/user/r/rdm";
-const char* const AliMDC::fgkRootdFS = "root://localhost//tmp/mdc1";
-const char* const AliMDC::fgkAlienHost = "alien://aliens7.cern.ch:15000/?direct";
-const char* const AliMDC::fgkAlienDir = "/alice_mdc/DC";
-#else
-const char* const AliMDC::fgkFifo = "/tmp/alimdc.fifo";
-const char* const AliMDC::fgkRawDBFS[2] = { "/data1/mdc", "/data2/mdc" };
-const char* const AliMDC::fgkTagDBFS = "/data1/mdc/tags";
-const char* const AliMDC::fgkRunDBFS = "/data1/mdc/meta";
-const char* const AliMDC::fgkRFIOFS = "rfio:/castor/cern.ch/lcg/dc5";
-const char* const AliMDC::fgkCastorFS = "castor:/castor/cern.ch/lcg/dc5";
-const char* const AliMDC::fgkRootdFS = "root://localhost//tmp/mdc1";
-const char* const AliMDC::fgkAlienHost = "alien://aliens7.cern.ch:15000/?direct";
-const char* const AliMDC::fgkAlienDir = "/alice_mdc/DC";
-#endif
-
-// Maximum size of tag db files
-const Double_t AliMDC::fgkMaxTagFileSize = 2.5e8; // 250MB
+//______________________________________________________________________________
+AliMDC::AliMDC(Int_t compress, Bool_t deleteFiles, EFilterMode filterMode,
+ Double_t maxSizeTagDB, const char* fileNameTagDB,
+ const char *guidFileFolder,
+ Int_t basketsize) :
+ fEvent(new AliRawEventV2),
+ fESD(NULL),
+ fRawDB(NULL),
+ fTagDB(NULL),
+ fEventTag(new AliRawEventTag),
+ fCompress(compress),
+ fBasketSize(basketsize),
+ fDeleteFiles(deleteFiles),
+ fFilterMode(filterMode),
+ fFilters(),
+ fStop(kFALSE),
+ fIsTagDBCreated(kFALSE),
+ fMaxSizeTagDB(maxSizeTagDB),
+ fFileNameTagDB(fileNameTagDB),
+ fGuidFileFolder(guidFileFolder)
+{
+ // Create MDC processor object.
+ // compress is the file compression mode.
+ // If deleteFiles is kTRUE the raw data files will be deleted after they
+ // were closed.
+ // If the filterMode if kFilterOff no filter algorithm will be, if it is
+ // kFilterTransparent the algorthims will be run but no events will be
+ // rejected, if it is kFilterOn the filters will be run and the event will
+ // be rejected if all filters return kFALSE.
+ // If maxSizeTagDB is greater than 0 it determines the maximal size of the
+ // tag DB and then fileNameTagDB is the directory name for the tag DB.
+ // Otherwise fileNameTagDB is the file name of the tag DB. If it is NULL
+ // no tag DB will be created.
+ // Optional 'guidFileFolder' specifies the folder in which *.guid files
+ // will be stored. In case this option is not given, the *.guid files
+ // will be written to the same folder as the raw-data files.
+
+ // Set the maximum tree size to 19GB
+ // in order to allow big raw data files
+ TTree::SetMaxTreeSize(20000000000LL);
+
+ AliRawEquipmentHeader::Class()->IgnoreTObjectStreamer();
+ AliRawEquipmentV2::Class()->IgnoreTObjectStreamer();
+ AliRawEventV2::Class()->IgnoreTObjectStreamer();
+ AliRawDataArrayV2::Class()->IgnoreTObjectStreamer();
+
+ TBufferFile::SetGlobalReadParam(5);
+
+ // This line is needed in case of a stand-alone application w/o
+ // $ROOTSYS/etc/system.rootrc file
+ gROOT->GetPluginManager()->AddHandler("TVirtualStreamerInfo",
+ "*",
+ "TStreamerInfo",
+ "RIO",
+ "TStreamerInfo()");
+
+ if (fFilterMode != kFilterOff) {
+ fESD = new AliESDEvent();
+ }