1 // Author: 2010 Svein Lindal <slindal@fys.uio.no> *
2 // for The ALICE HLT Project. *
4 #include "AliHLTEveHLT.h"
5 #include "AliHLTEvePhos.h"
6 #include "AliHLTEveEmcal.h"
9 #include "AliESDEvent.h"
10 #include "AliEveHLTEventManager.h"
11 #include "AliEveEventBufferOffline.h"
12 #include "AliEveHLTEventManagerHomer.h"
14 #include "AliEveHOMERManager.h"
15 #include "TEveManager.h"
17 ClassImp(AliEveHLTEventManagerHomer)
19 AliEveHLTEventManagerHomer::AliEveHLTEventManagerHomer() :
20 AliEveHLTEventManager(),
23 // see header file for class documentation
25 // refer to README to build package
27 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
28 fEventBuffer = new AliEveEventBufferHomer();
29 fEventBuffer->StartBufferMonitor();
30 //AliEveHOMERManager * hm = fEventBuffer->GetHomerManager();
31 //if(hm) GetEveManager()->AddToListTree(hm, kTRUE);
37 AliEveHLTEventManagerHomer::~AliEveHLTEventManagerHomer() {
40 //DestroyDetectorElements();
47 ///________________________________________________________________________________
48 void AliEveHLTEventManagerHomer::ProcessList(TList * blockList) {
50 ProcessEvent(blockList);
57 ///________________________________________________________________________________
58 void AliEveHLTEventManagerHomer::NextEvent() {
59 //See header file for documentation
60 if(fEventBuffer->LockMutex() ) {
61 cout << "event buffer already busy"<<endl;
65 TList * aSyncEvent = fEventBuffer->GetASyncEvent();
66 TList * event = static_cast<TList*>(fEventBuffer->NextEvent());
68 cout << "Got the event, reset the display " <<endl;
70 cout << "Process event"<<endl;
73 cout << "Process asynchroneous event" << endl;
74 ProcessEvent(aSyncEvent);
76 cout << "Could not get async event"<<endl;
79 cout << "Upate the display"<<endl;
83 cout << "couldn't get the sync event"<<endl;
86 // cout << "doint async block"<<endl;
87 // TList * async = static_cast<TList*>(fEventBuffer->GetAList());
89 // ProcessEvent(async);
91 // cout << "No async bloc"<<endl;
95 fEventBuffer->UnLockMutex();
99 ///____________________________________________________________________________________
100 void AliEveHLTEventManagerHomer::NavigateFwd() {
101 //See header file for documentation
102 TList * fEvent = dynamic_cast<TList*>(fEventBuffer->Fwd());
105 ProcessEvent(fEvent);
108 cout << "couldn't get the fwd event"<<endl;
113 ///______________________________________________________________________________________
114 void AliEveHLTEventManagerHomer::NavigateBack() {
115 //See header file for documentation
116 TList * fEvent = dynamic_cast<TList*>(fEventBuffer->Back());
119 ProcessEvent(fEvent);
122 cout << "couldn't get the back event"<<endl;