/* $Id$ */
+//-----------------------------------------------------------------------------
/// \class AliMUONRawWriter
/// MUON Raw Data generaton in ALICE-MUON
/// Raw data structure could be found in Alice-note.
/// Using AliMpDDLStore::GetBusPatchId.
///
/// \author Ch. Finck, Feb. 07.
+//-----------------------------------------------------------------------------
#include "AliMUONRawWriter.h"
#include "AliMUONRegHeader.h"
#include "AliMUONVTriggerStore.h"
-#include "AliMUONStopwatchGroup.h"
-#include "AliMUONStopwatchGroupElement.h"
+#include "AliCodeTimer.h"
#include "AliMpDDLStore.h"
#include "AliMpDDL.h"
fDDLStore(AliMpDDLStore::Instance()),
fScalerEvent(kFALSE),
fHeader(),
- fTimers(new AliMUONStopwatchGroup),
fBufferSize((((43*AliMpConstants::ManuNofChannels() + 4)*5 + 10)*5 + 8)*2),
fBuffer(new Int_t [fBufferSize])
{
delete fDarcHeader;
delete fRegHeader;
delete fLocalStruct;
- AliInfo("Timers:");
- fTimers->Print();
- delete fTimers;
delete[] fBuffer;
}
{
/// convert digits of the current event to raw data
- AliMUONStopwatchGroupElement timer(fTimers,"MUON","AliMUONRawWriter::Digits2Raw");
+ AliCodeTimerAuto("")
Int_t idDDL;
Char_t name[255];
if ( digitStore )
{
- AliMUONStopwatchGroupElement timer(fTimers,"MUON","AliMUONRawWriter::Digits2Raw for Tracker");
+ AliCodeTimerAuto("for Tracker")
AliMpExMap busPatchMap(true);
if ( triggerStore )
{
- AliMUONStopwatchGroupElement timer(fTimers,"MUON","AliMUONRawWriter::Digits2Raw for Trigger");
+ AliCodeTimerAuto("for Trigger")
// trigger chambers
{
/// Create bus patch structures corresponding to digits in the store
- AliMUONStopwatchGroupElement timer(fTimers,"MUON","AliMUONRawWriter::Digits2BusPatchMap");
+ AliCodeTimerAuto("")
static const Int_t kMAXADC = (1<<12)-1; // We code the charge on a 12 bits ADC.
{
// This is most probably an error in the digitizer (which should insure
// the adc is below kMAXADC), so make it a (non-fatal) error indeed.
- AliError(Form("adc value %d above %x for DE %d . Setting to %x. Digit is:",
- digit->DetElemId(),charge,kMAXADC,kMAXADC));
+ AliError(Form("adc value %d above 0x%x for DE %d . Setting to 0x%x. Digit is:",
+ charge,kMAXADC,digit->DetElemId(),kMAXADC));
StdoutToAliError(digit->Print());
charge = kMAXADC;
}
// (((43 manus max per bus patch *64 channels + 4 bus patch words) * 5 bus patch
// + 10 dsp words)*5 dsps + 8 block words)*2 blocks
- AliMUONStopwatchGroupElement timer(fTimers,"MUON","AliMUONRawWriter::WriteTrackerDDL");
+ AliCodeTimerAuto("")
memset(fBuffer,0,fBufferSize*sizeof(Int_t));
{
/// Write trigger DDL
- AliMUONStopwatchGroupElement timer(fTimers,"MUON","AliMUONRawWriter::WriteTriggerDDL");
+ AliCodeTimerAuto("")
// DDL event one per half chamber