Merging STORAGE-dev to master
[u/mrichter/AliRoot.git] / MONITOR / alistoragemanager / alistorageminimalexample.cxx
1 #ifdef ZMQ
2 #include "AliStorageEventManager.h"
3 #endif
4 #include <iostream>
5 #include <TFile.h>
6
7
8 int main()
9 {
10 #ifdef ZMQ
11         AliStorageEventManager *manager = AliStorageEventManager::GetEventManagerInstance();
12         manager->CreateSocket(EVENTS_SERVER_SUB);
13         AliESDEvent *event  = manager->GetEvent(EVENTS_SERVER_SUB);
14                 
15         std::cout<<"Received event:"<<event->GetEventNumberInFile()<<std::endl;
16 #endif
17         return 0;
18 }