Classes | |
class | CSPad2x2ConfigPars |
CSPad2x2ConfigPars is a store for CSPAD2x2 configuration parameters. More... | |
class | CSPad2x2ImageProducer |
CSPad2x2ImageProducer produces the CSPad2x2 image for each event and add it to the event in psana framework. More... | |
class | CSPad2x2NDArrProducer |
CSPad2x2NDArrProducer produces the CSPad data ndarray<T,3> array for each event and add it to the event in psana framework. More... | |
class | CSPad2x2NDArrReshape |
CSPad2x2NDArrReshape produces the CSPad data ndarray<T,3> array for each event and add it to the event in psana framework. More... | |
class | CSPadConfigPars |
CSPadConfigPars is a store for CSPAD configuration parameters. More... | |
class | CSPadImageGetTest |
CSPadImageGetTest is a test/example module for psana framework. More... | |
class | CSPadImageProducer |
struct | ArrAddr |
CSPadInterpolImageProducer produces the CSPad image for each event and add it to the event in psana framework. More... | |
class | CSPadInterpolImageProducer |
class | CSPadNDArrProducer |
CSPadNDArrProducer produces the CSPad data ndarray<T,3> array for each event and add it to the event in psana framework. More... | |
class | GlobalMethods |
class | Image2D |
Image2D class provides access to the 2D image data. More... | |
class | PixCoords2x1 |
PixCoords2x1 class defines the 2x1 section pixel coordinates in its local frame. More... | |
class | PixCoords2x1V2 |
PixCoords2x1V2 class defines the 2x1 sensor pixel coordinates in its local frame. V2 stands for latest version. More... | |
class | PixCoordsCSPad |
PixCoordsCSPad class fills and provides access to the CSPad pixel coordinates. More... | |
class | PixCoordsCSPad2x2 |
PixCoordsCSPad2x2 class defines the CSPad2x2 pixel coordinates in its local frame. More... | |
class | PixCoordsCSPad2x2V2 |
PixCoordsCSPad2x2V2 class defines the CSPAD2x2 pixel coordinates. More... | |
class | PixCoordsCSPadV2 |
PixCoordsCSPadV2 class defines the CSPad pixel coordinates in the detector. More... | |
class | PixCoordsQuad |
PixCoordsQuad class defines the quad pixel coordinates in its local frame. More... | |
class | PixCoordsTest |
PixCoordsTest class is a test/example module for psana. More... | |
class | QuadParameters |
QuadParameters class holds current parameters for the CSPad quads. More... | |
class | SaveImageInFile |
SaveImageInFile is a test/example module for psana framework. More... | |
Typedefs | |
typedef int16_t | pixmap_cspad_t |
CSPadImageProducer produces the CSPad image for each event and add it to the event in psana framework. | |
typedef int32_t | pixnum_cspad_t |
Enumerations | |
enum | DATA_TYPE { ASDATA, FLOAT, DOUBLE, SHORT, UNSIGNED, INT, INT16, INT32, UINT, UINT8, UINT16, UINT32 } |
enum | FILE_MODE { BINARY, TEXT, TIFF, PNG, METADTEXT } |
Functions | |
std::ostream & | operator<< (std::ostream &s, const ArrAddr &a) |
bool | areEqual (const ArrAddr &a1, const ArrAddr &a2) |
std::string | stringFromUint (unsigned number, unsigned width=6, char fillchar='0') |
std::string | stringTimeStamp (PSEvt::Event &evt, std::string fmt="%Y%m%d-%H%M%S%f") |
std::string | stringRunNumber (PSEvt::Event &evt, unsigned width=4) |
int | getRunNumber (PSEvt::Event &evt) |
Returns integer run number. | |
double | doubleTime (PSEvt::Event &evt) |
unsigned | fiducials (PSEvt::Event &evt) |
unsigned | eventCounterSinceConfigure (PSEvt::Event &evt) |
void | printSizeOfTypes () |
void | 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 | printTimeStamp (PSEvt::Event &evt, int counter) |
template<typename T> | |
std::string | strOfDataTypeAndSize () |
template<typename T> | |
bool | isSupportedDataType () |
template<typename T, unsigned NDIM> | |
std::string | str_shape (const ndarray< const T, NDIM > &nda) |
template<typename T> | |
bool | defineImageShapeForType (PSEvt::Event &evt, const PSEvt::Source &str_src, const std::string &str_key, unsigned *shape) |
template<typename T> | |
void | save2DArrayInEnv (PSEnv::Env &env, const Pds::Src &src, const ndarray< const T, 2 > &ndarr) |
template<typename T> | |
void | save3DArrayInEnv (PSEnv::Env &env, const Pds::Src &src, const std::string &key, const ndarray< const T, 3 > &ndarr) |
template<typename T> | |
void | save2DArrayInEvent (PSEvt::Event &evt, const Pds::Src &src, const std::string &key, const ndarray< const T, 2 > &ndarr) |
template<typename T> | |
void | 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 | save2DArrayInFile (const std::string &fname, const ndarray< const T, 2 > &ndarr, bool print_msg, FILE_MODE file_type=TEXT) |
Save ndarray in file. | |
void | rotation (const double *x, const double *y, unsigned size, double angle_deg, double *xrot, double *yrot) |
Global method for x and y arrays rotation. | |
void | rotation (const double *x, const double *y, unsigned size, double C, double S, double *xrot, double *yrot) |
Global method for x and y arrays rotation. | |
double | min_of_array (const double *arr, unsigned size) |
Global method, returns minimal value of the array of specified length. | |
double | max_of_array (const double *arr, unsigned size) |
Global method, returns maximal value of the array of specified length. | |
Variables | |
static const double | DEG_TO_RAD = 3.141592653589793238463 / 180 |
const char | logger [] = "PixCoordsCSPad2x2" |
const char | logger [] = "CSPadPixCoords" |
const char | logger [] = "CSPadPixCoords" |
typedef int32_t CSPadPixCoords::pixnum_cspad_t |
Definition at line 82 of file CSPadImageProducer.h.
Definition at line 65 of file GlobalMethods.h.
std::ostream & CSPadPixCoords::operator<< | ( | std::ostream & | s, | |
const ArrAddr & | a | |||
) |
Operator << is useful for printing of the struct ArrAddr objects.
Definition at line 255 of file CSPadInterpolImageProducer.cpp.
References CSPadPixCoords::ArrAddr::col, CSPadPixCoords::ArrAddr::quad, CSPadPixCoords::ArrAddr::row, and CSPadPixCoords::ArrAddr::sect.
Comparison of the two struct ArrAddr objects.
Definition at line 270 of file CSPadInterpolImageProducer.cpp.
References CSPadPixCoords::ArrAddr::col, CSPadPixCoords::ArrAddr::quad, CSPadPixCoords::ArrAddr::row, and CSPadPixCoords::ArrAddr::sect.
Referenced by CSPadPixCoords::CSPadInterpolImageProducer::get_address_of_4_neighbors(), and CSPadPixCoords::CSPadInterpolImageProducer::get_weight_of_4_neighbors().
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" | |||
) |
Definition at line 70 of file GlobalMethods.cpp.
std::string CSPadPixCoords::stringRunNumber | ( | PSEvt::Event & | evt, | |
unsigned | width = 4 | |||
) |
int CSPadPixCoords::getRunNumber | ( | PSEvt::Event & | evt | ) |
Returns integer run number.
Definition at line 101 of file GlobalMethods.cpp.
Referenced by CSPadPixCoords::CSPadImageProducer::getCalibPars(), and CSPadPixCoords::CSPad2x2ImageProducer::getCalibPars().
double CSPadPixCoords::doubleTime | ( | PSEvt::Event & | evt | ) |
Definition at line 80 of file GlobalMethods.cpp.
unsigned CSPadPixCoords::fiducials | ( | PSEvt::Event & | evt | ) |
Definition at line 129 of file GlobalMethods.cpp.
unsigned CSPadPixCoords::eventCounterSinceConfigure | ( | PSEvt::Event & | evt | ) |
Definition at line 139 of file GlobalMethods.cpp.
void CSPadPixCoords::printSizeOfTypes | ( | ) |
Definition at line 149 of file GlobalMethods.cpp.
Referenced by CSPadPixCoords::CSPadNDArrProducer::beginJob(), CSPadPixCoords::CSPadImageProducer::beginJob(), CSPadPixCoords::CSPad2x2NDArrReshape::beginJob(), CSPadPixCoords::CSPad2x2NDArrProducer::beginJob(), and CSPadPixCoords::CSPad2x2ImageProducer::beginJob().
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.
Definition at line 167 of file GlobalMethods.cpp.
References GeometryAccess::msg.
void CSPadPixCoords::printTimeStamp | ( | PSEvt::Event & | evt, | |
int | counter | |||
) |
Definition at line 115 of file GlobalMethods.cpp.
Referenced by CSPadPixCoords::CSPadImageProducer::event(), and CSPadPixCoords::CSPad2x2ImageProducer::event().
std::string CSPadPixCoords::strOfDataTypeAndSize | ( | ) |
Definition at line 103 of file GlobalMethods.h.
bool CSPadPixCoords::isSupportedDataType | ( | ) |
Definition at line 112 of file GlobalMethods.h.
std::string CSPadPixCoords::str_shape | ( | const ndarray< const T, NDIM > & | nda | ) |
bool CSPadPixCoords::defineImageShapeForType | ( | PSEvt::Event & | evt, | |
const PSEvt::Source & | str_src, | |||
const std::string & | str_key, | |||
unsigned * | shape | |||
) |
Definition at line 137 of file GlobalMethods.h.
void CSPadPixCoords::save2DArrayInEnv | ( | PSEnv::Env & | env, | |
const Pds::Src & | src, | |||
const ndarray< const T, 2 > & | ndarr | |||
) |
Definition at line 151 of file GlobalMethods.h.
void CSPadPixCoords::save3DArrayInEnv | ( | PSEnv::Env & | env, | |
const Pds::Src & | src, | |||
const std::string & | key, | |||
const ndarray< const T, 3 > & | ndarr | |||
) |
Definition at line 160 of file GlobalMethods.h.
void CSPadPixCoords::save2DArrayInEvent | ( | PSEvt::Event & | evt, | |
const Pds::Src & | src, | |||
const std::string & | key, | |||
const ndarray< const T, 2 > & | ndarr | |||
) |
Definition at line 169 of file GlobalMethods.h.
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.
[in] | evt | |
[in] | src | |
[in] | key | |
[out] | ndarr |
Definition at line 194 of file GlobalMethods.h.
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.
Definition at line 203 of file GlobalMethods.h.
References PlotSpectralArrayFromFile::arr, BINARY, h5constants::data, CalibPars::shape(), and TEXT.
void CSPadPixCoords::rotation | ( | const double * | x, | |
const double * | y, | |||
unsigned | size, | |||
double | angle_deg, | |||
double * | xrot, | |||
double * | yrot | |||
) |
Global method for x and y arrays rotation.
Definition at line 50 of file PixCoords2x1V2.cpp.
References DEG_TO_RAD.
Referenced by CSPadPixCoords::PixCoordsQuad::fillOneQuad(), CSPadPixCoords::PixCoordsCSPad::fillOneQuadCoordsInCSPad(), CSPadPixCoords::PixCoordsCSPad::fillOneQuadTiltedCoordsInCSPad(), CSPadPixCoords::PixCoordsCSPadV2::fillPixelCoordinateArrays(), CSPadPixCoords::PixCoordsCSPad2x2V2::fillPixelCoordinateArrays(), CSPadPixCoords::PixCoordsCSPad2x2::fillPixelCoordinateArrays(), and CSPadPixCoords::PixCoords2x1V2::get_coord_map_2x1().
void CSPadPixCoords::rotation | ( | const double * | x, | |
const double * | y, | |||
unsigned | size, | |||
double | C, | |||
double | S, | |||
double * | xrot, | |||
double * | yrot | |||
) |
double CSPadPixCoords::min_of_array | ( | const double * | arr, | |
unsigned | size | |||
) |
Global method, returns minimal value of the array of specified length.
Definition at line 70 of file PixCoords2x1V2.cpp.
Referenced by CSPadPixCoords::PixCoords2x1V2::get_min_of_coord_map_2x1().
double CSPadPixCoords::max_of_array | ( | const double * | arr, | |
unsigned | size | |||
) |
Global method, returns maximal value of the array of specified length.
Definition at line 78 of file PixCoords2x1V2.cpp.
Referenced by CSPadPixCoords::PixCoords2x1V2::get_max_of_coord_map_2x1().
const double CSPadPixCoords::DEG_TO_RAD = 3.141592653589793238463 / 180 [static] |
Definition at line 299 of file PixCoords2x1V2.h.
Referenced by GeometryObject::rotation(), and rotation().
const char CSPadPixCoords::logger[] = "PixCoordsCSPad2x2" |
Definition at line 41 of file PixCoordsCSPad2x2.cpp.
Referenced by pdscalibdata::CsPadCommonModeSubV1::CsPadCommonModeSubV1(), pdscalibdata::CsPadFilterV1::CsPadFilterV1(), pdscalibdata::CsPadFilterV1::filter(), pdscalibdata::CsPadCommonModeSubV1::findCommonMode(), cspad_mod::DataProxyT< DataType, ElemType >::getTypedImpl(), cspad_mod::DataProxy2x2::getTypedImpl(), cspad_mod::CalibDataProxy< T >::getTypedImpl(), CSPadPixCoords::PixCoordsCSPad2x2::printXYLimits(), and CalibFileFinder::selectCalibFile().
const char CSPadPixCoords::logger[] = "CSPadPixCoords" |
Definition at line 38 of file PixCoordsCSPad2x2V2.cpp.
const char CSPadPixCoords::logger[] = "CSPadPixCoords" |
Definition at line 38 of file PixCoordsCSPadV2.cpp.