CFEL - ASG Software Suite  2.5.0
CASS
Public Member Functions | Public Attributes | List of all members
cass::SACLAConverter::detTileParams Struct Reference

non changeing parameters of a pixel detector tile More...

#include <sacla_converter.h>

+ Collaboration diagram for cass::SACLAConverter::detTileParams:

Public Member Functions

 detTileParams ()
 constructor More...
 
 ~detTileParams ()
 destruct the tile parameter More...
 
void init (int runNbr, int blNbr)
 init the tile reader More...
 
void readFromStreamer (unsigned int tag)
 retrieve data from streamer into buffer More...
 
void cache ()
 cache the non-changing data More...
 
void copyTo (pixeldetector::Detector::frame_t::iterator pos)
 copy data to frame More...
 

Public Attributes

std::string name
 the name of the tile More...
 
uint32_t xsize
 the number of columns of the tile More...
 
uint32_t ysize
 the number of rows of the tile More...
 
uint32_t nPixels
 the number of pixles of this tile More...
 
int datasize_bytes
 the size of the frame in bytes More...
 
float pixsizex_um
 the x size of a pixel in um More...
 
float pixsizey_um
 the y size of a pixel in um More...
 
float posx_um
 the position in x in lab space of the tile in um More...
 
float posy_um
 the position in y in lab space of the tile in um More...
 
float posz_um
 the position in z in lab space of the tile in um More...
 
float angle_deg
 the angle in degree in lab space of the tile More...
 
float gain
 the absolute gain of the tile More...
 
size_t bytes_retrieved
 the number of bytes retrieved for this tile More...
 
bool normalize
 flag to tell whether the data of this tile should be normalized to another tile More...
 
float relativeGain
 the realtive gain with respect to the tile that this tile should be normalized to More...
 
char * sreader
 a stream reader object for the tile More...
 
char * readBuf
 a read buffer object for the tile More...
 

Detailed Description

non changeing parameters of a pixel detector tile

Definition at line 136 of file sacla_converter.h.

Constructor & Destructor Documentation

cass::SACLAConverter::detTileParams::detTileParams ( )
inline

constructor

set the default parameters of the members

Definition at line 142 of file sacla_converter.h.

SACLAConverter::detTileParams::~detTileParams ( )

destruct the tile parameter

destroy the buffers

Definition at line 38 of file sacla_converter.cpp.

Member Function Documentation

void SACLAConverter::detTileParams::cache ( )

cache the non-changing data

one has to intialize the streamer using

See also
init and then retrieve data into the readbuffer using
readFromStreamer prior to calling this function
Exceptions
SaclaPixDetErrorwhen SACLA USER API function returned an error
Returns
true when caching worked, false when error occured

the number of columns

the number of rows

the x-size of the pixels of the tile

the y-size of the pixels of the tile

calc the total number of pixels form the x and y size

Definition at line 80 of file sacla_converter.cpp.

References cass::Log::add(), cass::Log::INFO, and cass::toString().

Referenced by cass::SACLAConverter::cacheParameters().

void SACLAConverter::detTileParams::copyTo ( pixeldetector::Detector::frame_t::iterator  pos)

copy data to frame

retrieve the data from the buffer and normalize it directly to the right position within the frame

one has to intialize the streamer using

See also
init and then retrieve data into the readbuffer using
readFromStreamer prior to calling this function
Exceptions
SaclaPixDetErrorwhen SACLA USER API function returned an error
Parameters
positerator to the frame in the cassevent

prepare the buffer where the data should be loaded to and retrieve the detector data from the reader buffer

use transform to copy the data

set the datasize of the retrieved data

Definition at line 126 of file sacla_converter.cpp.

References cass::toString().

Referenced by cass::SACLAConverter::operator()().

void SACLAConverter::detTileParams::init ( int  runNbr,
int  blNbr 
)

init the tile reader

Exceptions
SaclaPixDetErrorwhen SACLA USER API function returned an error
Returns
status of the initialization
Parameters
runNbrthe runnumber to intialize the stream reader with
blNbrthe beamline number to initialize the stream reader with

create stream reader object

create the read buffer

Definition at line 49 of file sacla_converter.cpp.

References cass::toString().

Referenced by cass::SACLAConverter::cacheParameters().

