]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/exa/recraw-local.C
projection also for smaller ranges than the full axis for the BF (Alis Rodriguez...
[u/mrichter/AliRoot.git] / HLT / exa / recraw-local.C
index 853cdf2d79128c7a19b7e7b7dcef58a5d5e8c2ac..1d41e71ae3ccd9d7e80f854c2411aa4d71474f23 100644 (file)
@@ -12,6 +12,8 @@
  *     recraw-local.C'("raw://run12345")'
  *     recraw-local.C'("raw://run12345", minEvent, MaxEvent)'
  *     recraw-local.C'("raw.root", "local://$PWD", minEvent, MaxEvent)'
+ *     recraw-local.C'("10000135031045.10..root", "raw://", -1, -1)'
+ *     recraw-local.C'("alien:///alice/data/2010/LHC10f/000135031/raw/10000135031045.10.root", "raw://", -1, -1)'
  *
  * Defaults
  *     cdb="raw://"  -> take OCDB from GRID
@@ -59,8 +61,15 @@ void recraw_local(const char *filename,
                  int minEvent=-1,
                  int maxEvent=-1,
                  const char *modules="ALL",
-                 const char *hltOptions="loglevel=0x7c")
+                 const char *hltOptions="loglevel=0x7c",
+                 const char *cdbDrain=NULL)
 {
+  if(!gSystem->AccessPathName("galice.root")){
+    cerr << "AliReconstruction on raw data requires to delete galice.root, or run at different place." << endl;
+    cerr << "!!! DO NOT DELETE the galice.root of your simulation, but create a subfolder !!!!" << endl;
+    return;
+  }
+
   // connect to the GRID if we use a file or OCDB from the GRID
   TString struri=cdbURI;
   TString strfile=filename;
@@ -82,6 +91,7 @@ void recraw_local(const char *filename,
       man->SetSpecificStorage("GRP/GRP/Data", "local://$PWD/..");      
     }
   }
+  if (cdbDrain) man->SetDrain(cdbDrain);
 
   // Reconstruction settings
   AliReconstruction rec;