ROOT logo
/**************************************************************************
 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 *                                                                        *
 * Author: The ALICE Off-line Project.                                    *
 * Contributors are mentioned in the code where appropriate.              *
 *                                                                        *
 * Permission to use, copy, modify and distribute this software and its   *
 * documentation strictly for non-commercial purposes is hereby granted   *
 * without fee, provided that the above copyright notice appears in all   *
 * copies and that both the copyright notice and this permission notice   *
 * appear in the supporting documentation. The authors make no claims     *
 * about the suitability of this software for any purpose. It is          *
 * provided "as is" without express or implied warranty.                  *
 **************************************************************************/

/* $Id$ */

///////////////////////////////////////////////////////////////////////////////
///
/// This is a class for reading raw data from a date file or event.
///
/// The AliRawReaderDate is constructed either with a pointer to a
/// date event or with a file name and an event number.
///
///////////////////////////////////////////////////////////////////////////////

#include "AliRawReaderDate.h"
#include "event.h"

ClassImp(AliRawReaderDate)


AliRawReaderDate::AliRawReaderDate(void* event, Bool_t owner) :
  fFile(NULL),
  fEvent(NULL),
  fSubEvent(NULL),
  fEquipment(NULL),
  fPosition(NULL),
  fEnd(NULL),
  fOwner(owner)
{
// create an object to read digits from the given date event

  fEvent = (eventHeaderStruct*) event;
}

AliRawReaderDate::AliRawReaderDate(const char* fileName, Int_t eventNumber) :
  fFile(NULL),
  fEvent(NULL),
  fSubEvent(NULL),
  fEquipment(NULL),
  fPosition(NULL),
  fEnd(NULL),
  fOwner(kTRUE)
{
// create an object to read digits from the given date event

  fFile = fopen(fileName, "rb");
  if (!fFile) {
    Error("AliRawReaderDate", "could not open file %s", fileName);
    fIsValid = kFALSE;
    return;
  }
  if (eventNumber < 0) return;

  eventHeaderStruct header;
  UInt_t headerSize = sizeof(eventHeaderStruct);
  while (fread(&header, 1, headerSize, fFile) == headerSize) {
    if (eventNumber == 0) {
      UChar_t* buffer = new UChar_t[header.eventSize];
      fseek(fFile, -(long)headerSize, SEEK_CUR);
      if (fread(buffer, 1, header.eventSize, fFile) != header.eventSize) break;
      fEvent = (eventHeaderStruct*) buffer;
      break;
    }
    fseek(fFile, header.eventSize-headerSize, SEEK_CUR);
    eventNumber--;
  }

}

AliRawReaderDate::~AliRawReaderDate()
{
// destructor

  if (fEvent && fOwner) delete[] fEvent;
  if (fFile) {
    fclose(fFile);
  }
}


UInt_t AliRawReaderDate::GetType() const
{
// get the type from the event header

  if (!fEvent) return 0;
  return fEvent->eventType;
}

UInt_t AliRawReaderDate::GetRunNumber() const
{
// get the run number from the event header

  if (!fEvent) return 0;
  return fEvent->eventRunNb;
}

const UInt_t* AliRawReaderDate::GetEventId() const
{
// get the event id from the event header

  if (!fEvent) return NULL;
  return fEvent->eventId;
}

const UInt_t* AliRawReaderDate::GetTriggerPattern() const
{
// get the trigger pattern from the event header

  if (!fEvent) return NULL;
  return fEvent->eventTriggerPattern;
}

const UInt_t* AliRawReaderDate::GetDetectorPattern() const
{
// get the detector pattern from the event header

  if (!fEvent) return NULL;
  return fEvent->eventDetectorPattern;
}

const UInt_t* AliRawReaderDate::GetAttributes() const
{
// get the type attributes from the event header

  if (!fEvent) return NULL;
  return fEvent->eventTypeAttribute;
}

const UInt_t* AliRawReaderDate::GetSubEventAttributes() const
{
// get the type attributes from the sub event header

  if (!fSubEvent) return NULL;
  return fSubEvent->eventTypeAttribute;
}

UInt_t AliRawReaderDate::GetLDCId() const
{
// get the LDC Id from the event header

  if (!fSubEvent) return 0;
  return fSubEvent->eventLdcId;
}

UInt_t AliRawReaderDate::GetGDCId() const
{
// get the GDC Id from the event header

  if (!fEvent) return 0;
  return fEvent->eventGdcId;
}

UInt_t AliRawReaderDate::GetTimestamp() const
{
// get the timestamp from the event header

  if (!fEvent) return 0;
  return fEvent->eventTimestamp;
}

Int_t AliRawReaderDate::GetEquipmentSize() const
{
// get the size of the equipment (including the header)

  if (!fEquipment) return 0;
  if (fSubEvent->eventVersion <= 0x00030001) {
    return fEquipment->equipmentSize + sizeof(equipmentHeaderStruct);
  } else {
    return fEquipment->equipmentSize;
  }
}

Int_t AliRawReaderDate::GetEquipmentType() const
{
// get the type from the equipment header

  if (!fEquipment) return -1;
  return fEquipment->equipmentType;
}

Int_t AliRawReaderDate::GetEquipmentId() const
{
// get the ID from the equipment header

  if (!fEquipment) return -1;
  return fEquipment->equipmentId;
}

