]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
- HLT reco param loaded from local $ALICE_ROOT/OCDB
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 11 Mar 2010 15:07:51 +0000 (15:07 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 11 Mar 2010 15:07:51 +0000 (15:07 +0000)
- added new parameter 'modules' to specify the modules to run the reconstruction for
- updated documentation and added help printout

HLT/exa/recraw-local.C

index 35eea5e47049bdd9a5b277b761052a027ff75c36..80e70c9170ca70da53a0f66c2da07093d7797e41 100644 (file)
@@ -5,19 +5,19 @@
  *
  * <pre>
  * Usage: aliroot -b -q -l \
- *     recraw-local.C'("file", "cdb", minEvent, maxEvent)'
+ *     recraw-local.C'("file", "cdb", minEvent, maxEvent, modules)'
  *
  * Examples:
- *     recraw-local.C'("alien:///alice/data/2009/.../.root")' 
+ *     recraw-local.C'("alien:///alice/data/2009/.../....root")' 
  *     recraw-local.C'("raw://run12345")'
  *     recraw-local.C'("raw://run12345", minEvent, MaxEvent)'
  *     recraw-local.C'("raw.root", "local://$PWD", minEvent, MaxEvent)'
  *
  * Defaults
- *     file=raw.root"
- *     cdb="raw://"
- *     minEvent=-1
- *     maxEvent=-1
+ *     cdb="raw://"  -> take OCDB from GRID
+ *     minEvent=-1   -> no lower event selection
+ *     maxEvent=-1   -> no upper event selection
+ *     modules="ALL" -> all modules
  *
  * </pre>
  *
@@ -30,8 +30,8 @@
  * 'raw://' followed by the string 'run12345' where the number needs
  * to be adjusted.
  * 
- * Note: You need a valid token, use 'alien-token-init' of your alien
- * installation.
+ * Note: You need a valid GRID token, use 'alien-token-init' of your
+ * alien installation.
  *
  * @author Matthias.Richter@ift.uib.no
  * @ingroup alihlt_qa
@@ -39,7 +39,8 @@
 void recraw_local(const char *filename,
                  const char *cdbURI,
                  int minEvent=-1,
-                 int maxEvent=-1)
+                 int maxEvent=-1,
+                 const char *modules="ALL")
 {
   // connect to the GRID if we use a file or OCDB from the GRID
   TString struri=cdbURI;
@@ -55,6 +56,7 @@ void recraw_local(const char *filename,
 
   // Reconstruction settings
   AliReconstruction rec;
+  rec.SetSpecificStorage("HLT/Calib/RecoParam", "local://$ALICE_ROOT/OCDB");
 
   if (minEvent>=0 || maxEvent>minEvent) {
     if (minEvent<0) minEvent=0;
@@ -62,11 +64,14 @@ void recraw_local(const char *filename,
     rec.SetEventRange(minEvent,maxEvent);
   }
 
-  rec.SetRunReconstruction("ALL");
+  if (modules)
+    rec.SetRunReconstruction(modules);
+  else
+    rec.SetRunReconstruction("ALL");
 
   // QA options
-  rec.SetRunQA("ALL:ALL") ;
-  rec.SetQARefDefaultStorage("local://$ALICE_ROOT/QAref") ;
+  rec.SetRunQA("HLT TPC:ALL") ;
+  //rec.SetQARefDefaultStorage("local://$ALICE_ROOT/QAref") ;
 
   // AliReconstruction settings
   rec.SetWriteESDfriend(kTRUE);
@@ -83,9 +88,29 @@ void recraw_local(const char *filename,
 
 }
 
-void recraw_local(const char *filename="raw.root",
+void recraw_local(const char *filename,
                  int minEvent=-1,
-                 int maxEvent=-1)
+                 int maxEvent=-1,
+                 const char *modules="ALL")
+{
+  recraw_local(filename, "raw://", minEvent, maxEvent, modules);
+}
+
+void recraw_local()
 {
-  recraw_local(filename, "raw://", minEvent, maxEvent);
+  cout << "recraw-local: Run AliRoot reconstruction locally" << endl;
+  cout << " Usage: aliroot -b -q -l \\" << endl;
+  cout << "     recraw-local.C'(\"file\", \"cdb\", minEvent, maxEvent, modules)'" << endl;
+  cout << "" << endl;
+  cout << " Examples:" << endl;
+  cout << "     recraw-local.C'(\"alien:///alice/data/2009/.../....root\")' " << endl;
+  cout << "     recraw-local.C'(\"raw://run12345\")'" << endl;
+  cout << "     recraw-local.C'(\"raw://run12345\", minEvent, MaxEvent)'" << endl;
+  cout << "     recraw-local.C'(\"raw.root\", \"local://$PWD\", minEvent, MaxEvent)'" << endl;
+  cout << "" << endl;
+  cout << " Defaults" << endl;
+  cout << "     cdb=\"raw://\"  -> take OCDB from GRID" << endl;
+  cout << "     minEvent=-1   -> no lower event selection" << endl;
+  cout << "     maxEvent=-1   -> no upper event selection" << endl;
+  cout << "     modules=\"ALL\" -> all modules" << endl;
 }