void SACLAConverter::detTileParams::readFromStreamer ( unsigned int  tag)

retrieve data from streamer into buffer

one has to intialize the streamer using

See also
init prior to calling this function
Exceptions
SaclaPixDetErrorwhen SACLA USER API function returned an error
Parameters
tagthe tag for which the data should be read

collect the detector tile data

Definition at line 69 of file sacla_converter.cpp.

References cass::toString().

Referenced by cass::SACLAConverter::cacheParameters(), and cass::SACLAConverter::operator()().

Member Data Documentation

float cass::SACLAConverter::detTileParams::angle_deg

the angle in degree in lab space of the tile

Definition at line 244 of file sacla_converter.h.

Referenced by cass::SACLAConverter::cacheParameters(), and cass::SACLAConverter::operator()().

size_t cass::SACLAConverter::detTileParams::bytes_retrieved

the number of bytes retrieved for this tile

Definition at line 250 of file sacla_converter.h.

Referenced by cass::SACLAConverter::operator()().

int cass::SACLAConverter::detTileParams::datasize_bytes

the size of the frame in bytes

Definition at line 226 of file sacla_converter.h.

float cass::SACLAConverter::detTileParams::gain

the absolute gain of the tile

Definition at line 247 of file sacla_converter.h.

Referenced by cass::SACLAConverter::cacheParameters(), and cass::SACLAConverter::operator()().

std::string cass::SACLAConverter::detTileParams::name

the name of the tile

Definition at line 214 of file sacla_converter.h.

Referenced by cass::SACLAConverter::cacheParameters(), and cass::SACLAConverter::operator()().

bool cass::SACLAConverter::detTileParams::normalize

flag to tell whether the data of this tile should be normalized to another tile

Definition at line 255 of file sacla_converter.h.

Referenced by cass::SACLAConverter::cacheParameters().

uint32_t cass::SACLAConverter::detTileParams::nPixels

the number of pixles of this tile

Definition at line 223 of file sacla_converter.h.

Referenced by cass::SACLAConverter::operator()().

float cass::SACLAConverter::detTileParams::pixsizex_um

the x size of a pixel in um

Definition at line 229 of file sacla_converter.h.

Referenced by cass::SACLAConverter::operator()().

float cass::SACLAConverter::detTileParams::pixsizey_um

the y size of a pixel in um

Definition at line 232 of file sacla_converter.h.

Referenced by cass::SACLAConverter::operator()().

float cass::SACLAConverter::detTileParams::posx_um

the position in x in lab space of the tile in um

Definition at line 235 of file sacla_converter.h.

Referenced by cass::SACLAConverter::cacheParameters(), and cass::SACLAConverter::operator()().

float cass::SACLAConverter::detTileParams::posy_um

the position in y in lab space of the tile in um

Definition at line 238 of file sacla_converter.h.

Referenced by cass::SACLAConverter::cacheParameters(), and cass::SACLAConverter::operator()().

float cass::SACLAConverter::detTileParams::posz_um

the position in z in lab space of the tile in um

Definition at line 241 of file sacla_converter.h.

Referenced by cass::SACLAConverter::cacheParameters(), and cass::SACLAConverter::operator()().

char* cass::SACLAConverter::detTileParams::readBuf

a read buffer object for the tile

Definition at line 266 of file sacla_converter.h.

Referenced by cass::SACLAConverter::cacheParameters().

float cass::SACLAConverter::detTileParams::relativeGain

the realtive gain with respect to the tile that this tile should be normalized to

Definition at line 260 of file sacla_converter.h.

Referenced by cass::SACLAConverter::cacheParameters(), and cass::SACLAConverter::operator()().

char* cass::SACLAConverter::detTileParams::sreader

a stream reader object for the tile

Definition at line 263 of file sacla_converter.h.

uint32_t cass::SACLAConverter::detTileParams::xsize

the number of columns of the tile

Definition at line 217 of file sacla_converter.h.

Referenced by cass::SACLAConverter::cacheParameters(), and cass::SACLAConverter::operator()().

uint32_t cass::SACLAConverter::detTileParams::ysize

the number of rows of the tile

Definition at line 220 of file sacla_converter.h.

Referenced by cass::SACLAConverter::cacheParameters(), and cass::SACLAConverter::operator()().


The documentation for this struct was generated from the following files: