#include "AliMUONRawStreamTriggerHP.h"
#include "AliMUONRegHeader.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;
}
AliMpTriggerCrate* crate = AliMpDDLStore::Instance()->
GetTriggerCrate(fRawStreamTrigger->GetDDL(), iReg);
- if (!crate)
+ if (!crate) {
fLogger->Log(Form("Missing crate number %d in DDL %d\n", iReg, fRawStreamTrigger->GetDDL()));
-
+ continue;
+ }
regHeader = fRawStreamTrigger->GetRegionalHeader(iReg);
//____________________________________________________________________
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
}
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);
+}