3 * @file process-hltout-payload.C
4 * @brief Standard processing of HLTOUT payload
7 * Usage: aliroot -b -q process-hltout-payload.C'("raw.root")' | tee process-hltout-payload.log
10 * Open a raw reader for the specified input and process HLTOUT payload
11 * using the AliHLTReconstructor.
13 * @author Matthias.Richter@ift.uib.no
14 * @ingroup alihlt_tutorial
16 void process_hltout_payload(const char* input)
18 /////////////////////////////////////////////////////////////////////////
19 /////////////////////////////////////////////////////////////////////////
21 // setup of the reconstructor
23 gSystem->Load("libHLTrec");
24 AliHLTReconstructor hltRec;
25 hltRec.Init("chains=");
27 AliRawReader* rawreader=AliRawReader::Create(input);
31 rawreader->RewindEvents();
33 if (!rawreader->NextEvent()) {
34 cout << "no events found in " << input << endl;
38 hltRec.ProcessHLTOUT(rawreader, NULL);
41 void process_hltout_payload()
43 cerr << "===============================================================" << endl;
44 cerr << "usage: aliroot -b -q -l process-hltout-payload.C'(\"raw.root\")'" << endl << endl;
45 cerr << "please provide input, e.g. \"raw.root\", or \"./\"" << endl;
46 cerr << "===============================================================" << endl;