+
+AliRawReader* AliRawReaderDate::CloneSingleEvent() const
+{
+ // Clones the current event and
+ // creates raw-reader for the cloned event
+ // Can be used in order to make asynchronious
+ // access to the current raw data within
+ // several threads (online event display/reco)
+
+#ifdef ALI_DATE
+ if (fEvent) {
+ UInt_t evSize = fEvent->eventSize;
+ if (evSize) {
+ UChar_t *newEvent = new UChar_t[evSize];
+ memcpy(newEvent,fEvent,evSize);
+ return new AliRawReaderDate((void *)newEvent,kTRUE);
+ }
+ }
+#else
+ Fatal("AliRawReaderDate", "this class was compiled without DATE");
+#endif
+ return NULL;
+}