]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/UpdateCDBCTPConfig.C
cut analysis for PbPb
[u/mrichter/AliRoot.git] / MUON / UpdateCDBCTPConfig.C
index a9b12c1922289810c235518b5414ee0753ad5889..dd344fd3ee60090e02525d2513a306484dc5a8c6 100644 (file)
@@ -58,6 +58,7 @@
 #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) {
@@ -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);
   
 }