Adding C0SCO-D-NOPF-FAST.
[u/mrichter/AliRoot.git] / GRP / UpdateCDBGRPEntryMC.C
index 9e66496..8c6cd25 100644 (file)
@@ -3,7 +3,7 @@
        // reading MC parameter from Config.C
        
        AliCDBManager* man = AliCDBManager::Instance();
-  man->SetDefaultStorage("local://$ALICE_ROOT");
+  man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
   man->SetRun(0);
        AliCDBId id(AliQA::GetGRPPath(), 0, AliCDBRunRange::Infinity());
   AliCDBMetaData *metadata= new AliCDBMetaData();
@@ -40,7 +40,7 @@ TString ParseConfig(char * option)
        if (soption.Contains("system") || soption.Contains("fAliceBeamType")){
                while (getline(in, line)) { 
                        sline = line ;          
-                       if (sline.Contains("gAlice->SetTriggerDescriptor")) 
+                       if (sline.Contains("AliSimulation::Instance()->SetTriggerConfig")) 
                                break ;
                }
                TString sarg1 = sline(sline.Index("[")+1, sline.Index("]") - sline.Index("[")-1) ; 
@@ -128,7 +128,7 @@ TString ParseConfig(char * option)
                while (getline(in, line)) {
                        sline = line ; 
                        sline.ReplaceAll(" ", "") ; 
-                       if (sline.Contains("AliMagFMaps*field=newAliMagFMaps(")) {
+                       if (sline.Contains("AliMagF*field=newAliMagF(")) {
                                sarg = sline(sline.Last(',')+1, sline.Last(')')-sline.Last(',')-1) ; 
                                break ; 
                        }
@@ -143,8 +143,6 @@ TString ParseConfig(char * option)
                                        rv = "30000" ;
                                else if (sarg == "k2kG")
                                        rv = "12000" ;
-                               else if (sarg == "k4kG")
-                                       rv = "24000"; 
                                break ; 
                        }
                }