#include "AliMUONVTriggerStore.h"
#include "AliCodeTimer.h"
+#include "AliMpCDB.h"
#include "AliMpDDLStore.h"
#include "AliMpDDL.h"
#include "AliMpRegionalTrigger.h"
fBlockHeader->SetDataKey(fBlockHeader->GetDefaultDataKey());
fDspHeader->SetDataKey(fDspHeader->GetDefaultDataKey());
+ // Load mapping
+ if ( ! fDDLStore ) {
+ if ( ! AliMpCDB::LoadDDLStore() ) {
+ AliFatal("Could not access mapping from OCDB !");
+ }
+ fDDLStore = AliMpDDLStore::Instance();
+ }
}
//__________________________________________________________________________
AliCodeTimerAuto("",0)
Int_t idDDL;
- Char_t name[255];
// tracking chambers
// open files
idDDL = 0;// MUTR
- strcpy(name,AliDAQ::DdlFileName("MUONTRG",idDDL));
- file[0] = new AliFstream(name);
+ file[0] = new AliFstream(AliDAQ::DdlFileName("MUONTRG",idDDL));
idDDL = 1;// MUTR
- strcpy(name,AliDAQ::DdlFileName("MUONTRG",idDDL));
- file[1] = new AliFstream(name);
+ file[1] = new AliFstream(AliDAQ::DdlFileName("MUONTRG",idDDL));
WriteTriggerDDL(*triggerStore,file);