-
/**
- * @file rootfilepublisher-sample.C
+ * @file rootfilepublisher.C
* @brief Macro for testing ROOT-file publishing and writing
*
* This macro is a testing/example macro of how to use the RootFilePublisher
// !!! myRootFile.root has to be exchanged with an existing one.
arg.Form("-objectname HLTesdTree -datatype 'ESD_TREE' 'TPC '-dataspec 0x00000000 -datafile myRootFile.root");
- // -- The AliHLTRootFilePublisher (component Id \em 'ROOTFilePublisher' provides
- // the given file (see AliHLTRootFilePublisher for more options) to the
- // subsequent components in the chain.
- AliHLTConfiguration rootPublisher("RootPublisher", "ROOTFilePublisher", NULL, arg.Data() );
+ // -- The AliHLTRootFilePublisher (Id 'ROOTFilePublisher') is a data source.
+ // It provides the given files to the subsequent components in the chain.
+ // see AliHLTRootFilePublisher for more options
+ AliHLTConfiguration RootPublisher("RootPublisher", "ROOTFilePublisher", NULL, arg.Data() );
+ if (!writerInput.IsNull()) writerInput+=" ";
+ writerInput+="RootPublisher";
// -
// -- Processing Components can be put in here
// -- The AliHLTRootFileWriter (Id 'ROOTFileWriter') is a data sink. It writes
// all incoming data blocks to files. Several options available.
- // AliHLTConfiguration sink1("sink1", "FileWriter", "ESDPublisher", NULL);
- AliHLTConfiguration rootWriter("RootWriter", "ROOTFileWriter", "RootPublisher","-datafile event");
+ AliHLTConfiguration RootWriter("RootWriter", "ROOTFileWriter", writerInput.Data(),"-datafile event");
// -- Here you specify the top most configuration of the chain. The
// configuration depends on all the parents. The task lisy is build