#include <TimepixDataV1ToV2.h>
Inheritance diagram for psddl_pds2psana::TimepixDataV1ToV2:
Public Types | |
typedef Pds::Timepix::DataV1 | XtcType |
typedef Psana::Timepix::DataV2 | PsanaType |
Public Member Functions | |
TimepixDataV1ToV2 (const boost::shared_ptr< const XtcType > &xtcPtr) | |
virtual | ~TimepixDataV1ToV2 () |
virtual uint16_t | width () const |
virtual uint16_t | height () const |
virtual uint32_t | timestamp () const |
virtual uint16_t | frameCounter () const |
virtual uint16_t | lostRows () const |
virtual ndarray< const uint16_t, 2 > | data () const |
virtual uint32_t | depth () const |
virtual uint32_t | depth_bytes () const |
virtual uint32_t | data_size () const |
const XtcType & | _xtcObj () const |
This special implementation is needed to re-shuffle data inside DataV1 class which is not usable directly without re-shuffling. Note that we use DataV2 interface instead of dataV1 to make this thing compatible with other places which do re-shuffling by converting DataV1 class into DataV2.
This software was developed for the LCLS project. If you use all or part of it, please give an appropriate acknowledgment.
Definition at line 60 of file TimepixDataV1ToV2.h.
Definition at line 64 of file TimepixDataV1ToV2.h.
Definition at line 63 of file TimepixDataV1ToV2.h.
psddl_pds2psana::TimepixDataV1ToV2::TimepixDataV1ToV2 | ( | const boost::shared_ptr< const XtcType > & | xtcPtr | ) |
Definition at line 39 of file TimepixDataV1ToV2.cpp.
psddl_pds2psana::TimepixDataV1ToV2::~TimepixDataV1ToV2 | ( | ) | [virtual] |
Definition at line 49 of file TimepixDataV1ToV2.cpp.
const XtcType& psddl_pds2psana::TimepixDataV1ToV2::_xtcObj | ( | ) | const [inline] |
Definition at line 81 of file TimepixDataV1ToV2.h.
ndarray< const uint16_t, 2 > psddl_pds2psana::TimepixDataV1ToV2::data | ( | ) | const [virtual] |
Implements Psana::Timepix::DataV2.
Definition at line 84 of file TimepixDataV1ToV2.cpp.
References ndarray< ElemType, NDim >::data(), height(), make_ndarray(), ndarray< ElemType, NDim >::size(), ex_all_dets::src, and width().
uint32_t psddl_pds2psana::TimepixDataV1ToV2::data_size | ( | ) | const [virtual] |
Size of the image data in bytes.
Implements Psana::Timepix::DataV2.
Definition at line 149 of file TimepixDataV1ToV2.cpp.
uint32_t psddl_pds2psana::TimepixDataV1ToV2::depth | ( | ) | const [virtual] |
uint32_t psddl_pds2psana::TimepixDataV1ToV2::depth_bytes | ( | ) | const [virtual] |
uint16_t psddl_pds2psana::TimepixDataV1ToV2::frameCounter | ( | ) | const [virtual] |
hardware frame counter
Implements Psana::Timepix::DataV2.
Definition at line 72 of file TimepixDataV1ToV2.cpp.
uint16_t psddl_pds2psana::TimepixDataV1ToV2::height | ( | ) | const [virtual] |
Pixels per column
Implements Psana::Timepix::DataV2.
Definition at line 61 of file TimepixDataV1ToV2.cpp.
Referenced by data().
uint16_t psddl_pds2psana::TimepixDataV1ToV2::lostRows | ( | ) | const [virtual] |
lost row count
Implements Psana::Timepix::DataV2.
Definition at line 78 of file TimepixDataV1ToV2.cpp.
uint32_t psddl_pds2psana::TimepixDataV1ToV2::timestamp | ( | ) | const [virtual] |
hardware timestamp
Implements Psana::Timepix::DataV2.
Definition at line 66 of file TimepixDataV1ToV2.cpp.
uint16_t psddl_pds2psana::TimepixDataV1ToV2::width | ( | ) | const [virtual] |
Pixels per row
Implements Psana::Timepix::DataV2.
Definition at line 55 of file TimepixDataV1ToV2.cpp.
Referenced by data().