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 //AliEveHOMERManager * hm = fEventBuffer->GetHomerManager();
30 //if(hm) GetEveManager()->AddToListTree(hm, kTRUE);
36 AliEveHLTEventManagerHomer::~AliEveHLTEventManagerHomer() {
39 //DestroyDetectorElements();
47 ///________________________________________________________________________________
48 void AliEveHLTEventManagerHomer::NextEvent() {
49 //See header file for documentation
50 if(fEventBuffer->GetBusy() ) {
51 cout << "event buffer already busy"<<endl;
54 fEventBuffer->SetBusy(kTRUE);
57 TList * aSyncEvent = fEventBuffer->GetASyncEvent();
58 TList * event = static_cast<TList*>(fEventBuffer->NextEvent());
60 cout << "Got the event, reset the display " <<endl;
62 cout << "Process event"<<endl;
65 cout << "Process asynchroneous event" << endl;
66 ProcessEvent(aSyncEvent);
68 cout << "Could not get async event"<<endl;
71 cout << "Upate the display"<<endl;
75 cout << "could't get the sync event"<<endl;
78 // cout << "doint async block"<<endl;
79 // TList * async = static_cast<TList*>(fEventBuffer->GetAList());
81 // ProcessEvent(async);
83 // cout << "No async bloc"<<endl;
86 fEventBuffer->SetBusy(kFALSE);
90 ///____________________________________________________________________________________
91 void AliEveHLTEventManagerHomer::NavigateFwd() {
92 //See header file for documentation
93 TList * fEvent = dynamic_cast<TList*>(fEventBuffer->Fwd());
97 cout << "couldn't get the fwd event"<<endl;
102 ///______________________________________________________________________________________
103 void AliEveHLTEventManagerHomer::NavigateBack() {
104 //See header file for documentation
105 TList * fEvent = dynamic_cast<TList*>(fEventBuffer->Back());
107 ProcessEvent(fEvent);
109 cout << "couldn't get the back event"<<endl;