Double check if SM is running added. Some redundant output removed from SM
[u/mrichter/AliRoot.git] / RAW / altroFast.C
CommitLineData
e9e55052 1#if !defined(__CINT__) || defined(__MAKECINT__)
2 #include <TStopwatch.h>
3 #include "AliRawReaderRoot.h"
4 #include "AliRawReaderDate.h"
5 #include "AliAltroRawStreamFast.h"
6 #include "AliLog.h"
7#endif
8
9
10void altroFast(const char *fileName)
11{
12 // AliLog::SetGlobalLogLevel(AliLog::kFatal);
13
14 // AliRawReader *reader = new AliRawReaderRoot(fileName);
15 AliRawReader *reader = new AliRawReaderDate(fileName);
16 reader->Reset();
17
18 TStopwatch timer;
19 timer.Start();
20
21 AliAltroRawStreamFast* stream = new AliAltroRawStreamFast(reader);
22 stream->SelectRawData("TPC");
23
24 while (reader->NextEvent()) {
25
26 while (stream->NextDDL()) {
27
28 while (stream->NextChannel()) {
29
30 while (stream->NextBunch()) {
31 const UInt_t *adc = stream->GetSignals();
32 for(UInt_t i = stream->GetStartTimeBin(); i <= stream->GetEndTimeBin(); i++) {
33 // cout i - timebin, *adc - ADC signal, ...
34 adc++;
35 }
36 }
37 }
38 }
39 }
40
41 timer.Stop();
42 timer.Print();
43
44 delete stream;
45
46 return;
47}