X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FUpdateCDBCTPConfig.C;h=dd344fd3ee60090e02525d2513a306484dc5a8c6;hb=dac20c1b501c120d09d28a73f32bcf3dded11c1c;hp=a9b12c1922289810c235518b5414ee0753ad5889;hpb=cbb5526b0a011bb0ee7fb504fd501f2154b46c6a;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/UpdateCDBCTPConfig.C b/MUON/UpdateCDBCTPConfig.C index a9b12c19222..dd344fd3ee6 100644 --- a/MUON/UpdateCDBCTPConfig.C +++ b/MUON/UpdateCDBCTPConfig.C @@ -58,6 +58,7 @@ #include "AliCDBId.h" #include "AliCDBMetaData.h" #include "AliTriggerConfiguration.h" +#include "AliSimulation.h" #include #include #include @@ -65,8 +66,12 @@ 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) { @@ -117,7 +122,7 @@ void UpdateCDBCTPConfig(Bool_t check = false) { 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); }