ROOT logo
#if !defined(__CINT__) || defined(__MAKECINT__)
  #include <TStopwatch.h>
  #include "AliRawReaderRoot.h"
  #include "AliRawReaderDate.h"
  #include "AliAltroRawStreamFast.h"
  #include "AliLog.h"
#endif


void altroFast(const char *fileName)
{
  //  AliLog::SetGlobalLogLevel(AliLog::kFatal);

  //  AliRawReader *reader = new AliRawReaderRoot(fileName);
  AliRawReader *reader = new AliRawReaderDate(fileName);
  reader->Reset();

  TStopwatch timer;
  timer.Start();

  AliAltroRawStreamFast* stream = new AliAltroRawStreamFast(reader);
  stream->SelectRawData("TPC");

  while (reader->NextEvent()) {

    while (stream->NextDDL()) {

      while (stream->NextChannel()) {

	while (stream->NextBunch()) {
	  const UInt_t *adc = stream->GetSignals();
	  for(UInt_t i = stream->GetStartTimeBin(); i <= stream->GetEndTimeBin(); i++) {
	    // cout i - timebin, *adc - ADC signal, ...
	    adc++;
	  }
	}
      }
    }
  }

  timer.Stop();
  timer.Print();

  delete stream;

  return;
}
 altroFast.C:1
 altroFast.C:2
 altroFast.C:3
 altroFast.C:4
 altroFast.C:5
 altroFast.C:6
 altroFast.C:7
 altroFast.C:8
 altroFast.C:9
 altroFast.C:10
 altroFast.C:11
 altroFast.C:12
 altroFast.C:13
 altroFast.C:14
 altroFast.C:15
 altroFast.C:16
 altroFast.C:17
 altroFast.C:18
 altroFast.C:19
 altroFast.C:20
 altroFast.C:21
 altroFast.C:22
 altroFast.C:23
 altroFast.C:24
 altroFast.C:25
 altroFast.C:26
 altroFast.C:27
 altroFast.C:28
 altroFast.C:29
 altroFast.C:30
 altroFast.C:31
 altroFast.C:32
 altroFast.C:33
 altroFast.C:34
 altroFast.C:35
 altroFast.C:36
 altroFast.C:37
 altroFast.C:38
 altroFast.C:39
 altroFast.C:40
 altroFast.C:41
 altroFast.C:42
 altroFast.C:43
 altroFast.C:44
 altroFast.C:45
 altroFast.C:46
 altroFast.C:47
 altroFast.C:48