AliRoot Core  3dc7879 (3dc7879)
MUONTimeRawStreamTracker.C File Reference

Macro for checking the timing (speed) performance of the tracker decoder. More...

#include "AliCodeTimer.h"
#include "AliMUONRawStreamTrackerHP.h"
#include "AliMUONDspHeader.h"
#include "AliMUONBlockHeader.h"
#include "AliMUONBusStruct.h"
#include "AliMUONDDLTracker.h"
#include "AliRawReader.h"
#include "AliRawReaderMemory.h"
#include "AliRawDataHeader.h"
#include "TStopwatch.h"
#include "TMath.h"
#include "Riostream.h"
Include dependency graph for MUONTimeRawStreamTracker.C:

Go to the source code of this file.

Classes

struct  AliBufferInfo
 
struct  AliDigitInfo
 

Functions

UInt_t LoadFiles (AliBufferInfo *&list, TString fileName="./", Int_t maxEvent=1000)
 
UInt_t CountMaxDigits (AliBufferInfo *list)
 
void ReleaseBuffers (AliBufferInfo *list)
 
Double_t TimeDecoderBusPatchIteration (AliBufferInfo *list, AliDigitInfo *buffer, UInt_t maxBufferSize)
 
Double_t TimeDecoderChannelIteration (AliBufferInfo *list, AliDigitInfo *buffer, UInt_t maxBufferSize, Bool_t skipParityErrors)
 
void MUONTimeRawStreamTrackerDumb (TString fileName)
 
void MUONTimeRawStreamTracker (TString fileName="./", Int_t maxEvent=1000)
 

Detailed Description

Macro for checking the timing (speed) performance of the tracker decoder.

Author
Artur Szostak artur.nosp@m.sz@i.nosp@m.afric.nosp@m.a.co.nosp@m.m

This macro is used to check the timing (speed) performance of the decoder for the tracker DDLs. It can be invoked as follows:

$ aliroot .L $ALICE_ROOT/MUON/macros/MUONTimeRawStreamTracker.C+ MUONTimeRawStreamTracker(filename, maxEvent);

where filename is the name of a file containing the raw data, or alternatively the directory containing rawX (X being an integer) paths with the raw DDL data. The maxEvent value is the maximum event to process (default set to 1000). Thus the macro will time the algorithm for all events in the range [0 .. maxEvent-1].

Definition in file MUONTimeRawStreamTracker.C.

Function Documentation

UInt_t CountMaxDigits ( AliBufferInfo list)

Counts the maximum number of digits possible in all the buffers.

Definition at line 142 of file MUONTimeRawStreamTracker.C.

Referenced by MUONTimeRawStreamTracker().

UInt_t LoadFiles ( AliBufferInfo *&  list,
TString  fileName = "./",
Int_t  maxEvent = 1000 
)

Reads in the DDL files into memory buffers as a linked list.

Definition at line 79 of file MUONTimeRawStreamTracker.C.

Referenced by MUONTimeRawStreamTracker().

void MUONTimeRawStreamTracker ( TString  fileName = "./",
Int_t  maxEvent = 1000 
)

Performs a timing of decoder

Definition at line 293 of file MUONTimeRawStreamTracker.C.

void MUONTimeRawStreamTrackerDumb ( TString  fileName)

Definition at line 261 of file MUONTimeRawStreamTracker.C.

void ReleaseBuffers ( AliBufferInfo list)

Deletes the memory allocated for the linked list of buffers.

Definition at line 157 of file MUONTimeRawStreamTracker.C.

Referenced by MUONTimeRawStreamTracker().

Double_t TimeDecoderBusPatchIteration ( AliBufferInfo list,
AliDigitInfo buffer,
UInt_t  maxBufferSize 
)

Perform a timing using the new decoder using the "next bus patch" iteration

Definition at line 172 of file MUONTimeRawStreamTracker.C.

Referenced by MUONTimeRawStreamTracker().

Double_t TimeDecoderChannelIteration ( AliBufferInfo list,
AliDigitInfo buffer,
UInt_t  maxBufferSize,
Bool_t  skipParityErrors 
)

Perform a timing using the "next channel" iteration

Definition at line 219 of file MUONTimeRawStreamTracker.C.

Referenced by MUONTimeRawStreamTracker().