Extacting the OCDB in a separate module. The detectors have write permission in the...
[u/mrichter/AliRoot.git] / GRP / TestGRPPreprocessor.C
index 670a103..6aa1733 100644 (file)
@@ -23,8 +23,8 @@ void TestGRPPreprocessor()
   AliTestShuttle* shuttle = new AliTestShuttle(kRun, 1, 10);
 
   // by default they are set to $ALICE_ROOT/SHUTTLE/TestShuttle/TestCDB and TestReference
-  AliTestShuttle::SetMainCDB("local://$ALICE_ROOT/SHUTTLE/TestShuttle/TestCDB");
-  AliTestShuttle::SetMainRefStorage("local://$ALICE_ROOT/SHUTTLE/TestShuttle/TestReference");
+  AliTestShuttle::SetMainCDB("local://$ALICE_ROOT/OCDB/SHUTTLE/TestShuttle/TestCDB");
+  AliTestShuttle::SetMainRefStorage("local://$ALICE_ROOT/OCDB/SHUTTLE/TestShuttle/TestReference");
 
   printf("Test OCDB storage Uri: %s\n", AliShuttleInterface::GetMainCDB().Data());
   printf("Test Reference storage Uri: %s\n", AliShuttleInterface::GetMainRefStorage().Data());
@@ -138,7 +138,7 @@ void TestGRPPreprocessor()
   chkEntry->GetObject()->Print();
   printf("\n\n");
 
-  AliDCSSensor* sen = (AliDCSSensor*)(((TMap*)chkEntry->GetObject())->GetValue("fMeyrinPressure"));
+  AliDCSSensor* sen = (AliDCSSensor*)(((TMap*)chkEntry->GetObject())->GetValue("fP2Pressure"));
   if(sen)
     sen->GetFit()->MakeGraph(1.5, 9.5, 15)->Draw();
 
@@ -161,7 +161,7 @@ TMap* CreateDCSAliasMap()
   //     <valueList> is a TObjArray of AliDCSValue
   //     An AliDCSValue consists of timestamp and a value in form of a AliSimpleValue
   
-  const Int_t fgknDCSDP = 11;
+  const Int_t fgknDCSDP = 10;
   const char* fgkDCSDataPoints[AliGRPPreprocessor::fgknDCSDP] = {
                    "LHCState",
                    "L3Polarity",
@@ -172,8 +172,7 @@ TMap* CreateDCSAliasMap()
                    "DipoleCurrent",
                    "CavernTemperature",
                    "CavernAtmosPressure",
-                   "gva_cr5AtmosphericPressure",
-                   "gva_meyrinAtmosphericPressure"
+                   "SurfaceAtmosPressure"
                  };
 
   TMap* aliasMap;
@@ -206,7 +205,8 @@ TMap* CreateDCSAliasMap()
   
   TRandom random;
 
-  for( int nAlias=3; nAlias<fgknDCSDP-2; nAlias++)  {
+  //  for( int nAlias=3; nAlias<fgknDCSDP-1; nAlias++)  {
+  for( int nAlias=3; nAlias<fgknDCSDP; nAlias++)  {
     valueSet = new TObjArray;
     valueSet->SetOwner(1);