9 #ifndef _SACLACONVERTER_
10 #define _SACLACONVERTER_
12 #include <DataAccessUserAPI.h>
106 std::vector<int>::const_iterator last,
107 int blNbr,
int runNbr,
int highTagNbr);
173 void init(
int runNbr,
int blNbr);
211 void copyTo(pixeldetector::Detector::frame_t::iterator pos);
uint64_t operator()(const int highTagNbr, const int tagNbr, CASSEvent &event)
read data from SaclaDataAccessUserAPI
detector consists of tiles
Event to store all LCLS Data.
uint32_t xsize
the number of columns of the tile
size_t nPixels
the total nbr of pixels of the det
float gain
the absolute gain of the tile
detTileParams()
constructor
Class for reading SACLA data.
void init(int runNbr, int blNbr)
init the tile reader
float posy_um
the position in y in lab space of the tile in um
SACLAConverter()
constructor
void cacheParameters(std::vector< int >::const_iterator first, std::vector< int >::const_iterator last, int blNbr, int runNbr, int highTagNbr)
retrieve requested beamline parameters in one go
std::string cassName
the name of the machine value within the cassevent
std::vector< detParams > pixDets_t
define the pixel detectors container type
void cache()
cache the non-changing data
size_t bytes_retrieved
the number of bytes retrieved for this tile
machineVals_t _machineVals
the list of requested machine values
std::vector< detTileParams > tiles
vector containing the tiles of this detector
void loadSettings()
load the settings of the reader
std::vector< MachineValue > machineVals_t
define the machine values
float relativeGain
the realtive gain with respect to the tile that this tile should be normalized to ...
bool normalize
flag to tell whether the data of this tile should be normalized to another tile
float angle_deg
the angle in degree in lab space of the tile
int datasize_bytes
the size of the frame in bytes
values_t values
map that contains the tag as key and value for the value associated with the tag
pixDets_t _octalDetectors
the list of requested octal detectors
int CASSID
the id of the detector within the CASSEvent
float posz_um
the position in z in lab space of the tile in um
float pixsizey_um
the y size of a pixel in um
uint32_t nPixels
the number of pixles of this tile
float pixsizex_um
the x size of a pixel in um
size_t nRows
the total nbr of rows of the det
std::string databaseName
the name of the machine value within the database
size_t nCols
the total nbr of colums of the det
file contains global definitions for project cass
~detTileParams()
destruct the tile parameter
void copyTo(pixeldetector::Detector::frame_t::iterator pos)
copy data to frame
detParams()
intitalize to default values
std::map< int, double > values_t
define map with tags as key and value and mapped type
float posx_um
the position in x in lab space of the tile in um
char * readBuf
a read buffer object for the tile
contains container for simple pixel detector data
std::string name
the name of the tile
pixDets_t _pixelDetectors
the list of requested machine values
bool notLoaded
flag to tell whether the non-changeing data of this tile has been loaded
uint32_t ysize
the number of rows of the tile
char * sreader
a stream reader object for the tile
non changeing parameters of a pixel detector tile
container for the cached machine value
void readFromStreamer(unsigned int tag)
retrieve data from streamer into buffer
bool normalize
flag to tell whether the individual tiles of this detector should be normalized to the first tile ...