#include "AliCDBId.h"
#include "AliCDBMetaData.h"
#include "AliTriggerConfiguration.h"
+#include "AliSimulation.h"
#include <TROOT.h>
#include <TString.h>
#include <TSystem.h>
void UpdateCDBCTPConfig(Bool_t check = false) {
+ // AliSimulation object must exist, as it is used via AliMC
+ // which is used in AliTriggerConfiguration::CheckConfiguration()
+ AliSimulation sim;
+
AliCDBManager* cdb = AliCDBManager::Instance();
- cdb->SetDefaultStorage("local://$ALICE_ROOT");
+ cdb->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
cdb->SetRun(0);
if (check) {
md->SetAliRootVersion(av.Data());
md->SetComment(Form("Default CTP configuration for MUON mode produced with root version %s and AliRoot version %s revision %d ",rootv,av.Data(),revnum));
- AliCDBStorage* storage = cdb->GetStorage("local://$ALICE_ROOT");
+ AliCDBStorage* storage = cdb->GetStorage("local://$ALICE_ROOT/OCDB");
storage->Put(trconfig,id,md);
}