const UInt_t* AliRawReaderDate::GetEquipmentAttributes() const
{
// get the attributes from the equipment header

  if (!fEquipment) return NULL;
  return fEquipment->equipmentTypeAttribute;
}

Int_t AliRawReaderDate::GetEquipmentElementSize() const
{
// get the basic element size from the equipment header

  if (!fEquipment) return 0;
  return fEquipment->equipmentBasicElementSize;
}

Int_t AliRawReaderDate::GetEquipmentHeaderSize() const
{
  // Get the equipment header size
  // 28 bytes by default
  return sizeof(equipmentHeaderStruct);
}

Bool_t AliRawReaderDate::ReadHeader()
{
// read a data header at the current position
// returns kFALSE if the data header could not be read

  fErrorCode = 0;

  fHeader = NULL;
  if (!fEvent) return kFALSE;
  // check whether there are sub events
  if (fEvent->eventSize <= fEvent->eventHeadSize) return kFALSE;

  do {
    // skip payload (if event was not selected)
    if (fCount > 0) fPosition += fCount;

    // get the first or the next equipment if at the end of an equipment
    if (!fEquipment || (fPosition >= fEnd)) {
      fEquipment = NULL;

      // get the first or the next sub event if at the end of a sub event
      if (!fSubEvent || 
	  (fPosition >= ((UChar_t*)fSubEvent) + fSubEvent->eventSize)) {

	// check for end of event data
	if (fPosition >= ((UChar_t*)fEvent)+fEvent->eventSize) return kFALSE;
        if (!TEST_SYSTEM_ATTRIBUTE(fEvent->eventTypeAttribute, 
                                   ATTR_SUPER_EVENT)) {
	  fSubEvent = fEvent;   // no super event
	} else if (fSubEvent) {
	  fSubEvent = (eventHeaderStruct*) (((UChar_t*)fSubEvent) + 
					    fSubEvent->eventSize);
	} else {
	  fSubEvent = (eventHeaderStruct*) (((UChar_t*)fEvent) + 
					    fEvent->eventHeadSize);
	}

	// check the magic word of the sub event
	if (fSubEvent->eventMagic != EVENT_MAGIC_NUMBER) {
	  Error("ReadHeader", "wrong magic number in sub event!\n"
		" run: %d  event: %d %d  LDC: %d  GDC: %d\n", 
		fSubEvent->eventRunNb, 
		fSubEvent->eventId[0], fSubEvent->eventId[1],
		fSubEvent->eventLdcId, fSubEvent->eventGdcId);
	  fErrorCode = kErrMagic;
	  return kFALSE;
	}

	// continue if no data in the subevent
	if (fSubEvent->eventSize == fSubEvent->eventHeadSize) {
	  fPosition = fEnd = ((UChar_t*)fSubEvent) + fSubEvent->eventSize;
	  fCount = 0;
	  continue;
	}

	fEquipment = (equipmentHeaderStruct*)
	  (((UChar_t*)fSubEvent) + fSubEvent->eventHeadSize);

      } else {
	fEquipment = (equipmentHeaderStruct*) fEnd;
      }

      fCount = 0;
      fPosition = ((UChar_t*)fEquipment) + sizeof(equipmentHeaderStruct);
      if (fSubEvent->eventVersion <= 0x00030001) {
        fEnd = fPosition + fEquipment->equipmentSize;
      } else {
        fEnd = ((UChar_t*)fEquipment) + fEquipment->equipmentSize;
      }
    }

    // continue with the next sub event if no data left in the payload
    if (fPosition >= fEnd) continue;

    if (fRequireHeader) {
      // check that there are enough bytes left for the data header
      if (fPosition + sizeof(AliRawDataHeader) > fEnd) {
	Error("ReadHeader", "could not read data header data!");
	Warning("ReadHeader", "skipping %ld bytes\n"
		" run: %d  event: %d %d  LDC: %d  GDC: %d\n", 
		fEnd - fPosition, fSubEvent->eventRunNb, 
		fSubEvent->eventId[0], fSubEvent->eventId[1],
		fSubEvent->eventLdcId, fSubEvent->eventGdcId);
	fCount = 0;
	fPosition = fEnd;
	fErrorCode = kErrNoDataHeader;
	continue;
      }

      // "read" the data header
      fHeader = (AliRawDataHeader*) fPosition;
      // Now check the version of the header
      UChar_t version = 2;
      if (fHeader) version=fHeader->GetVersion();

      if (version==2) {
	if ((fPosition + fHeader->fSize) != fEnd) {
	  if ((fHeader->fSize != 0xFFFFFFFF) &&
	      (fEquipment->equipmentId != 4352))
	    Warning("ReadHeader",
		    "raw data size found in the header is wrong (%d != %ld)! Using the equipment size instead !",
		    fHeader->fSize, fEnd - fPosition);
	  fHeader->fSize = fEnd - fPosition;
	}
	fPosition += sizeof(AliRawDataHeader);
	fHeaderV3 = 0;
      } else if (version==3) {
	fHeaderV3 = (AliRawDataHeaderV3*) fPosition;
	if ((fPosition + fHeaderV3->fSize) != fEnd) {
	  if ((fHeaderV3->fSize != 0xFFFFFFFF) &&
	      (fEquipment->equipmentId != 4352))
	    Warning("ReadHeader",
		    "raw data size found in the header is wrong (%d != %ld)! Using the equipment size instead !",
		    fHeaderV3->fSize, fEnd - fPosition);
	  fHeaderV3->fSize = fEnd - fPosition;
	}
	fPosition += sizeof(AliRawDataHeaderV3);
	fHeader = 0;
      }
    }

    if (fHeader && (fHeader->fSize != 0xFFFFFFFF)) {
      fCount = fHeader->fSize - sizeof(AliRawDataHeader);

      // check consistency of data size in the header and in the sub event
      if (fPosition + fCount > fEnd) {
	Error("ReadHeader", "size in data header exceeds event size!");
	Warning("ReadHeader", "skipping %ld bytes\n"
		" run: %d  event: %d %d  LDC: %d  GDC: %d\n", 
		fEnd - fPosition, fSubEvent->eventRunNb, 
		fSubEvent->eventId[0], fSubEvent->eventId[1],
		fSubEvent->eventLdcId, fSubEvent->eventGdcId);
	fCount = 0;
	fPosition = fEnd;
	fErrorCode = kErrSize;
	continue;
      }

    } else if (fHeaderV3 && (fHeaderV3->fSize != 0xFFFFFFFF)) {
      fCount = fHeaderV3->fSize - sizeof(AliRawDataHeaderV3);

      // check consistency of data size in the header and in the sub event
      if (fPosition + fCount > fEnd) {
	Error("ReadHeader", "size in data header exceeds event size!");
	Warning("ReadHeader", "skipping %ld bytes\n"
		" run: %d  event: %d %d  LDC: %d  GDC: %d\n", 
		fEnd - fPosition, fSubEvent->eventRunNb, 
		fSubEvent->eventId[0], fSubEvent->eventId[1],
		fSubEvent->eventLdcId, fSubEvent->eventGdcId);
	fCount = 0;
	fPosition = fEnd;
	fErrorCode = kErrSize;
	continue;
      }

    } else {
      fCount = fEnd - fPosition;
    }

  } while (!fEquipment || !IsSelected());

  return kTRUE;
}

