10 #ifndef _PIXEL_DETECTOR_HPP_
11 #define _PIXEL_DETECTOR_HPP_
79 for (frame_t::const_iterator it=
_frame.begin();it!=
_frame.end();++it)
99 for (
int i(0); i < nPixels;++i)
187 detectors_t::const_iterator it(
_detectors.begin());
191 it->second.serialize(out);
206 size_t nbrDetectors(in.
retrieve<
size_t>());
208 for(uint32_t i(0); i < nbrDetectors; ++nbrDetectors)
210 detectors_t::key_type key(in.
retrieve<detectors_t::key_type>());
definition of front detector[PixelDetectors] FrontPnCCD Detector
uint32_t camaxMagic() const
getter
void serialize(SerializerBackend &out) const
serialize the data to the Serializer
Detector(SerializerBackend &in)
constructor
frame_t _frame
Linear array of CCD data.
std::string _info
infostring of the detector, telling the name of the detector (pnCCD specific)
std::string & info()
setter
uint32_t _camaxMagic
magic camax info, encodes ie.
uint16_t columns() const
getter
void serialize(SerializerBackend &out) const
serialize the data to the Serializer
detectors_t & dets()
instrument setter
virtual void writeVersion(SerializerBackend &out) const
write the version to the stream
uint64_t _eventID
the eventid that this detector belongs to (can be used for crosschecks
const detectors_t & dets() const
instrument getter
std::pair< size_t, size_t > shape_t
define a shape of an image columnsxrows
uint16_t & columns()
setter
uint16_t _columns
number of columns of the frame
float pixel_t
define a pixel of the pixel detector
contains base class for all devices that are part of the cassevent.
const frame_t & frame() const
getter
file contains base class all serializable classes
shape_t shape() const
getter
bool deserialize(SerializerBackend &in)
deserialize the data from the Serializer
const std::string & timingFilename() const
getter
std::vector< pixel_t > frame_t
a frame is a vector of pixels
std::string & timingFilename()
setter
detectors_t _detectors
Container for all pixel detectors.
const std::string & info() const
getter
uint16_t _rows
number of rows of the frame
virtual void checkVersion(SerializerBackend &in) const
check the version
uint32_t & camaxMagic()
setter
uint16_t rows() const
getter
the device containing pixel detector data
uint64_t id() const
getter
Type retrieve()
read arbitrary value from stream
Detector containing a ccd camera image.
A Baseclass for all Devices in the CASSEvent.
std::map< int32_t, Detector > detectors_t
define the detector container
void add(const Type &value)
add arbitrary value to the stream
std::string _timingFilename
filename of the file containing the timing info of the sequenzer (pnCCD specific) ...
bool deserialize(SerializerBackend &in)
deserialize the data from the Serializer