1 // Author: Mihai Niculescu 2013
3 /**************************************************************************
4 * Copyright(c) 1998-2013, ALICE Experiment at CERN, all rights reserved. *
5 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
6 * full copyright notice. *
7 **************************************************************************/
9 #ifndef __AliRecoServer_H__
10 #define __AliRecoServer_H__
12 #include <TObjString.h>
14 #include <RQ_OBJECT.h>
18 class AliReconstruction;
19 class AliRecoServerThread;
26 class AliRecoServer : public TQObject
28 RQ_OBJECT("AliRecoServer")
31 virtual ~AliRecoServer();
33 // Closes the server. The server will no longer listen/serve
36 Bool_t IsListenning() const;
38 Int_t GetRunId() const { return fCurrentRunId; }
39 const char* GetError() const;//TODO: not implemented
41 Bool_t StartReconstruction(Int_t run, const char* input="mem://@*:");
42 void StopReconstruction();
44 void ThreadFinished(Int_t status); // *SIGNAL*
47 Int_t RetrieveGRP(UInt_t run, TString &gdc);
48 void SetupReco(const char* input);
50 AliRecoServer(const AliRecoServer&); // Not implemented
51 AliRecoServer& operator=(const AliRecoServer&); // Not implemented
55 zmq::context_t* fContext;
56 AliReconstruction* fReco;
57 AliCDBManager* fCDBman;
63 AliRecoServerThread* fRecoTh;
67 ClassDef(AliRecoServer, 0);
70 #endif /* __AliRecoServer_H__ */