2 // $Id: HOMERManager.C $
5 * @brief Sample macro for the use of the HOMERManager
9 * aliroot -l HOMERManager.C
12 * This macro illustrates the usage of the AliHLTHOMERManager in order
13 * to on-line read events outside the HLT.
15 * This macro can be run inside the
17 * <li>DAQ/DCS(ACR) network</li>
18 * <li>HLT network</li>
19 * <li>CERN GPN network</li>
22 * See AliHLTHOMERManager for detailed description.
24 * @author Jochen Thaeder
25 * @ingroup alihlt_tutorial
26 * @ingroup alihlt_homer
29 Int_t HOMERManager() {
33 // -- Create new hM object
34 AliHLTHOMERManager *hM = new AliHLTHOMERManager();
36 printf( "== INITIALIZE ==\n" );
38 iResult = hM->Initialize();
39 if (iResult) return iResult;
41 printf( "== CREATE SOURCE LIST ==\n" );
43 iResult = hM->CreateSourcesList();
44 if (iResult) return iResult;
46 printf( "== CONNECT HOMER ==\n" );
48 iResult = hM->ConnectHOMER();
49 if (iResult) return iResult;
51 // printf( "== NEXT EVENT ==\n" );
53 iResult = hM->NextEvent();
54 if (iResult) return iResult;
57 // -- Destroy hM object