]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/Macros/AliTRDpidCDB.C
Extacting the OCDB in a separate module. The detectors have write permission in the...
[u/mrichter/AliRoot.git] / TRD / Macros / AliTRDpidCDB.C
index bb251c4f632b191bce4ff34e7d5a5c2b574b3478..bd0c5e0492fca82ab1236106c19346afccc6a1b0 100644 (file)
@@ -16,7 +16,7 @@ void makePIDRefs(const char *dir = ".", const char *file="Refs.root")
 //             "dir" 
 
        AliCDBManager *man = AliCDBManager::Instance();
-       man->SetDefaultStorage("local://$ALICE_ROOT");
+       man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
        man->SetRun(0);
 
        AliTRDCalPIDRefMaker maker;
@@ -30,10 +30,10 @@ void generatePIDDB(const char *fileNN = "NN.root", const char *fileLQ = "LQ.root
 
 
        AliCDBManager *man = AliCDBManager::Instance();
-       man->SetDefaultStorage("local://$ALICE_ROOT");
+       man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
        man->SetRun(0);
 
-       AliCDBStorage *gStorLoc = man->GetStorage("local://$ALICE_ROOT");
+       AliCDBStorage *gStorLoc = man->GetStorage("local://$ALICE_ROOT/OCDB");
        if (!gStorLoc) return;
 
   
@@ -69,7 +69,7 @@ AliTRDCalPID* getPIDObject(const char *method="NN")
        gStyle->SetOptStat(0);
        
   AliCDBManager *CDBManager = AliCDBManager::Instance();
-       CDBManager->SetDefaultStorage("local://$ALICE_ROOT");
+       CDBManager->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
        CDBManager->SetRun(0);
 
        AliCDBEntry *wrap = CDBManager->Get(Form("TRD/Calib/PID%s", method), 0);