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

Macro for checking the timing (speed) performace of the two different trigger decoders. More...

#include "AliCodeTimer.h"
#include "AliMUONRawStreamTrigger.h"
#include "AliMUONRawStreamTriggerHP.h"
#include "AliMUONDarcHeader.h"
#include "AliMUONRegHeader.h"
#include "AliMUONLocalStruct.h"
#include "AliMUONDDLTrigger.h"
#include "AliRawReader.h"
#include "AliRawReaderMemory.h"
#include "AliRawDataHeader.h"
#include "TStopwatch.h"
#include "TMath.h"
#include "Riostream.h"
Include dependency graph for MUONTimeRawStreamTrigger.C:

Go to the source code of this file.

Classes

struct  AliBufferInfo
 
struct  AliLocalStructInfo
 

Functions

UInt_t LoadFiles (AliBufferInfo *&list, TString fileName="./", Int_t maxEvent=1000)
 
UInt_t CountMaxStructs (AliBufferInfo *list)
 
void ReleaseBuffers (AliBufferInfo *list)
 
Double_t TimeUsingOldDecoder (AliBufferInfo *list, AliLocalStructInfo *buffer, UInt_t maxBufferSize)
 
Double_t TimeUsingNewDecoder (AliBufferInfo *list, AliLocalStructInfo *buffer, UInt_t maxBufferSize)
 
Double_t TimeUsingNewDecoderOldInterface (AliBufferInfo *list, AliLocalStructInfo *buffer, UInt_t maxBufferSize)
 
void Loop (const char *filename, Bool_t newDecoder)
 
void MUONTimeRawStreamTriggerDumb (TString fileName)
 
void MUONTimeRawStreamTrigger (TString fileName="./", Int_t maxEvent=1000)
 

Detailed Description

Macro for checking the timing (speed) performace of the two different trigger decoders.

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 existing offline decoder for the trigger DDLs and also for the new high performance decoder. It can be invoked as follows:

$ aliroot .L $ALICE_ROOT/MUON/macros/MUONTimeRawStreamTrigger.C+ MUONTimeRawStreamTrigger(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 MUONTimeRawStreamTrigger.C.

Function Documentation

UInt_t CountMaxStructs ( AliBufferInfo list)

Counts the maximum number of local structures possible

Definition at line 150 of file MUONTimeRawStreamTrigger.C.

Referenced by MUONTimeRawStreamTrigger().

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 87 of file MUONTimeRawStreamTrigger.C.

Referenced by MUONTimeRawStreamTrigger().

void Loop ( const char *  filename,
Bool_t  newDecoder 
)

Definition at line 307 of file MUONTimeRawStreamTrigger.C.

Referenced by MUONTimeRawStreamTriggerDumb().

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

Performs a timing of old and new decoders and reports this.

Definition at line 375 of file MUONTimeRawStreamTrigger.C.

void MUONTimeRawStreamTriggerDumb ( TString  fileName)

Definition at line 352 of file MUONTimeRawStreamTrigger.C.

void ReleaseBuffers ( AliBufferInfo list)

Deletes the memory allocated for the linked list of buffers.

Definition at line 165 of file MUONTimeRawStreamTrigger.C.

Referenced by MUONTimeRawStreamTrigger().

Double_t TimeUsingNewDecoder ( AliBufferInfo list,
AliLocalStructInfo buffer,
UInt_t  maxBufferSize 
)

Perform a timing using the new decoder.

Definition at line 220 of file MUONTimeRawStreamTrigger.C.

Referenced by MUONTimeRawStreamTrigger().

Double_t TimeUsingNewDecoderOldInterface ( AliBufferInfo list,
AliLocalStructInfo buffer,
UInt_t  maxBufferSize 
)

Perform a timing using the new decoder but the old Next() method as the interface.

Definition at line 266 of file MUONTimeRawStreamTrigger.C.

Referenced by MUONTimeRawStreamTrigger().

Double_t TimeUsingOldDecoder ( AliBufferInfo list,
AliLocalStructInfo buffer,
UInt_t  maxBufferSize 
)

Perform a timing using the old decoder.

Definition at line 180 of file MUONTimeRawStreamTrigger.C.

Referenced by MUONTimeRawStreamTrigger().