#include <string>
#include <fstream>
#include <iomanip>
#include <sstream>
#include <iostream>
#include "PSEvt/Event.h"
#include "PSEnv/Env.h"
#include "PSEvt/Source.h"
#include "MsgLogger/MsgLogger.h"
#include "CSPadPixCoords/Image2D.h"
Go to the source code of this file.
Namespaces | |
namespace | CSPadPixCoords |
Classes | |
class | CSPadPixCoords::GlobalMethods |
Enumerations | |
enum | CSPadPixCoords::DATA_TYPE { CSPadPixCoords::ASDATA, CSPadPixCoords::FLOAT, CSPadPixCoords::DOUBLE, CSPadPixCoords::SHORT, CSPadPixCoords::UNSIGNED, CSPadPixCoords::INT, CSPadPixCoords::INT16, CSPadPixCoords::INT32, CSPadPixCoords::UINT, CSPadPixCoords::UINT8, CSPadPixCoords::UINT16, CSPadPixCoords::UINT32 } |
enum | CSPadPixCoords::FILE_MODE { CSPadPixCoords::BINARY, CSPadPixCoords::TEXT, CSPadPixCoords::TIFF, CSPadPixCoords::PNG, CSPadPixCoords::METADTEXT } |
Functions | |
std::string | CSPadPixCoords::stringFromUint (unsigned number, unsigned width=6, char fillchar='0') |
std::string | CSPadPixCoords::stringTimeStamp (PSEvt::Event &evt, std::string fmt="%Y%m%d-%H%M%S%f") |
std::string | CSPadPixCoords::stringRunNumber (PSEvt::Event &evt, unsigned width=4) |
int | CSPadPixCoords::getRunNumber (PSEvt::Event &evt) |
Returns integer run number. | |
double | CSPadPixCoords::doubleTime (PSEvt::Event &evt) |
unsigned | CSPadPixCoords::fiducials (PSEvt::Event &evt) |
unsigned | CSPadPixCoords::eventCounterSinceConfigure (PSEvt::Event &evt) |
void | CSPadPixCoords::printSizeOfTypes () |
void | CSPadPixCoords::defineImageShape (PSEvt::Event &evt, const PSEvt::Source &m_str_src, const std::string &m_key, unsigned *shape) |
Define the shape or throw message that can not do that. | |
void | CSPadPixCoords::printTimeStamp (PSEvt::Event &evt, int counter) |
template<typename T> | |
std::string | CSPadPixCoords::strOfDataTypeAndSize () |
template<typename T> | |
bool | CSPadPixCoords::isSupportedDataType () |
template<typename T, unsigned NDIM> | |
std::string | CSPadPixCoords::str_shape (const ndarray< const T, NDIM > &nda) |
template<typename T> | |
bool | CSPadPixCoords::defineImageShapeForType (PSEvt::Event &evt, const PSEvt::Source &str_src, const std::string &str_key, unsigned *shape) |
template<typename T> | |
void | CSPadPixCoords::save2DArrayInEnv (PSEnv::Env &env, const Pds::Src &src, const ndarray< const T, 2 > &ndarr) |
template<typename T> | |
void | CSPadPixCoords::save3DArrayInEnv (PSEnv::Env &env, const Pds::Src &src, const std::string &key, const ndarray< const T, 3 > &ndarr) |
template<typename T> | |
void | CSPadPixCoords::save2DArrayInEvent (PSEvt::Event &evt, const Pds::Src &src, const std::string &key, const ndarray< const T, 2 > &ndarr) |
template<typename T> | |
void | CSPadPixCoords::save3DArrInEvent (PSEvt::Event &evt, const Pds::Src &src, const std::string &key, const ndarray< const T, 3 > &ndarr) |
Save 3-D array in event, for src and key. | |
template<typename T> | |
void | CSPadPixCoords::save2DArrayInFile (const std::string &fname, const ndarray< const T, 2 > &ndarr, bool print_msg, FILE_MODE file_type=TEXT) |
Save ndarray in file. |