Replace call to TMath::Power in Vertexer3D (F. Prino)
[u/mrichter/AliRoot.git] / HLT / exa / HOMERManager.C
CommitLineData
06272c83 1//-*- Mode: C++ -*-
2// $Id: HOMERManager.C $
3/**
4 * @file HOMERManager.C
5 * @brief Sample macro for the use of the HOMERManager
6 *
7 * Usage:
8 * <pre>
9 * aliroot -l HOMERManager.C
10 * </pre>
11 *
12 * This macro illustrates the usage of the AliHLTHOMERManager in order
13 * to on-line read events outside the HLT.
14 *
15 * This macro can be run inside the
16 * <ul>
17 * <li>DAQ/DCS(ACR) network</li>
18 * <li>HLT network</li>
19 * <li>CERN GPN network</li>
20 * </ul>
21 *
22 * See AliHLTHOMERManager for detailed description.
23 *
24 * @author Jochen Thaeder
25 * @ingroup alihlt_tutorial
26 * @ingroup alihlt_homer
27 */
28
29Int_t HOMERManager() {
30
31 Int_t iResult = 0;
32
33 // -- Create new hM object
34 AliHLTHOMERManager *hM = new AliHLTHOMERManager();
35
36 printf( "== INITIALIZE ==\n" );
37
38 iResult = hM->Initialize();
39 if (iResult) return iResult;
40
41 printf( "== CREATE SOURCE LIST ==\n" );
42
43 iResult = hM->CreateSourcesList();
44 if (iResult) return iResult;
45
46 printf( "== CONNECT HOMER ==\n" );
47
48 iResult = hM->ConnectHOMER();
49 if (iResult) return iResult;
50
51 // printf( "== NEXT EVENT ==\n" );
52
53 iResult = hM->NextEvent();
54 if (iResult) return iResult;
55
56
57 // -- Destroy hM object
58 if (hM)
59 delete hM;
60 hM = NULL;
61
62 return iResult;;
63}