lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
utils Directory Reference

Files

 ctest_utils.hh
 Declares small test helpers that print and modify arrays and vectors.
 
 DirFileIterator.hh
 Declares psalg::DirFileIterator, which iterates over directory entries whose names contain a pattern.
 
 Logger.hh
 Declares the psalg logging classes (Logger singleton, LogStream, LogRecord, LogFormatter, LogHandler, LogHandlerStdStreams) and the MSG, MSGLOG and MSGSTREAM macros.
 
 MacTimeFix.hh
 On macOS without CLOCK_REALTIME, defines CLOCK_REALTIME and CLOCK_MONOTONIC as 0 and a clock_gettime() that fills the timespec from gettimeofday() (microsecond resolution); on other systems it only includes time.h.
 
 NDArrayGenerators.hh
 Declares templates that fill an NDArray with a constant, uniform random integers or normal random values.
 
 SysLog.hh
 Declares psalg::SysLog, static wrappers around syslog(3) that tag messages by level.
 
 trim.hh
 Declares psalg string helpers that remove whitespace: ltrim, rtrim, trim and strip.
 
 Utils.hh
 Declares psalg directory helpers files_in_dir() and dir_content().