R. Michaels, March 2000 Updated string_from_buffer, May 2007 THaUsrstrutils = USeR STRing UTILitieS. The code below is what is used by DAQ to interpret strings like prescale factors Yes, this is mostly old-style C, but it has the advantage that the interpretation should be identical to what the DAQ used.
virtual | ~THaUsrstrutils() |
static TClass* | Class() |
int | getflag(const char* s) const |
unsigned int | getint(const char* s) const |
char* | getstr(const char* s) const |
virtual TClass* | IsA() const |
Decoder::THaUsrstrutils& | operator=(const Decoder::THaUsrstrutils&) |
virtual void | ShowMembers(TMemberInspector&) |
virtual void | Streamer(TBuffer&) |
void | StreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b) |
void | string_from_evbuffer(const UInt_t* evbuffer, int nlen = MAX) |
void | string_from_file(const char* ffile_name) |
Decoder::THaUsrstrutils | THaUsrstrutils() |
Decoder::THaUsrstrutils | THaUsrstrutils(const Decoder::THaUsrstrutils&) |
void | getflagpos(const char* s, const char** pos_ret, const char** val_ret) const |
static void | getflagpos_instring(const char* constr, const char* s, const char** pos_ret, const char** val_ret) |
Routine string_from_evbuffer loads the configstr from the event buffer. It has the same strengths and weaknesses as the DAQ code, hence the interpretation should be the same. nlen is the length of the string data (from CODA) in longwords (4 bytes) R. Michaels, updated to make the algorithm closely resemble the usrstrutils.c used by trigger supervisor.