AlcapDAQ
1
|
Go to the source code of this file.
Macros | |
#define | RDISP_ERR_NO_CON 1 |
cannot connect to the server More... | |
#define | RDISP_ERR_BAD_RESPONSE 2 |
Bad response from the server. More... | |
#define | RDISP_ERR_NO_RESPONSE 3 |
No response from the server. More... | |
#define | RDISP_ERR_NO_SOURCE 4 |
No sourses open. More... | |
#define | RDISP_ERR_BROKEN_PIPE 5 |
Broken pipe. More... | |
#define | RDISP_ERR_NO_FILE 6 |
Cannot open file. More... | |
#define | RDISP_ERR_NO_FOLDER 7 |
Cannot load root folder from file. More... | |
Functions | |
TFile * | openRootFile (const char *filename) |
TSocket * | openSocket (const char *hostname, const int port_nr=9090) |
void | closeSource () |
TObject * | getObject (const char *name) |
void | clear_recv_buffer () |
int | get_status_code () |
ULong_t | get_run_number () |
void | reset_error_code () |
#define RDISP_ERR_BAD_RESPONSE 2 |
Bad response from the server.
Definition at line 20 of file getHist.h.
Referenced by get_status_code(), openSocket(), and TOnlineFrame::runMacro().
#define RDISP_ERR_BROKEN_PIPE 5 |
Broken pipe.
Definition at line 29 of file getHist.h.
Referenced by get_status_code(), and TOnlineFrame::runMacro().
#define RDISP_ERR_NO_CON 1 |
cannot connect to the server
Definition at line 17 of file getHist.h.
Referenced by get_run_number(), get_status_code(), getObjectFromSocket(), openSocket(), and TOnlineFrame::runMacro().
#define RDISP_ERR_NO_FILE 6 |
Cannot open file.
Definition at line 32 of file getHist.h.
Referenced by get_status_code(), openRootFile(), and TOnlineFrame::runMacro().
#define RDISP_ERR_NO_FOLDER 7 |
Cannot load root folder from file.
Definition at line 35 of file getHist.h.
Referenced by get_status_code(), openRootFile(), and TOnlineFrame::runMacro().
#define RDISP_ERR_NO_RESPONSE 3 |
No response from the server.
Definition at line 23 of file getHist.h.
Referenced by get_status_code(), openSocket(), and TOnlineFrame::runMacro().
#define RDISP_ERR_NO_SOURCE 4 |
No sourses open.
Definition at line 26 of file getHist.h.
Referenced by get_status_code(), getObject(), getObjectFromFile(), and TOnlineFrame::runMacro().
void clear_recv_buffer | ( | ) |
Frees memory occupied by received objects
Definition at line 365 of file getHist.cpp.
References folder.
Referenced by closeSource(), and TOnlineFrame::runMacro().
void closeSource | ( | ) |
close opened sources (socket or file )
Definition at line 178 of file getHist.cpp.
References clear_recv_buffer(), r_file, and r_socket.
Referenced by get_run_number(), getObjectFromSocket(), openRootFile(), and openSocket().
ULong_t get_run_number | ( | ) |
Return current run number
Definition at line 426 of file getHist.cpp.
References closeSource(), getObjectFromFile(), gl_status, printf(), r_file, r_socket, RDISP_ERR_NO_CON, sprintf(), status, and timeout.
Referenced by TOnlineFrame::runMacro().
int get_status_code | ( | ) |
Returns error code.
Definition at line 377 of file getHist.cpp.
References gl_status, printf(), RDISP_ERR_BAD_RESPONSE, RDISP_ERR_BROKEN_PIPE, RDISP_ERR_NO_CON, RDISP_ERR_NO_FILE, RDISP_ERR_NO_FOLDER, RDISP_ERR_NO_RESPONSE, and RDISP_ERR_NO_SOURCE.
Referenced by TOnlineFrame::runMacro().
TObject* getObject | ( | const char * | name) |
no sources available
Definition at line 202 of file getHist.cpp.
References getObjectFromFile(), getObjectFromSocket(), gl_status, printf(), r_file, r_socket, and RDISP_ERR_NO_SOURCE.
Referenced by G__Dictionary__0_1300().
TFile* openRootFile | ( | const char * | filename) |
Opens ROOT file on disk
filename |
Definition at line 75 of file getHist.cpp.
References closeSource(), gl_status, printf(), r_file, RDISP_ERR_NO_FILE, and RDISP_ERR_NO_FOLDER.
Referenced by TOnlineFrame::OpenRootFile().
TSocket* openSocket | ( | const char * | hostname, |
const int | port_nr | ||
) |
Connects to ROOT server (MIDAS analyzer)
hostname | |
port_nr |
Definition at line 124 of file getHist.cpp.
References closeSource(), gl_status, printf(), r_socket, RDISP_ERR_BAD_RESPONSE, RDISP_ERR_NO_CON, RDISP_ERR_NO_RESPONSE, sprintf(), status, and timeout.
Referenced by TOnlineFrame::ConnectToServer().
void reset_error_code | ( | ) |
Clears error flag. All operations will be blocked untill ther error is cleared.
Definition at line 418 of file getHist.cpp.
References gl_status.