]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
handle the case of simulated raw data by checking for the GRP in the working director...
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 27 Aug 2010 19:57:56 +0000 (19:57 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 27 Aug 2010 19:57:56 +0000 (19:57 +0000)
HLT/exa/recraw-local.C

index f51b90e66a46340d3d2da2d3555440d5fcb4961a..d2960c7b6a72410a16574ef0bf1c599bd695daae 100644 (file)
@@ -72,6 +72,16 @@ void recraw_local(const char *filename,
   // Set the CDB storage location
   AliCDBManager * man = AliCDBManager::Instance();
   man->SetDefaultStorage(cdbURI);
+  if (struri.BeginsWith("local://")) {
+    // set specific storage for GRP entry
+    // search in the working directory and one level above, the latter
+    // follows the standard simulation setup like e.g. in test/ppbench
+    if (!gSystem->AccessPathName("GRP/GRP/Data")) {
+      man->SetSpecificStorage("GRP/GRP/Data", "local://$PWD");
+    } else if (!gSystem->AccessPathName("../GRP/GRP/Data")) {
+      man->SetSpecificStorage("GRP/GRP/Data", "local://$PWD/..");      
+    }
+  }
 
   // Reconstruction settings
   AliReconstruction rec;