Bool_t AliRawReaderDate::ReadNextData(UChar_t*& data)
{
// reads the next payload at the current position
// returns kFALSE if the data could not be read

  fErrorCode = 0;
  while (fCount == 0) {
    if (!ReadHeader()) return kFALSE;
  }
  data = fPosition;
  fPosition += fCount;  
  fCount = 0;
  return kTRUE;
}

Bool_t AliRawReaderDate::ReadNext(UChar_t* data, Int_t size)
{
// reads the next block of data at the current position
// returns kFALSE if the data could not be read

  fErrorCode = 0;
  if (fPosition + size > fEnd) {
    Error("ReadNext", "could not read data!");
    fErrorCode = kErrOutOfBounds;
    return kFALSE;
  }
  memcpy(data, fPosition, size);
  fPosition += size;
  fCount -= size;
  return kTRUE;
}


Bool_t AliRawReaderDate::Reset()
{
// reset the current position to the beginning of the event

  fSubEvent = NULL;
  fEquipment = NULL;
  fCount = 0;
  fPosition = fEnd = NULL;
  fHeader=NULL;
  fHeaderV3=NULL;
  return kTRUE;
}


Bool_t AliRawReaderDate::NextEvent()
{
// go to the next event in the date file

  if (!fFile) {
    if (fEventNumber < 0 && fEvent) {
      fEventNumber++;
      return kTRUE;
    }
    else
      return kFALSE;
  }

  Reset();
  eventHeaderStruct header;
  UInt_t headerSize = sizeof(eventHeaderStruct);
  if (fEvent) delete[] fEvent;
  fEvent = &header;

  while (fread(&header, 1, headerSize, fFile) == headerSize) {
    if (!IsEventSelected()) {
      fseek(fFile, header.eventSize-headerSize, SEEK_CUR);
      continue;
    }
    UChar_t* buffer = new UChar_t[header.eventSize];
    fseek(fFile, -(long)headerSize, SEEK_CUR);
    if (fread(buffer, 1, header.eventSize, fFile) != header.eventSize) {
      Error("NextEvent", "could not read event from file");
      delete[] buffer;
      break;
    }
    fEvent = (eventHeaderStruct*) buffer;
    fEventNumber++;
    return kTRUE;
  };

  fEvent = NULL;

  return kFALSE;
}

Bool_t AliRawReaderDate::RewindEvents()
{
// go back to the beginning of the date file

  if (fFile)
    fseek(fFile, 0, SEEK_SET);

  fEventNumber = -1;
  return Reset();
}


