4 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
6 /**************************************************************************
7 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
8 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
9 * full copyright notice. *
10 **************************************************************************/
12 #ifndef ALIEVEHOMERMANAGER_H
13 #define ALIEVEHOMERMANAGER_H
15 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
16 * See cxx source for full Copyright notice */
18 /** @file AliEveHOMERManager.h
19 @author Jochen Thaeder, Svein Lindal
21 @brief Manager for HOMER in HLT . Inherits some functionalitye
22 from AliHLTHOMERManager, mainly from TEveEventManager
24 #include "AliHLTHOMERManager.h"
25 #include <TEveEventManager.h>
26 #include <TGeoManager.h>
28 class AliEveHOMERSourceList;
32 class AliEveHOMERManager : public TEveElementList, public AliHLTHOMERManager {
37 * ---------------------------------------------------------------------------------
38 * Constructor / Destructor
39 * ---------------------------------------------------------------------------------
46 virtual ~AliEveHOMERManager();
48 /** Connect to avahi and get the list for sources */
49 Int_t CreateEveSourcesList();
51 /** Keep on looking for sources until some are found */
52 Int_t CreateEveSourcesListLoop();
54 /** Connect to the sources found */
55 Int_t ConnectEVEtoHOMER(TString detector="ALL");
57 /** Delete current connections to sources and reconnect */
58 Int_t ReConnectHOMER( TString detector="" );
60 /** Set the retry count for source list loop */
61 void SetRetryCount(Int_t count, Int_t sleeptime) { fRetryCount = count; fRetrySleeptime = sleeptime; }
63 /** Get next event from the readers */
64 TList * NextHOMEREvent();
66 void StartEveSourceListLoop();
67 void StopEveSourceListLoop();
72 /** copy constructor prohibited */
73 AliEveHOMERManager(const AliEveHOMERManager&);
75 /** assignment operator prohibited */
76 AliEveHOMERManager& operator=(const AliEveHOMERManager&);
79 AliEveHOMERSourceList* fSrcList; // List of Connected HOMER Sources
82 Int_t fRetryCount; //How many times to retry creating source list before giving up
83 Int_t fRetrySleeptime; //Sleep time between attempt at craeting source list
86 TTimer * fSourceListTimer; //Timer to attempt source list creation!
88 ClassDef(AliEveHOMERManager, 0); // Manage connections to HLT data-sources.