]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Mods
authorcholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 27 Jun 2011 14:17:04 +0000 (14:17 +0000)
committercholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 27 Jun 2011 14:17:04 +0000 (14:17 +0000)
FMD/scripts/Compile.C
FMD/scripts/RunSimpleChain.C

index 98dfcc2cd542ff6815fcc24043961eb430501b1a..f0aaee85b094cd9036c85be7f8cee31da1f46681 100644 (file)
     @param option Compile option 
     @ingroup FMD_script
 */
+void
+AddInclude(const char* what)
+{
+  TString path(gSystem->GetIncludePath());
+  if (path.Contains(what)) return;
+  gSystem->AddIncludePath(what);
+}
 Bool_t
 Compile(const char* script, Option_t* option="g")
 {
@@ -27,15 +34,17 @@ Compile(const char* script, Option_t* option="g")
   gSystem->Load("libANALYSIS.so");
   gSystem->Load("libANALYSISalice.so");
   gSystem->Load("libFMDutil.so");
-  gSystem->Load("libFMDflow.so");
   TString macroPath(gROOT->GetMacroPath());
   macroPath.Append(":${ALICE_ROOT}/FMD/scripts");
   gROOT->SetMacroPath(macroPath.Data());
-  gSystem->SetIncludePath("-I`root-config --incdir` "
-                         "-I${ALICE_ROOT} " 
-                         "-I${ALICE_ROOT}/include " 
-                         "-I${ALICE_ROOT}/FMD "
-                         "-I${ALICE_ROOT}/geant3/TGeant3");
+  AddInclude("-I`root-config --incdir`");
+  AddInclude("-I${ALICE_ROOT}");
+  AddInclude("-I${ALICE_ROOT}/include");
+  AddInclude("-I${ALICE_ROOT}/FMD");
+  AddInclude("-I${ALICE_ROOT}/geant3/TGeant3");
+  AddInclude("-I${ALICE_ROOT}/../aliroot.trunk");
+  AddInclude("-I${ALICE_ROOT}/../aliroot.trunk/FMD");
+  AddInclude("-I${ALICE_ROOT}/../aliroot.trunk/RAW");
   Long_t ret = gROOT->ProcessLine(Form(".L %s+%s", script, option));
   return ret == 0;
 }
index 8db0f1b3bf45440996c403c98b11a6f8cbb32da4..7b9365f781ecfdb6c59898d993d75686d0b4061c 100644 (file)
@@ -1,3 +1,22 @@
+/**
+ * A script that will run the most simple chain possible. 
+ *
+ * What is done, depends on a bit mask:
+ *
+ *  Bit | Job
+ *  ----+-----------------------
+ *   0  | Make fake hits
+ *   1  | Make digits from hits
+ *   2  | Make sdigits from hits
+ *   3  | Make raw DDL files from digits
+ *   4  | Make ESD from raw ddl files
+ *   5  | Display the data
+ *
+ *  So a mask of 0x3f means do everything, while 0x2 means
+ *  only make digits from hits, and 0x1F is all but display.
+ * 
+ */
+
 const char* path = "$ALICE_ROOT/FMD/scripts/";
 
 void
@@ -66,3 +85,6 @@ RunSimpleChain(Int_t what=0x3b)
 }
 
   
+//
+// EOF
+//