Int_t AliRawReaderDate::CheckData() const
{
// check the consistency of the data

  if (!fEvent) return 0;
  // check whether there are sub events
  if (fEvent->eventSize <= fEvent->eventHeadSize) return 0;

  eventHeaderStruct* subEvent = NULL;
  UChar_t* position = 0;
  UChar_t* end = 0;
  Int_t result = 0;

  while (kTRUE) {
    // get the first or the next sub event if at the end of a sub event
    if (!subEvent || (position >= end)) {

      // check for end of event data
      if (position >= ((UChar_t*)fEvent)+fEvent->eventSize) return result;
      if (!TEST_SYSTEM_ATTRIBUTE(fEvent->eventTypeAttribute, 
                                 ATTR_SUPER_EVENT)) {
        subEvent = fEvent;   // no super event
      } else if (subEvent) {
	subEvent = (eventHeaderStruct*) (((UChar_t*)subEvent) + 
					 subEvent->eventSize);
      } else {
	subEvent = (eventHeaderStruct*) (((UChar_t*)fEvent) + 
					 fEvent->eventHeadSize);
      }

      // check the magic word of the sub event
      if (subEvent->eventMagic != EVENT_MAGIC_NUMBER) {
	result |= kErrMagic;
	return result;
      }

      position = ((UChar_t*)subEvent) + subEvent->eventHeadSize + 
	sizeof(equipmentHeaderStruct);
      end = ((UChar_t*)subEvent) + subEvent->eventSize;
    }

    // continue with the next sub event if no data left in the payload
    if (position >= end) continue;

    if (fRequireHeader) {
    // check that there are enough bytes left for the data header
      if (position + sizeof(AliRawDataHeader) > end) {
	result |= kErrNoDataHeader;
	position = end;
	continue;
      }

      // Here we have to check if we have header v2 or v3
      // check consistency of data size in the data header and in the sub event
      AliRawDataHeader* header = (AliRawDataHeader*) position;
      UChar_t version = header->GetVersion();
      if (version==2) {
	if ((position + header->fSize) != end) {
	  if (header->fSize != 0xFFFFFFFF)
	    Warning("CheckData",
		    "raw data size found in the header V2 is wrong (%d != %ld)! Using the equipment size instead !",
		    header->fSize, end - position);
	  header->fSize = end - position;
	  result |= kErrSize;
	}
      }
      else if (version==3) {
	AliRawDataHeaderV3 * headerV3 =  (AliRawDataHeaderV3*) position;
	if ((position + headerV3->fSize) != end) {
	  if (headerV3->fSize != 0xFFFFFFFF)
	    Warning("CheckData",
		    "raw data size found in the header V3 is wrong (%d != %ld)! Using the equipment size instead !",
		    headerV3->fSize, end - position);
	  headerV3->fSize = end - position;
	  result |= kErrSize;
	}
      }

    }
    position = end;
  };

  return 0;
}

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)

  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);
    }
  }
  return NULL;
}
 AliRawReaderDate.cxx:1
 AliRawReaderDate.cxx:2
 AliRawReaderDate.cxx:3
 AliRawReaderDate.cxx:4
 AliRawReaderDate.cxx:5
 AliRawReaderDate.cxx:6
 AliRawReaderDate.cxx:7
 AliRawReaderDate.cxx:8
 AliRawReaderDate.cxx:9
 AliRawReaderDate.cxx:10
 AliRawReaderDate.cxx:11
 AliRawReaderDate.cxx:12
 AliRawReaderDate.cxx:13
 AliRawReaderDate.cxx:14
 AliRawReaderDate.cxx:15
 AliRawReaderDate.cxx:16
 AliRawReaderDate.cxx:17
 AliRawReaderDate.cxx:18
 AliRawReaderDate.cxx:19
 AliRawReaderDate.cxx:20
 AliRawReaderDate.cxx:21
 AliRawReaderDate.cxx:22
 AliRawReaderDate.cxx:23
 AliRawReaderDate.cxx:24
 AliRawReaderDate.cxx:25
 AliRawReaderDate.cxx:26
 AliRawReaderDate.cxx:27
 AliRawReaderDate.cxx:28
 AliRawReaderDate.cxx:29
 AliRawReaderDate.cxx:30
 AliRawReaderDate.cxx:31
 AliRawReaderDate.cxx:32
 AliRawReaderDate.cxx:33
 AliRawReaderDate.cxx:34
 AliRawReaderDate.cxx:35
 AliRawReaderDate.cxx:36
 AliRawReaderDate.cxx:37
 AliRawReaderDate.cxx:38
 AliRawReaderDate.cxx:39
 AliRawReaderDate.cxx:40
 AliRawReaderDate.cxx:41
 AliRawReaderDate.cxx:42
 AliRawReaderDate.cxx:43
 AliRawReaderDate.cxx:44
 AliRawReaderDate.cxx:45
 AliRawReaderDate.cxx:46
 AliRawReaderDate.cxx:47
 AliRawReaderDate.cxx:48
 AliRawReaderDate.cxx:49
 AliRawReaderDate.cxx:50
 AliRawReaderDate.cxx:51
 AliRawReaderDate.cxx:52
 AliRawReaderDate.cxx:53
 AliRawReaderDate.cxx:54
 AliRawReaderDate.cxx:55
 AliRawReaderDate.cxx:56
 AliRawReaderDate.cxx:57
 AliRawReaderDate.cxx:58
 AliRawReaderDate.cxx:59
 AliRawReaderDate.cxx:60
 AliRawReaderDate.cxx:61
 AliRawReaderDate.cxx:62
 AliRawReaderDate.cxx:63
 AliRawReaderDate.cxx:64
 AliRawReaderDate.cxx:65
 AliRawReaderDate.cxx:66
 AliRawReaderDate.cxx:67
 AliRawReaderDate.cxx:68
 AliRawReaderDate.cxx:69
 AliRawReaderDate.cxx:70
 AliRawReaderDate.cxx:71
 AliRawReaderDate.cxx:72
 AliRawReaderDate.cxx:73
 AliRawReaderDate.cxx:74
 AliRawReaderDate.cxx:75
 AliRawReaderDate.cxx:76
 AliRawReaderDate.cxx:77
 AliRawReaderDate.cxx:78
 AliRawReaderDate.cxx:79
 AliRawReaderDate.cxx:80
 AliRawReaderDate.cxx:81
 AliRawReaderDate.cxx:82
 AliRawReaderDate.cxx:83
 AliRawReaderDate.cxx:84
 AliRawReaderDate.cxx:85
 AliRawReaderDate.cxx:86
 AliRawReaderDate.cxx:87
 AliRawReaderDate.cxx:88
 AliRawReaderDate.cxx:89
 AliRawReaderDate.cxx:90
 AliRawReaderDate.cxx:91
 AliRawReaderDate.cxx:92
 AliRawReaderDate.cxx:93
 AliRawReaderDate.cxx:94
 AliRawReaderDate.cxx:95
 AliRawReaderDate.cxx:96
 AliRawReaderDate.cxx:97
 AliRawReaderDate.cxx:98
 AliRawReaderDate.cxx:99
 AliRawReaderDate.cxx:100
 AliRawReaderDate.cxx:101
 AliRawReaderDate.cxx:102
 AliRawReaderDate.cxx:103
 AliRawReaderDate.cxx:104
 AliRawReaderDate.cxx:105
 AliRawReaderDate.cxx:106
 AliRawReaderDate.cxx:107
 AliRawReaderDate.cxx:108
 AliRawReaderDate.cxx:109
 AliRawReaderDate.cxx:110
 AliRawReaderDate.cxx:111
 AliRawReaderDate.cxx:112
 AliRawReaderDate.cxx:113
 AliRawReaderDate.cxx:114
 AliRawReaderDate.cxx:115
 AliRawReaderDate.cxx:116
 AliRawReaderDate.cxx:117
 AliRawReaderDate.cxx:118
 AliRawReaderDate.cxx:119
 AliRawReaderDate.cxx:120
 AliRawReaderDate.cxx:121
 AliRawReaderDate.cxx:122
 AliRawReaderDate.cxx:123
 AliRawReaderDate.cxx:124
 AliRawReaderDate.cxx:125
 AliRawReaderDate.cxx:126
 AliRawReaderDate.cxx:127
 AliRawReaderDate.cxx:128
 AliRawReaderDate.cxx:129
 AliRawReaderDate.cxx:130
 AliRawReaderDate.cxx:131
 AliRawReaderDate.cxx:132
 AliRawReaderDate.cxx:133
 AliRawReaderDate.cxx:134
 AliRawReaderDate.cxx:135
 AliRawReaderDate.cxx:136
 AliRawReaderDate.cxx:137
 AliRawReaderDate.cxx:138
 AliRawReaderDate.cxx:139
 AliRawReaderDate.cxx:140
 AliRawReaderDate.cxx:141
 AliRawReaderDate.cxx:142
 AliRawReaderDate.cxx:143
 AliRawReaderDate.cxx:144
 AliRawReaderDate.cxx:145
 AliRawReaderDate.cxx:146
 AliRawReaderDate.cxx:147
 AliRawReaderDate.cxx:148
 AliRawReaderDate.cxx:149
 AliRawReaderDate.cxx:150
 AliRawReaderDate.cxx:151
 AliRawReaderDate.cxx:152
 AliRawReaderDate.cxx:153
 AliRawReaderDate.cxx:154
 AliRawReaderDate.cxx:155
 AliRawReaderDate.cxx:156
 AliRawReaderDate.cxx:157
 AliRawReaderDate.cxx:158
 AliRawReaderDate.cxx:159
 AliRawReaderDate.cxx:160
 AliRawReaderDate.cxx:161
 AliRawReaderDate.cxx:162
 AliRawReaderDate.cxx:163
 AliRawReaderDate.cxx:164
 AliRawReaderDate.cxx:165
 AliRawReaderDate.cxx:166
 AliRawReaderDate.cxx:167
 AliRawReaderDate.cxx:168
 AliRawReaderDate.cxx:169
 AliRawReaderDate.cxx:170
 AliRawReaderDate.cxx:171
 AliRawReaderDate.cxx:172
 AliRawReaderDate.cxx:173
 AliRawReaderDate.cxx:174
 AliRawReaderDate.cxx:175
 AliRawReaderDate.cxx:176
 AliRawReaderDate.cxx:177
 AliRawReaderDate.cxx:178
 AliRawReaderDate.cxx:179
 AliRawReaderDate.cxx:180
 AliRawReaderDate.cxx:181
 AliRawReaderDate.cxx:182
 AliRawReaderDate.cxx:183
 AliRawReaderDate.cxx:184
 AliRawReaderDate.cxx:185
 AliRawReaderDate.cxx:186
 AliRawReaderDate.cxx:187
 AliRawReaderDate.cxx:188
 AliRawReaderDate.cxx:189
 AliRawReaderDate.cxx:190
 AliRawReaderDate.cxx:191
 AliRawReaderDate.cxx:192
 AliRawReaderDate.cxx:193
 AliRawReaderDate.cxx:194
 AliRawReaderDate.cxx:195
 AliRawReaderDate.cxx:196
 AliRawReaderDate.cxx:197
 AliRawReaderDate.cxx:198
 AliRawReaderDate.cxx:199
 AliRawReaderDate.cxx:200
 AliRawReaderDate.cxx:201
 AliRawReaderDate.cxx:202
 AliRawReaderDate.cxx:203
 AliRawReaderDate.cxx:204
 AliRawReaderDate.cxx:205
 AliRawReaderDate.cxx:206
 AliRawReaderDate.cxx:207
 AliRawReaderDate.cxx:208
 AliRawReaderDate.cxx:209
 AliRawReaderDate.cxx:210
 AliRawReaderDate.cxx:211
 AliRawReaderDate.cxx:212
 AliRawReaderDate.cxx:213
 AliRawReaderDate.cxx:214
 AliRawReaderDate.cxx:215
 AliRawReaderDate.cxx:216
 AliRawReaderDate.cxx:217
 AliRawReaderDate.cxx:218
 AliRawReaderDate.cxx:219
 AliRawReaderDate.cxx:220
 AliRawReaderDate.cxx:221
 AliRawReaderDate.cxx:222
 AliRawReaderDate.cxx:223
 AliRawReaderDate.cxx:224
 AliRawReaderDate.cxx:225
 AliRawReaderDate.cxx:226
 AliRawReaderDate.cxx:227
 AliRawReaderDate.cxx:228
 AliRawReaderDate.cxx:229
 AliRawReaderDate.cxx:230
 AliRawReaderDate.cxx:231
 AliRawReaderDate.cxx:232
 AliRawReaderDate.cxx:233
 AliRawReaderDate.cxx:234
 AliRawReaderDate.cxx:235
 AliRawReaderDate.cxx:236
 AliRawReaderDate.cxx:237
 AliRawReaderDate.cxx:238
 AliRawReaderDate.cxx:239
 AliRawReaderDate.cxx:240
 AliRawReaderDate.cxx:241
 AliRawReaderDate.cxx:242
 AliRawReaderDate.cxx:243
 AliRawReaderDate.cxx:244
 AliRawReaderDate.cxx:245
 AliRawReaderDate.cxx:246
 AliRawReaderDate.cxx:247
 AliRawReaderDate.cxx:248
 AliRawReaderDate.cxx:249
 AliRawReaderDate.cxx:250
 AliRawReaderDate.cxx:251
 AliRawReaderDate.cxx:252
 AliRawReaderDate.cxx:253
 AliRawReaderDate.cxx:254
 AliRawReaderDate.cxx:255
 AliRawReaderDate.cxx:256
 AliRawReaderDate.cxx:257
 AliRawReaderDate.cxx:258
 AliRawReaderDate.cxx:259
 AliRawReaderDate.cxx:260
 AliRawReaderDate.cxx:261
 AliRawReaderDate.cxx:262
 AliRawReaderDate.cxx:263
 AliRawReaderDate.cxx:264
 AliRawReaderDate.cxx:265
 AliRawReaderDate.cxx:266
 AliRawReaderDate.cxx:267
 AliRawReaderDate.cxx:268
 AliRawReaderDate.cxx:269
 AliRawReaderDate.cxx:270
 AliRawReaderDate.cxx:271
 AliRawReaderDate.cxx:272
 AliRawReaderDate.cxx:273
 AliRawReaderDate.cxx:274
 AliRawReaderDate.cxx:275
 AliRawReaderDate.cxx:276
 AliRawReaderDate.cxx:277
 AliRawReaderDate.cxx:278
 AliRawReaderDate.cxx:279
 AliRawReaderDate.cxx:280
 AliRawReaderDate.cxx:281
 AliRawReaderDate.cxx:282
 AliRawReaderDate.cxx:283
 AliRawReaderDate.cxx:284
 AliRawReaderDate.cxx:285
 AliRawReaderDate.cxx:286
 AliRawReaderDate.cxx:287
 AliRawReaderDate.cxx:288
 AliRawReaderDate.cxx:289
 AliRawReaderDate.cxx:290
 AliRawReaderDate.cxx:291
 AliRawReaderDate.cxx:292
 AliRawReaderDate.cxx:293
 AliRawReaderDate.cxx:294
 AliRawReaderDate.cxx:295
 AliRawReaderDate.cxx:296
 AliRawReaderDate.cxx:297
 AliRawReaderDate.cxx:298
 AliRawReaderDate.cxx:299
 AliRawReaderDate.cxx:300
 AliRawReaderDate.cxx:301
 AliRawReaderDate.cxx:302
 AliRawReaderDate.cxx:303
 AliRawReaderDate.cxx:304
 AliRawReaderDate.cxx:305
 AliRawReaderDate.cxx:306
 AliRawReaderDate.cxx:307
 AliRawReaderDate.cxx:308
 AliRawReaderDate.cxx:309
 AliRawReaderDate.cxx:310
 AliRawReaderDate.cxx:311
 AliRawReaderDate.cxx:312
 AliRawReaderDate.cxx:313
 AliRawReaderDate.cxx:314
 AliRawReaderDate.cxx:315
 AliRawReaderDate.cxx:316
 AliRawReaderDate.cxx:317
 AliRawReaderDate.cxx:318
 AliRawReaderDate.cxx:319
 AliRawReaderDate.cxx:320
 AliRawReaderDate.cxx:321
 AliRawReaderDate.cxx:322
 AliRawReaderDate.cxx:323
 AliRawReaderDate.cxx:324
 AliRawReaderDate.cxx:325
 AliRawReaderDate.cxx:326
 AliRawReaderDate.cxx:327
 AliRawReaderDate.cxx:328
 AliRawReaderDate.cxx:329
 AliRawReaderDate.cxx:330
 AliRawReaderDate.cxx:331
 AliRawReaderDate.cxx:332
 AliRawReaderDate.cxx:333
 AliRawReaderDate.cxx:334
 AliRawReaderDate.cxx:335
 AliRawReaderDate.cxx:336
 AliRawReaderDate.cxx:337
 AliRawReaderDate.cxx:338
 AliRawReaderDate.cxx:339
 AliRawReaderDate.cxx:340
 AliRawReaderDate.cxx:341
 AliRawReaderDate.cxx:342
 AliRawReaderDate.cxx:343
 AliRawReaderDate.cxx:344
 AliRawReaderDate.cxx:345
 AliRawReaderDate.cxx:346
 AliRawReaderDate.cxx:347
 AliRawReaderDate.cxx:348
 AliRawReaderDate.cxx:349
 AliRawReaderDate.cxx:350
 AliRawReaderDate.cxx:351
 AliRawReaderDate.cxx:352
 AliRawReaderDate.cxx:353
 AliRawReaderDate.cxx:354
 AliRawReaderDate.cxx:355
 AliRawReaderDate.cxx:356
 AliRawReaderDate.cxx:357
 AliRawReaderDate.cxx:358
 AliRawReaderDate.cxx:359
 AliRawReaderDate.cxx:360
 AliRawReaderDate.cxx:361
 AliRawReaderDate.cxx:362
 AliRawReaderDate.cxx:363
 AliRawReaderDate.cxx:364
 AliRawReaderDate.cxx:365
 AliRawReaderDate.cxx:366
 AliRawReaderDate.cxx:367
 AliRawReaderDate.cxx:368
 AliRawReaderDate.cxx:369
 AliRawReaderDate.cxx:370
 AliRawReaderDate.cxx:371
 AliRawReaderDate.cxx:372
 AliRawReaderDate.cxx:373
 AliRawReaderDate.cxx:374
 AliRawReaderDate.cxx:375
 AliRawReaderDate.cxx:376
 AliRawReaderDate.cxx:377
 AliRawReaderDate.cxx:378
 AliRawReaderDate.cxx:379
 AliRawReaderDate.cxx:380
 AliRawReaderDate.cxx:381
 AliRawReaderDate.cxx:382
 AliRawReaderDate.cxx:383
 AliRawReaderDate.cxx:384
 AliRawReaderDate.cxx:385
 AliRawReaderDate.cxx:386
 AliRawReaderDate.cxx:387
 AliRawReaderDate.cxx:388
 AliRawReaderDate.cxx:389
 AliRawReaderDate.cxx:390
 AliRawReaderDate.cxx:391
 AliRawReaderDate.cxx:392
 AliRawReaderDate.cxx:393
 AliRawReaderDate.cxx:394
 AliRawReaderDate.cxx:395
 AliRawReaderDate.cxx:396
 AliRawReaderDate.cxx:397
 AliRawReaderDate.cxx:398
 AliRawReaderDate.cxx:399
 AliRawReaderDate.cxx:400
 AliRawReaderDate.cxx:401
 AliRawReaderDate.cxx:402
 AliRawReaderDate.cxx:403
 AliRawReaderDate.cxx:404
 AliRawReaderDate.cxx:405
 AliRawReaderDate.cxx:406
 AliRawReaderDate.cxx:407
 AliRawReaderDate.cxx:408
 AliRawReaderDate.cxx:409
 AliRawReaderDate.cxx:410
 AliRawReaderDate.cxx:411
 AliRawReaderDate.cxx:412
 AliRawReaderDate.cxx:413
 AliRawReaderDate.cxx:414
 AliRawReaderDate.cxx:415
 AliRawReaderDate.cxx:416
 AliRawReaderDate.cxx:417
 AliRawReaderDate.cxx:418
 AliRawReaderDate.cxx:419
 AliRawReaderDate.cxx:420
 AliRawReaderDate.cxx:421
 AliRawReaderDate.cxx:422
 AliRawReaderDate.cxx:423
 AliRawReaderDate.cxx:424
 AliRawReaderDate.cxx:425
 AliRawReaderDate.cxx:426
 AliRawReaderDate.cxx:427
 AliRawReaderDate.cxx:428
 AliRawReaderDate.cxx:429
 AliRawReaderDate.cxx:430
 AliRawReaderDate.cxx:431
 AliRawReaderDate.cxx:432
 AliRawReaderDate.cxx:433
 AliRawReaderDate.cxx:434
 AliRawReaderDate.cxx:435
 AliRawReaderDate.cxx:436
 AliRawReaderDate.cxx:437
 AliRawReaderDate.cxx:438
 AliRawReaderDate.cxx:439
 AliRawReaderDate.cxx:440
 AliRawReaderDate.cxx:441
 AliRawReaderDate.cxx:442
 AliRawReaderDate.cxx:443
 AliRawReaderDate.cxx:444
 AliRawReaderDate.cxx:445
 AliRawReaderDate.cxx:446
 AliRawReaderDate.cxx:447
 AliRawReaderDate.cxx:448
 AliRawReaderDate.cxx:449
 AliRawReaderDate.cxx:450
 AliRawReaderDate.cxx:451
 AliRawReaderDate.cxx:452
 AliRawReaderDate.cxx:453
 AliRawReaderDate.cxx:454
 AliRawReaderDate.cxx:455
 AliRawReaderDate.cxx:456
 AliRawReaderDate.cxx:457
 AliRawReaderDate.cxx:458
 AliRawReaderDate.cxx:459
 AliRawReaderDate.cxx:460
 AliRawReaderDate.cxx:461
 AliRawReaderDate.cxx:462
 AliRawReaderDate.cxx:463
 AliRawReaderDate.cxx:464
 AliRawReaderDate.cxx:465
 AliRawReaderDate.cxx:466
 AliRawReaderDate.cxx:467
 AliRawReaderDate.cxx:468
 AliRawReaderDate.cxx:469
 AliRawReaderDate.cxx:470
 AliRawReaderDate.cxx:471
 AliRawReaderDate.cxx:472
 AliRawReaderDate.cxx:473
 AliRawReaderDate.cxx:474
 AliRawReaderDate.cxx:475
 AliRawReaderDate.cxx:476
 AliRawReaderDate.cxx:477
 AliRawReaderDate.cxx:478
 AliRawReaderDate.cxx:479
 AliRawReaderDate.cxx:480
 AliRawReaderDate.cxx:481
 AliRawReaderDate.cxx:482
 AliRawReaderDate.cxx:483
 AliRawReaderDate.cxx:484
 AliRawReaderDate.cxx:485
 AliRawReaderDate.cxx:486
 AliRawReaderDate.cxx:487
 AliRawReaderDate.cxx:488
 AliRawReaderDate.cxx:489
 AliRawReaderDate.cxx:490
 AliRawReaderDate.cxx:491
 AliRawReaderDate.cxx:492
 AliRawReaderDate.cxx:493
 AliRawReaderDate.cxx:494
 AliRawReaderDate.cxx:495
 AliRawReaderDate.cxx:496
 AliRawReaderDate.cxx:497
 AliRawReaderDate.cxx:498
 AliRawReaderDate.cxx:499
 AliRawReaderDate.cxx:500
 AliRawReaderDate.cxx:501
 AliRawReaderDate.cxx:502
 AliRawReaderDate.cxx:503
 AliRawReaderDate.cxx:504
 AliRawReaderDate.cxx:505
 AliRawReaderDate.cxx:506
 AliRawReaderDate.cxx:507
 AliRawReaderDate.cxx:508
 AliRawReaderDate.cxx:509
 AliRawReaderDate.cxx:510
 AliRawReaderDate.cxx:511
 AliRawReaderDate.cxx:512
 AliRawReaderDate.cxx:513
 AliRawReaderDate.cxx:514
 AliRawReaderDate.cxx:515
 AliRawReaderDate.cxx:516
 AliRawReaderDate.cxx:517
 AliRawReaderDate.cxx:518
 AliRawReaderDate.cxx:519
 AliRawReaderDate.cxx:520
 AliRawReaderDate.cxx:521
 AliRawReaderDate.cxx:522
 AliRawReaderDate.cxx:523
 AliRawReaderDate.cxx:524
 AliRawReaderDate.cxx:525
 AliRawReaderDate.cxx:526
 AliRawReaderDate.cxx:527
 AliRawReaderDate.cxx:528
 AliRawReaderDate.cxx:529
 AliRawReaderDate.cxx:530
 AliRawReaderDate.cxx:531
 AliRawReaderDate.cxx:532
 AliRawReaderDate.cxx:533
 AliRawReaderDate.cxx:534
 AliRawReaderDate.cxx:535
 AliRawReaderDate.cxx:536
 AliRawReaderDate.cxx:537
 AliRawReaderDate.cxx:538
 AliRawReaderDate.cxx:539
 AliRawReaderDate.cxx:540
 AliRawReaderDate.cxx:541
 AliRawReaderDate.cxx:542
 AliRawReaderDate.cxx:543
 AliRawReaderDate.cxx:544
 AliRawReaderDate.cxx:545
 AliRawReaderDate.cxx:546
 AliRawReaderDate.cxx:547
 AliRawReaderDate.cxx:548
 AliRawReaderDate.cxx:549
 AliRawReaderDate.cxx:550
 AliRawReaderDate.cxx:551
 AliRawReaderDate.cxx:552
 AliRawReaderDate.cxx:553
 AliRawReaderDate.cxx:554
 AliRawReaderDate.cxx:555
 AliRawReaderDate.cxx:556
 AliRawReaderDate.cxx:557
 AliRawReaderDate.cxx:558
 AliRawReaderDate.cxx:559
 AliRawReaderDate.cxx:560
 AliRawReaderDate.cxx:561
 AliRawReaderDate.cxx:562
 AliRawReaderDate.cxx:563
 AliRawReaderDate.cxx:564
 AliRawReaderDate.cxx:565
 AliRawReaderDate.cxx:566
 AliRawReaderDate.cxx:567
 AliRawReaderDate.cxx:568
 AliRawReaderDate.cxx:569
 AliRawReaderDate.cxx:570
 AliRawReaderDate.cxx:571
 AliRawReaderDate.cxx:572
 AliRawReaderDate.cxx:573
 AliRawReaderDate.cxx:574
 AliRawReaderDate.cxx:575
 AliRawReaderDate.cxx:576
 AliRawReaderDate.cxx:577
 AliRawReaderDate.cxx:578
 AliRawReaderDate.cxx:579
 AliRawReaderDate.cxx:580
 AliRawReaderDate.cxx:581
 AliRawReaderDate.cxx:582
 AliRawReaderDate.cxx:583
 AliRawReaderDate.cxx:584
 AliRawReaderDate.cxx:585
 AliRawReaderDate.cxx:586
 AliRawReaderDate.cxx:587
 AliRawReaderDate.cxx:588
 AliRawReaderDate.cxx:589
 AliRawReaderDate.cxx:590