#include "AliMUONRawStreamTrackerHP.h"
#include "AliMUONRawStreamTriggerHP.h"
#include "AliMUONRegHeader.h"
-#include "AliMUONTriggerCircuit.h"
#include "AliMUONVTriggerStore.h"
+#include "AliMpCDB.h"
#include "AliMpDetElement.h"
#include "AliMpTriggerCrate.h"
#include "AliMpLocalBoard.h"
fRawStreamTrigger(new AliMUONRawStreamTriggerHP),
fDigitStore(0x0),
fTriggerStore(0x0),
-fLogger(new AliMUONLogger(10000))
-{
+fLogger(new AliMUONLogger(10000)){
/// ctor
if ( !a || !b ) AliFatal("no longer supported");
SetMakeTriggerDigits();
+ // Load mapping
+ if ( ! AliMpCDB::LoadDDLStore() ) {
+ AliFatal("Could not access mapping from OCDB !");
+ }
}
//__________________________________________________________________________
SetMakeTriggerDigits();
+ // Load mapping
+ if ( ! AliMpCDB::LoadDDLStore() ) {
+ AliFatal("Could not access mapping from OCDB !");
+ }
}
//__________________________________________________________________________
if (!de)
{
- fLogger->Log(Form("DE %04d does not exist !"));
+ fLogger->Log(Form("DE %04d does not exist !", detElemId));
continue;
}
//____________________________________________________________________
Int_t AliMUONDigitMaker::TriggerDigits(Int_t nBoard,
- TArrayS* xyPattern,
+ const TArrayS* xyPattern,
AliMUONVDigitStore& digitStore) const
{
/// make digits for trigger from pattern, and add them to digitStore
{
// not quite sure about this
Int_t offset = 0;
- if (iCath && localBoard->GetSwitch(6)) offset = -8;
+ if (iCath && localBoard->GetSwitch(AliMpLocalBoard::kZeroAllYLSB)) offset = -8;
AliMpPad pad = seg->PadByLocation(nBoard,ibitxy+offset,kTRUE);
}
return kTRUE;
}
+
+//______________________________________________________________________________
+void
+AliMUONDigitMaker::SetTryRecover(Bool_t flag)
+{
+ /// Instruct the decoder to try to recover corrupted raw data.
+ /// Only use for specific cases for which you know it will work...
+ fRawStreamTracker->TryRecover(flag);
+}