]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/exa/sample-component1.C
adding example macro for AliHLTOUTHandlerEsdBranch
[u/mrichter/AliRoot.git] / HLT / exa / sample-component1.C
index 231bc107998cc9dd5461c6f51628f98b4488a44d..fd8759b8a3acdba9fb11c8acf93fa28987822726 100644 (file)
@@ -82,7 +82,7 @@
   //log.SwitchAliLog(0);
 
   AliHLTSystem gHLT;
-  //gHLT.SetGlobalLoggingLevel(0x7c);
+  gHLT.SetGlobalLoggingLevel(0x7c);
 
   // load the component library
   gHLT.LoadComponentLibraries("libAliHLTUtil.so");
 
   // publisher for the reconfigure event
   TString arg;
-  arg.Form("-datatype COM_CONF PRIV -datafile %s", tmpFile1);
-  AliHLTConfiguration reconfevent("reconfevent", "FilePublisher", NULL , arg.Data());
+  arg.Form("-datatype COM_CONF PRIV -datafile %s -nextevent "
+          "-datatype UPDT_DCS PRIV -datafile %s", tmpFile1, tmpFile2);
+  AliHLTConfiguration sep("steeringevents", "FilePublisher", NULL , arg.Data());
 
-  arg.Form("-datatype UPDT_DCS PRIV -datafile %s", tmpFile2);
-  AliHLTConfiguration updtdcsevent("updtdcsevent", "FilePublisher", NULL , arg.Data());
+  AliHLTConfiguration sc1("sc1", "Sample-component1", "steeringevents" , componentInit);
 
-  AliHLTConfiguration sc1("sc1", "Sample-component1", "reconfevent updtdcsevent" , componentInit);
-
-  // run the chain
+  // build the chain
   gHLT.BuildTaskList("sc1");
-  gHLT.Run();
+
+  // run two events, in the 1st event the component reconfiguration is emulated
+  // in the 2nd one the update of Preprocessor values
+  gHLT.Run(2);
 
   /////////////////////////////////////////////////////////////////////////
   /////////////////////////////////////////////////////////////////////////