Correcting SPD trigger signals according to the naming scheme
[u/mrichter/AliRoot.git] / GRP / UpdateCDBGRPEntryMC.C
index d53a17e..4416ca3 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();
@@ -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 ; 
                        }
                }               
@@ -170,8 +168,8 @@ TMap *GetGRPList() {
        map->Add(new TObjString("fAliceBeamEnergy"),new TObjString(ParseConfig("fAliceBeamEnergy")));
   map->Add(new TObjString("fAliceBeamType"),new TObjString(system));
   map->Add(new TObjString("fNumberOfDetectors"),new TObjString(ParseConfig("fNumberOfDetectors")));
-  map->Add(new TObjString("fDetectorMask"),new TObjString("1048575"));
-  map->Add(new TObjString("fLHCPeriod"),new TObjString("LHC07a"));
+  map->Add(new TObjString("fDetectorMask"),new TObjString("1074790399"));
+  map->Add(new TObjString("fLHCPeriod"),new TObjString("LHC08c"));
 
   //DCS
   map->Add(new TObjString("fLHCState"),new TObjString("0"));