CFEL - ASG Software Suite
2.5.0
CASS
|
Namespaces | |
ACQIRIS | |
ACQIRISTDC | |
AGATRemoteHeader | |
CBF | |
GeometryInfo | |
hdf5 | |
histogramming | |
hllDataTypes | |
lclsid | |
lmaHeader | |
MachineData | |
pixeldetector | |
ROOT | |
namespace for ROOT related functions | |
sssFile | |
Streaming | |
Classes | |
class | AccumulatingProcessor |
an accumulating processor More... | |
struct | AGIPDTile |
a tile More... | |
class | AlphaCounter |
an alphabetical counter extension More... | |
struct | Axis |
an axis of a more than 0 dimensional container More... | |
class | CachedList |
a list of results for caching More... | |
class | CASSEvent |
Event to store all LCLS Data. More... | |
class | CASSSettings |
Settings for CASS. More... | |
class | CommandlineArgumentParser |
command line argument parser More... | |
class | ConversionBackend |
Base class for Converters. More... | |
class | CummulativeStatisticsCalculator |
statistics calculator for a cummulative statistic More... | |
class | CummulativeStatisticsNoOutlier |
statistics calculator for a cummulative statistic, removes outliers More... | |
class | DataGenerationError |
Exception thrown when there is a problem during data generation. More... | |
class | DataGenerator |
base class for all data generators More... | |
class | DeserializeError |
Exception thrown when there is a problem with deserializing QDataStreams. More... | |
struct | DetectorTile |
A Tile of a Detector. More... | |
class | DeviceBackend |
A Baseclass for all Devices in the CASSEvent. More... | |
class | Factory |
Factory for creating shared_pointers of classes derived from a base class. More... | |
class | FileInput |
File Input for cass. More... | |
class | FileParser |
base class for all file parsers More... | |
struct | FilePointer |
A resource that will point at a specific location within a file. More... | |
class | FileProcessor |
process a file More... | |
class | FileReader |
base class for all file readers More... | |
class | FormatConverter |
Format converter container. More... | |
class | Frms6Parser |
Will parse a frms6 file created by Xonline. More... | |
class | HDF5FileInput |
HDF5 File Input for cass. More... | |
class | HexCalibrator |
Achims resort routine calibrator. More... | |
class | IdList |
id-list More... | |
class | ImageGenerator |
generate a waveform of a chosen type More... | |
class | InputBase |
Input base class. More... | |
class | InvalidData |
Exception thrown when there is a problem with the data. More... | |
class | InvalidProcessorError |
Exception thrown when accessing invalid processor. More... | |
class | InvalidResultError |
Exception thrown when accessing invalid histogram. More... | |
class | Log |
a logger for logging debug and info messages More... | |
struct | MachineInfo |
a struct combining the information needed to get machine values More... | |
struct | machineVal |
A machine vale. More... | |
class | MedianCalculator |
statistics calculator for a median More... | |
class | MovingStatisticsCalculator |
statistics calculator for a exponential moving statistics More... | |
class | MultiFileInput |
Multi File Input for cass. More... | |
struct | OctalDetector |
An Octal Detector. More... | |
class | pp1 |
Operation on 2 results. More... | |
class | pp1002 |
saves a selected 2d histogram to hdf5 More... | |
class | pp105 |
Pixeldetector image. More... | |
class | pp107 |
display the maps More... | |
class | pp109 |
Pixeldetector raw image. More... | |
class | pp110 |
acqiris channel waveform. More... | |
class | pp111 |
cfd trace from waveform More... | |
class | pp112 |
cfd analysis of waveform More... | |
class | pp12 |
Constant Value processor. More... | |
class | pp120 |
retrieval of beamline data. More... | |
class | pp121 |
check whether event contains eventcode More... | |
class | pp122 |
retrieve the eventId from event More... | |
class | pp123 |
retrieve beamline spectrometer data More... | |
class | pp13 |
return the input More... | |
class | pp130 |
retrieval of Epics data. More... | |
class | pp14 |
clear result More... | |
class | pp144 |
coalesced pixels (hits) on a pixeldetector. More... | |
class | pp145 |
Number of coalesced pixels (hits) in a pixeldetector. More... | |
class | pp146 |
split level of the colesced pixels (hits) of CCD's. More... | |
class | pp148 |
image of detected pixels in a pixeldetector. More... | |
class | pp149 |
Number of detected pixels of an pixeldetector. More... | |
class | pp15 |
Check whether value has changed. More... | |
class | pp150 |
Number of Signals in MCP Waveform. More... | |
class | pp1500 |
converts histograms to (c)rystal (b)inary (f)ormat files. More... | |
class | pp151 |
all mcp signals. More... | |
class | pp152 |
FWHM vs. More... | |
class | pp153 |
Deadtime between two consecutive mcp signals. More... | |
class | pp160 |
Number of Signals in Anode Layers Waveform. More... | |
class | pp1600 |
convert cspad 2d histogram into cheetah layout More... | |
class | pp1601 |
convert cspad 2d histogram into a quasi oriented layout More... | |
class | pp1602 |
convert cspad data into laboratory frame using crystfel geometry files More... | |
class | pp161 |
FWHM vs. More... | |
class | pp162 |
Timesum of Delayline. More... | |
class | pp163 |
Timesum of Delayline Anode vs Position of Anode. More... | |
class | pp164 |
detector picture of first hit. More... | |
class | pp165 |
Number of reconstucted hits. More... | |
class | pp166 |
detector hits values. More... | |
class | pp167 |
Deadtime between two consecutive anode signals. More... | |
class | pp2 |
Operation on result with value. More... | |
class | pp200 |
![]() | |
class | pp2000 |
root file converter More... | |
class | pp2001 |
root file converter More... | |
class | pp201 |
angular distribution of a requested image. More... | |
class | pp202 |
transform kartesian to poloar coordinates More... | |
class | pp203 |
get the local background from image. More... | |
class | pp204 |
find bragg peaks and store them in a list More... | |
class | pp205 |
visualize the peaks that were found in the image itself More... | |
class | pp206 |
find pixels of bragg peaks and store them in a list More... | |
class | pp208 |
find bragg peaks and store them in list More... | |
class | pp209 |
find connected pixels, coalesce them and store them in a list More... | |
class | pp210 |
class | pp220 |
Pipico spectra. More... | |
class | pp230 |
retrieve photonenergy. More... | |
class | pp240 |
Test image. More... | |
class | pp241 |
decreased offset correction More... | |
class | pp242 |
process untreated frame with mask More... | |
class | pp243 |
apply mask to an image, set the masked pixel to a certain value More... | |
class | pp244 |
generate a histogram for each pixel of the input 2d image More... | |
class | pp250 |
Particle value. More... | |
class | pp251 |
Particle values. More... | |
class | pp252 |
Number of particles found per shot. More... | |
class | pp300 |
Single particle hit. More... | |
class | pp301 |
calculate median of last values. More... | |
class | pp302 |
load data from binary dump into 2DHistogram More... | |
class | pp310 |
calculate the autocorrelation of an image in radial coordinates More... | |
class | pp311 |
calculate the autocorrelation of an image More... | |
class | pp312 |
calculate the absolute squared fft of an histogram More... | |
struct | pp312Traits |
struct | pp312Traits< double > |
struct | pp312Traits< float > |
class | pp313 |
convolute histogram with kernel More... | |
class | pp330 |
pixel detector calibrations More... | |
class | pp331 |
pixel detector gain calibrations More... | |
class | pp332 |
pixel detector hot pixel detection More... | |
class | pp333 |
pixel detector common mode background calculation More... | |
class | pp334 |
pixel detector common mode background calculation More... | |
class | pp4 |
Apply boolean NOT to 0D result. More... | |
class | pp40 |
Threshold result. More... | |
class | pp400 |
converts a Electron Time of Flight trace to Energy More... | |
class | pp404 |
convert time of flight to charge to mass ratio More... | |
class | pp405 |
calc the pulse duration from the bld More... | |
class | pp406 |
Tof to Energy correct from 0D histogram. More... | |
class | pp407 |
Tof to Energy linear interpolation. More... | |
class | pp408 |
Tof to Energy linear interpolation and correct from 0d histogram. More... | |
class | pp41 |
Threshold result based upon information from another result. More... | |
class | pp410 |
Covariance map. More... | |
class | pp412 |
calculate intensity correction More... | |
class | pp50 |
Projection of 2d result. More... | |
class | pp500 |
add a new column where the contents are taken from another results based on the index provided in this table More... | |
class | pp5000 |
Electron energy. More... | |
class | pp5001 |
Tripple coincidence spectra. More... | |
class | pp51 |
Integral of 1D result. More... | |
class | pp55 |
rotate, transpose, invert axis on 2d result. More... | |
class | pp56 |
store previous result of other Processor More... | |
class | pp57 |
Weighted Projection of 2D result. More... | |
class | pp60 |
0D,1D or 2D to 1D histogramming. More... | |
class | pp61 |
result averaging. More... | |
class | pp62 |
result summing. More... | |
class | pp63 |
time average of 0d result. More... | |
class | pp64 |
record 0d result into 1d result. More... | |
class | pp65 |
0D, 1D, and 2D to 2D histogramming. More... | |
class | pp66 |
1D to 2D combining More... | |
class | pp68 |
0D and 1D to 2D combining. More... | |
class | pp69 |
0D to 1D scatter plot. More... | |
class | pp70 |
Subset result. More... | |
class | pp71 |
Returns a the min or max value of a result. More... | |
class | pp72 |
get specific column from table like histogram More... | |
class | pp73 |
get all rows with condition on a column More... | |
class | pp74 |
retrieve a specific value of a specific row More... | |
class | pp75 |
clear result More... | |
class | pp76 |
Quit Program. More... | |
class | pp77 |
Checks for id on list. More... | |
class | pp78 |
Counter. More... | |
class | pp79 |
generate a 2d Histogram from values of 2 columns of a table More... | |
class | pp81 |
retrieve user choosable type of bin of 1D result More... | |
class | pp82 |
return the statistic values of all bins of a result More... | |
class | pp85 |
return full width at half maximum in given range of 1D result More... | |
class | pp86 |
find step in 1d result More... | |
class | pp87 |
find center of Mass of 1D result in a user given range More... | |
class | pp88 |
return axis parameter of a result More... | |
class | pp89 |
low / high pass filter of 1D result More... | |
class | pp9 |
Check whether result is in range. More... | |
class | pp90 |
Create a radial average of q values from a raw detector image. More... | |
class | pp91 |
returns a list of local extreme points in a 1D result More... | |
class | PreAverage |
short description More... | |
class | ProcessableTimedout |
Exception thrown when a timeout occured. More... | |
class | Processor |
base class for processors. More... | |
class | ProcessorManager |
container and call handler for all registered processors. More... | |
class | Ratemeter |
class calculating a rate in Hz. More... | |
class | RatePlotter |
Plotting information about the ongoing processing. More... | |
class | RAWSSSParser |
Will parse a file containing commercial ccd images. More... | |
struct | Registrar |
helper struct that will add Derived to the factory map More... | |
class | RestartInputLoop |
Exception thrown when one needs to reastart the input loop. More... | |
class | Result |
A result of a processor. More... | |
class | RingBuffer |
A Ringbuffer, handles communication between Input and Worker Threads. More... | |
class | ROOTFileHelper |
root file creation More... | |
struct | Rotor |
matrix rotation struct More... | |
class | SACLAConverter |
Class for reading SACLA data. More... | |
class | SACLAOfflineInput |
SACLA Offline Input for cass. More... | |
class | SACLAOnlineInput |
Online Input to be used at SACLA. More... | |
class | SaclaPixDetError |
Exception thrown when there is an error with a SACLA Pixel Detector. More... | |
class | SegmentCopier |
copy from a source matrix to a destination matrix in user wanted way More... | |
class | Serializable |
Serializable. More... | |
class | Serializer |
A string serializer. More... | |
class | SerializerBackend |
A serializer. More... | |
class | SerializerReadFile |
A file input deserializer. More... | |
class | SerializerWriteFile |
A file output serializer. More... | |
class | SharedMemoryInput |
Shared Memory Input for receiving xtc datagrams. More... | |
class | SoapHandler |
Handle a single SOAP request. More... | |
class | SoapServer |
SOAP server. More... | |
struct | Splitter |
split the line into the values in that line More... | |
class | TagListProcessor |
A processor for a tag list. More... | |
class | TagOutdated |
Exception thrown when SACLA tag is outdated. More... | |
class | TCPInput |
TCP Input for receiving data. More... | |
class | TCPStreamer |
base class for all tcp streamers More... | |
class | TestInput |
Testing Input for cass. More... | |
class | threshold |
Binary function for thresholding. More... | |
class | TimeAverage |
binary function for averaging. More... | |
struct | Tokenizer |
tokenize to return all lines of an ascii file in a vector More... | |
class | TxtParser |
Will parse a txt files. More... | |
class | TxtReader |
class for reading txt files More... | |
class | WaveformGenerator |
generate a waveform of a chosen type More... | |
class | weighted_minus |
binary function for weighted subtraction. More... | |
class | Worker |
The worker thread. More... | |
class | Workers |
Worker Thread Handler. More... | |
class | XFELHDF5FileInput |
XFEL HDF5 File Input for cass. More... | |
class | XFELOnlineInput |
XFEL Input for receiving data. More... | |
class | XtcIterator |
Iteration over XTC's. More... | |
class | XtcParser |
class for parsing xtc files More... | |
class | XtcReader |
class for reading xtc files More... | |
class | ZMQInput |
ZMQ Input for receiving data. More... | |
Typedefs | |
typedef std::pair< std::tr1::shared_ptr< FileReader >, FilePointer > | filereaderpointerpair_t |
pair of a file pointer with the associated file reader More... | |
typedef std::vector< filereaderpointerpair_t > | positionreaders_t |
map file name to the filepointer More... | |
typedef std::map< uint64_t, positionreaders_t > | event2positionreaders_t |
the list of events contained in a file with the associated position and reader More... | |
typedef HelperAcqirisDetectors::helperinstancesmap_t::key_type | detectorkey_t |
typedef for easier code More... | |
typedef list< detectorkey_t > | dlddetectors_t |
typedef for easier code More... | |
typedef pair< DelaylineDetector::particles_t::key_type, HelperAcqirisDetectors::helperinstancesmap_t::key_type > | particleskey_t |
typedef for easier code More... | |
typedef list< particleskey_t > | particleslist_t |
typedef for easier code More... | |
Functions | |
void | endInputThread (int) |
end the input thread More... | |
void | setSignalHandler () |
set up the own handler to react on the sigquit (crtl+ \) signal More... | |
template<typename Type > | |
std::string | toString (const Type &t) |
convert any type to a string More... | |
template<typename T > | |
T | square (const T &val) |
multiply number by itself More... | |
bool | getCompleteTagList (vector< int > &taglist, int &highTagNbr, int blNbr, int runNbr) |
retrieve the list of tags and the associated high tag number More... | |
void | tileToFrames (const AGIPDTile &tile, const uint64_t &eventId, pixeldetector::Detector::frame_t::iterator dframe, pixeldetector::Detector::frame_t::iterator gframe, pixeldetector::Detector::frame_t::iterator mframe, const bool precache) |
get the tile from the hdf5 file and copy it to the correct position in the frame More... | |
static void | Destroy (Xtc *) |
overwrite the destruction of xtc pointers More... | |
Processor::result_t::shared_pointer | set1DHist (const Processor::name_t &name) |
function to set the 1d histogram properties from the ini file. More... | |
Processor::result_t::shared_pointer | set2DHist (const Processor::name_t &name) |
function to set the 2d histogram properties from the ini file. More... | |
template<typename T > | |
void | unique (std::list< T > &l) |
Helper function to delete duplicates from a std::list. More... | |
template<typename T > | |
bool | fuzzycompare (const T &first, const T &second) |
fuzzy compare two floating point variables More... | |
template<typename T > | |
bool | fuzzyIsNull (const T &val) |
fuzzy compare a floating point number to 0 More... | |
size_t | toLinearized (size_t col, size_t row, size_t nCols) |
convert the index for rows and cols into the index of linareized array More... | |
size_t | Rotate90DegCCW (size_t destCol, size_t destRow, pair< size_t, size_t > size) |
calculate the corresponding indezes for 90 deg ccw rotation More... | |
size_t | Rotate180Deg (size_t destCol, size_t destRow, pair< size_t, size_t > size) |
calculate the corresponding indezes for 180 deg rotation More... | |
size_t | Rotate270DegCCW (size_t destCol, size_t destRow, pair< size_t, size_t > size) |
calculate the corresponding indezes for 270 deg ccw (90 cw) rotation More... | |
size_t | Transpose (size_t destCol, size_t destRow, pair< size_t, size_t > size) |
transpose the indizes More... | |
size_t | FlipHorizontal (size_t destCol, size_t destRow, pair< size_t, size_t > size) |
flip matrix horizontally More... | |
size_t | FlipVertical (size_t destCol, size_t destRow, pair< size_t, size_t > size) |
flip matrix vertically More... | |
pp240::index_t::first_type | toOneD (const pp240::index_t matrixIndex, pp240::index_t::first_type width) |
helper to convert shape into the 1D index More... | |
pp240::index_t | operator- (const pp240::index_t &lhs, const pp240::index_t &rhs) |
operates a minus on two indices More... | |
pp240::index_t | operator* (const pp240::index_t &lhs, const pp240::index_t &rhs) |
operates times on two indices More... | |
pp240::index_t | operator+ (const pp240::index_t &lhs, const pp240::index_t &rhs) |
operates a plus on two indices More... | |
bool | operator< (const pp240::indexf_t &lhs, const pp240::indexf_t::first_type rhs) |
operates less of an indices to a scalar More... | |
pp240::indexf_t | operator/ (const pp240::indexf_t &lhs, const pp240::indexf_t &rhs) |
operates devides on two indices More... | |
template<class ForwardIterator > | |
ForwardIterator | max_element (ForwardIterator first, ForwardIterator last) |
provide own implementation of min_element to be able to compile More... | |
template<class ForwardIterator > | |
ForwardIterator | min_element (ForwardIterator first, ForwardIterator last) |
provide own implementation of min_element to be able to compile More... | |
void | loadAllDets () |
load the settings of all acqiris detectors defined in .ini file More... | |
bool | isDLD (const detectorkey_t &detkey) |
check whether the key points to a delayline detector More... | |
detectorkey_t | qstring2detector (const QString &qstr) |
convert a qstring to the key in the list of detectors More... | |
particleskey_t | qstring2particle (const QString &qstr) |
convert qstring to the particle key pair More... | |
void | copyMapValues (map< string, double >::const_iterator first, map< string, double >::const_iterator last, treehit_t &dest) |
copy map values to map More... | |
template<typename T > | |
SerializerBackend & | operator<< (SerializerBackend &serializer, const Axis< T > &axis) |
add an Axis to a stream More... | |
template<typename T > | |
SerializerBackend & | operator>> (SerializerBackend &serializer, Axis< T > &axis) |
read an Axis from a stream More... | |
template<typename T > | |
SerializerBackend & | operator<< (SerializerBackend &serializer, const Result< T > &result) |
add a Result to a stream More... | |
template<typename T > | |
SerializerBackend & | operator>> (SerializerBackend &serializer, Result< T > &result) |
read a Result from a stream More... | |
template<> | |
void | SerializerBackend::add< std::string > (const std::string &str) |
specialization for strings More... | |
template<> | |
std::string | SerializerBackend::retrieve< std::string > () |
specialization for string More... | |
template<class Derived > | |
Derived::shared_pointer | instanciator () |
function to create an instance of a class More... | |
template<class Derived > | |
Derived::shared_pointer | singletoninstanciator () |
function to create a singleton of a class More... | |
Variables | |
const size_t | RingBufferSize =32 |
global variable to set the ring buffer size More... | |
const size_t | NbrOfWorkers =16 |
global variable to set the number of worker threads More... | |
typedef HelperAcqirisDetectors::helperinstancesmap_t::key_type cass::detectorkey_t |
typedef for easier code
Definition at line 47 of file roottree_converter.cpp.
typedef list<detectorkey_t> cass::dlddetectors_t |
typedef for easier code
Definition at line 50 of file roottree_converter.cpp.
typedef std::map<uint64_t, positionreaders_t> cass::event2positionreaders_t |
typedef std::pair<std::tr1::shared_ptr<FileReader>, FilePointer> cass::filereaderpointerpair_t |
typedef pair<DelaylineDetector::particles_t::key_type, HelperAcqirisDetectors::helperinstancesmap_t::key_type> cass::particleskey_t |
typedef for easier code
Definition at line 54 of file roottree_converter.cpp.
typedef list<particleskey_t> cass::particleslist_t |
typedef for easier code
Definition at line 57 of file roottree_converter.cpp.
typedef std::vector<filereaderpointerpair_t> cass::positionreaders_t |
void cass::copyMapValues | ( | map< string, double >::const_iterator | first, |
map< string, double >::const_iterator | last, | ||
treehit_t & | dest | ||
) |
copy map values to map
will copy each key pair to the map of the tree structure.
first | iterator to the first element to copy |
last | const iterator to one past the last element to copy |
dest | the destination where the elements will be copied to |
Definition at line 161 of file roottree_converter.cpp.
Referenced by cass::pp2001::processEvent().
|
static |
overwrite the destruction of xtc pointers
Definition at line 29 of file xtciterator.hpp.
Referenced by cass::XtcIterator::process().
void cass::endInputThread | ( | int | ) |
end the input thread
unused | unused parameter needed to register this callback as signal handler |
Definition at line 75 of file cass.cpp.
Referenced by setSignalHandler().
size_t cass::FlipHorizontal | ( | size_t | destCol, |
size_t | destRow, | ||
pair< size_t, size_t > | size | ||
) |
flip matrix horizontally
convert the calculated indizes into the index of the linearized matrix and return it
destCol | the column index of the destination matrix |
destRow | the row index of the destination matrix |
size | the size of the destination matrix |
Definition at line 140 of file image_manipulation.cpp.
References toLinearized().
Referenced by cass::pp55::pp55().
size_t cass::FlipVertical | ( | size_t | destCol, |
size_t | destRow, | ||
pair< size_t, size_t > | size | ||
) |
flip matrix vertically
convert the calculated indizes into the index of the linearized matrix and return it
destCol | the column index of the destination matrix |
destRow | the row index of the destination matrix |
size | the size of the destination matrix |
Definition at line 161 of file image_manipulation.cpp.
References toLinearized().
Referenced by cass::pp55::pp55().
bool cass::fuzzycompare | ( | const T & | first, |
const T & | second | ||
) |
fuzzy compare two floating point variables
the | type that one want to compare |
first | the first value for the equal comparison |
second | the second value for the equal comparison |
Definition at line 318 of file convenience_functions.h.
Referenced by cass::pp110::process(), cass::pp203::process(), cass::pp112::process(), cass::pp332::process(), cass::pp244::process(), cass::pp57::projectToX(), cass::pp57::projectToY(), cass::pp90::Q(), cass::pp90::R(), and cass::pp90::Rad().
bool cass::fuzzyIsNull | ( | const T & | val | ) |
fuzzy compare a floating point number to 0
the | type that one want to compare |
val | the value for the comparison |
Definition at line 329 of file convenience_functions.h.
Referenced by cass::ACQIRIS::DelaylineDetectorAnalyzerSimple::operator()(), cass::pp203::process(), cass::pp242::process(), cass::pp90::process(), and cass::pp243::process().
bool cass::getCompleteTagList | ( | vector< int > & | taglist, |
int & | highTagNbr, | ||
int | blNbr, | ||
int | runNbr | ||
) |
retrieve the list of tags and the associated high tag number
[out] | taglist | the taglist for the run and beamline |
[out] | highTagNbr | the high tag number for the run at beamline |
[in] | blNbr | the beamline number where the run was taken |
[in] | runNbr | the run number for which the tags should be returned |
get the lowest and highest tag number for the run
get the tag list
one has to create a SALCA strucht that allows to retrieve arrays One has to kind of allocate and destroy these structs, which is completely not exception safe...
get size of taglist
copy the data to the vector
dealloc the array
Definition at line 184 of file sacla_offline_input.cpp.
References toString().
Referenced by cass::SACLAOfflineInput::runthis().
Derived::shared_pointer cass::instanciator | ( | ) |
function to create an instance of a class
creates an instance of Dervied using new and returns a shared_ptr object that is defined in the derived class.
Derived | the derived class |
Definition at line 41 of file generic_factory.hpp.
bool cass::isDLD | ( | const detectorkey_t & | detkey | ) |
check whether the key points to a delayline detector
detkey | key for the possible delayline detector |
Definition at line 80 of file roottree_converter.cpp.
References cass::ACQIRIS::Delayline.
Referenced by qstring2detector(), and qstring2particle().
void cass::loadAllDets | ( | ) |
load the settings of all acqiris detectors defined in .ini file
Definition at line 63 of file roottree_converter.cpp.
References QSettings::beginGroup(), QSettings::childGroups(), and cass::ACQIRIS::ConstantFraction::loadSettings().
Referenced by cass::pp2001::loadSettings().
ForwardIterator cass::max_element | ( | ForwardIterator | first, |
ForwardIterator | last | ||
) |
provide own implementation of min_element to be able to compile
It will search for the largest element in range but only checking real numbers
This is just a slighly modfied copy from the cpp reference guide
Definition at line 41 of file operations.cpp.
Referenced by cass::GeometryInfo::generateLookupTable(), cass::pp334::process(), cass::pp85::process(), and cass::pp86::process().
ForwardIterator cass::min_element | ( | ForwardIterator | first, |
ForwardIterator | last | ||
) |
provide own implementation of min_element to be able to compile
It will search for the smallest element in range but only checking real numbers
This is just a slightly modified copy from the cpp reference guide
Definition at line 66 of file operations.cpp.
Referenced by cass::GeometryInfo::generateLookupTable(), and cass::pp85::process().
pp240::index_t cass::operator* | ( | const pp240::index_t & | lhs, |
const pp240::index_t & | rhs | ||
) |
operates times on two indices
performs .
lhs | the left hand side of the operation |
rhs | the right hand side of the opeation |
Definition at line 59 of file imaging.cpp.
pp240::index_t cass::operator+ | ( | const pp240::index_t & | lhs, |
const pp240::index_t & | rhs | ||
) |
operates a plus on two indices
performs .
lhs | the left hand side of the operation |
rhs | the right hand side of the opeation |
Definition at line 72 of file imaging.cpp.
pp240::index_t cass::operator- | ( | const pp240::index_t & | lhs, |
const pp240::index_t & | rhs | ||
) |
operates a minus on two indices
performs .
lhs | the left hand side of the operation |
rhs | the right hand side of the opeation |
Definition at line 46 of file imaging.cpp.
pp240::indexf_t cass::operator/ | ( | const pp240::indexf_t & | lhs, |
const pp240::indexf_t & | rhs | ||
) |
operates devides on two indices
performs .
lhs | the left hand side of the operation |
rhs | the right hand side of the opeation |
Definition at line 102 of file imaging.cpp.
bool cass::operator< | ( | const pp240::indexf_t & | lhs, |
const pp240::indexf_t::first_type | rhs | ||
) |
operates less of an indices to a scalar
performs .
lhs | the left hand side of the operation |
rhs | the right hand side of the opeation |
Definition at line 87 of file imaging.cpp.
SerializerBackend& cass::operator<< | ( | SerializerBackend & | serializer, |
const Axis< T > & | axis | ||
) |
add an Axis to a stream
T | the precision of the axis values |
serializer | the serializer to serialize the axis to |
axis | the axis to serialize |
Definition at line 42 of file result.hpp.
References cass::SerializerBackend::add().
SerializerBackend& cass::operator<< | ( | SerializerBackend & | serializer, |
const Result< T > & | result | ||
) |
add a Result to a stream
friend for serialization
T | the precision of the axis values |
serializer | the serializer to serialize the axis to |
result | the Result to serialize |
Definition at line 84 of file result.hpp.
References cass::Result< T >::_axis, cass::Result< T >::_id, cass::Result< T >::_name, cass::Result< T >::_storage, cass::SerializerBackend::add(), cass::Result< T >::begin(), and cass::Result< T >::end().
SerializerBackend& cass::operator>> | ( | SerializerBackend & | serializer, |
Axis< T > & | axis | ||
) |
read an Axis from a stream
T | the precision of the axis values |
serializer | the serializer to serialize the axis to |
axis | the axis to serialize |
Definition at line 61 of file result.hpp.
References cass::Axis< T >::low, cass::Axis< T >::nBins, cass::SerializerBackend::retrieve(), cass::Axis< T >::title, and cass::Axis< T >::up.
SerializerBackend& cass::operator>> | ( | SerializerBackend & | serializer, |
Result< T > & | result | ||
) |
read a Result from a stream
friend for deserialization
T | the precision of the axis values |
serializer | the serializer to serialize the axis to |
result | the Result to write to |
Definition at line 110 of file result.hpp.
References cass::Result< T >::_axis, cass::Result< T >::_id, cass::Result< T >::_name, cass::Result< T >::_storage, cass::SerializerBackend::retrieve(), and size.
detectorkey_t cass::qstring2detector | ( | const QString & | qstr | ) |
convert a qstring to the key in the list of detectors
will convert the requested delayline detector described in the qstring to the delayline detector key. Before returning the key, check whether the requested detector is realy a delayline detector and whether it is defined in the ini file.
qstr | the QString to convert to the key |
Definition at line 98 of file roottree_converter.cpp.
References QSettings::beginGroup(), QSettings::childGroups(), and isDLD().
Referenced by cass::pp2001::loadSettings().
particleskey_t cass::qstring2particle | ( | const QString & | qstr | ) |
convert qstring to the particle key pair
first try to find the detector that the particle belongs to. If found which detector the particle belongs to then add this as second part of the returned key.
qstr | the QString of the particle that is requested |
Definition at line 125 of file roottree_converter.cpp.
References isDLD().
Referenced by cass::pp2001::loadSettings().
size_t cass::Rotate180Deg | ( | size_t | destCol, |
size_t | destRow, | ||
pair< size_t, size_t > | size | ||
) |
calculate the corresponding indezes for 180 deg rotation
convert the calculated indizes into the index of the linearized matrix and return it
destCol | the column index of the destination matrix |
destRow | the row index of the destination matrix |
size | the size of the destination matrix |
Definition at line 77 of file image_manipulation.cpp.
References toLinearized().
Referenced by cass::pp55::pp55().
size_t cass::Rotate270DegCCW | ( | size_t | destCol, |
size_t | destRow, | ||
pair< size_t, size_t > | size | ||
) |
calculate the corresponding indezes for 270 deg ccw (90 cw) rotation
convert the calculated indizes into the index of the linearized matrix and return it
destCol | the column index of the destination matrix |
destRow | the row index of the destination matrix |
size | the size of the destination matrix |
Definition at line 99 of file image_manipulation.cpp.
References toLinearized().
Referenced by cass::pp55::pp55().
size_t cass::Rotate90DegCCW | ( | size_t | destCol, |
size_t | destRow, | ||
pair< size_t, size_t > | size | ||
) |
calculate the corresponding indezes for 90 deg ccw rotation
convert the calculated indizes into the index of the linearized matrix and return it
destCol | the column index of the destination matrix |
destRow | the row index of the destination matrix |
size | the size of the destination matrix |
Definition at line 56 of file image_manipulation.cpp.
References toLinearized().
Referenced by cass::pp55::pp55().
|
inline |
specialization for strings
write the length of the string, then the string itselve
string | to add to the stream |
Definition at line 250 of file serializer.hpp.
|
inline |
specialization for string
create a temp string with right size containing blanks and read data to it
Definition at line 265 of file serializer.hpp.
Processor::result_t::shared_pointer cass::set1DHist | ( | const Processor::name_t & | name | ) |
function to set the 1d histogram properties from the ini file.
[in] | name | the name of the processor too look up in cass.ini |
Definition at line 24 of file convenience_functions.cpp.
References cass::Log::add(), QSettings::beginGroup(), QString::fromStdString(), toString(), QSettings::value(), and cass::Log::VERBOSEINFO.
Referenced by cass::pp5000::loadSettings(), cass::pp151::loadSettings(), cass::pp153::loadSettings(), cass::pp146::loadSettings(), cass::pp90::loadSettings(), cass::pp167::loadSettings(), cass::pp250::loadSettings(), cass::pp60::loadSettings(), and cass::pp69::loadSettings().
Processor::result_t::shared_pointer cass::set2DHist | ( | const Processor::name_t & | name | ) |
function to set the 2d histogram properties from the ini file.
[in] | name | the name of the processor too look up in cass.ini |
Definition at line 44 of file convenience_functions.cpp.
References cass::Log::add(), QSettings::beginGroup(), QString::fromStdString(), toString(), QSettings::value(), and cass::Log::VERBOSEINFO.
Referenced by cass::pp5001::loadSettings(), cass::pp152::loadSettings(), cass::pp79::loadSettings(), cass::pp144::loadSettings(), cass::pp161::loadSettings(), cass::pp148::loadSettings(), cass::pp163::loadSettings(), cass::pp164::loadSettings(), cass::pp166::loadSettings(), cass::pp220::loadSettings(), cass::pp251::loadSettings(), and cass::pp65::loadSettings().
void cass::setSignalHandler | ( | ) |
set up the own handler to react on the sigquit (crtl+ \) signal
Definition at line 84 of file cass.cpp.
References endInputThread().
Referenced by main().
Derived::shared_pointer cass::singletoninstanciator | ( | ) |
function to create a singleton of a class
the singleton will be created by calling the static member instance of the class. The class needs to provide this member. Also it needs to provide how the shared pointer is called
Derived | the derived class |
Definition at line 58 of file generic_factory.hpp.
|
inline |
multiply number by itself
T | type of value to be squared |
val | value to be squared |
Definition at line 78 of file cass.h.
Referenced by cass::pp208::loadSettings(), cass::pp200::process(), and cass::pixeldetector::MovingMaps::updateMaps().
void cass::tileToFrames | ( | const AGIPDTile & | tile, |
const uint64_t & | eventId, | ||
pixeldetector::Detector::frame_t::iterator | dframe, | ||
pixeldetector::Detector::frame_t::iterator | gframe, | ||
pixeldetector::Detector::frame_t::iterator | mframe, | ||
const bool | precache | ||
) |
get the tile from the hdf5 file and copy it to the correct position in the frame
tile | reference to the tile to be copied |
frame | iterator to the frame where the tile data should be written to. |
imageNbr | which image within the file should be retrieved |
return if the tile data for the eventid id is not available
instead of reading the partial data from file, copy from the cached data to see if thats faster.
get iterators to start and end of requested image from the cache
now read the current images tile into the frame
get iterators to start and end of requested image from the cache
now read the current images tile into the frame
get iterators to start and end of requested image from the cache
now read the current images tile into the frame
create the partiality parameters for retrieving only the current images' tile from the dataset
get iterator to the start of the tile within the frame
now read the current images tile into the frame
Definition at line 149 of file xfel_hdf5_file_input.cpp.
References hdf5::partiality_t::block, hdf5::partiality_t::count, cass::AGIPDTile::dataCache, cass::AGIPDTile::dataDsetName, hdf5::partiality_t::dims, cass::AGIPDTile::fh, cass::AGIPDTile::gainCache, cass::AGIPDTile::gainDsetName, cass::AGIPDTile::id, cass::AGIPDTile::idToIdx, cass::AGIPDTile::maskCache, cass::AGIPDTile::maskDsetName, cass::AGIPDTile::nCols, cass::AGIPDTile::nRows, hdf5::partiality_t::offset, cass::AGIPDTile::size, and hdf5::partiality_t::stride.
Referenced by cass::XFELHDF5FileInput::runthis().
size_t cass::toLinearized | ( | size_t | col, |
size_t | row, | ||
size_t | nCols | ||
) |
convert the index for rows and cols into the index of linareized array
col | the Column index of the element |
row | the Row index of the element |
nCols | the number of columns in the matrix |
Definition at line 39 of file image_manipulation.cpp.
Referenced by FlipHorizontal(), FlipVertical(), Rotate180Deg(), Rotate270DegCCW(), Rotate90DegCCW(), and Transpose().
pp240::index_t::first_type cass::toOneD | ( | const pp240::index_t | matrixIndex, |
pp240::index_t::first_type | width | ||
) |
helper to convert shape into the 1D index
matrixIndex | in the matrix |
width | the width of the matrix |
Definition at line 33 of file imaging.cpp.
Referenced by cass::pp240::circle(), cass::pp240::ellipse(), cass::pp240::ring(), cass::pp240::square(), and cass::pp240::triangle().
std::string cass::toString | ( | const Type & | t | ) |
convert any type to a string
should be used for converting numbers to strings. This function was inspired by a function found at Sep, 24th 2011 here: http://notfaq.wordpress.com/2006/08/30/c-convert-int-to-string/
Type | the type of the number |
t | the number to convert to string |
Definition at line 63 of file cass.h.
References cass::ACQIRIS::t.
Referenced by cass::pixeldetector::addCircle(), cass::pixeldetector::addEllipse(), cass::pixeldetector::addRing(), cass::pixeldetector::addSquare(), cass::pixeldetector::addTriangle(), cass::ACQIRISTDC::TDCExtractor::associate(), cass::pixeldetector::AdvancedDetector::associate(), jocassview::JoCASSViewer::autoSave(), cass::pixeldetector::OnlineFixedCreator::buildAndCalc(), cass::pixeldetector::OnlineFixedCreatorCommonMode::buildAndCalc(), cass::SACLAConverter::detTileParams::cache(), cass::SACLAConverter::cacheParameters(), cass::pp240::circle(), cass::TCPInput::connectToServer(), cass::pixeldetector::OnlineFixedCreator::controlCalibration(), cass::pixeldetector::MovingMaps::controlCalibration(), cass::pixeldetector::OnlineFixedCreatorCommonMode::controlCalibration(), cass::pixeldetector::copyAdditionalPnccdInfo(), cass::DetectorTile::copyData(), cass::pixeldetector::copyPnCCDFrame(), cass::SACLAConverter::detTileParams::copyTo(), cass::ProcessorManager::create(), cass::pixeldetector::CommonData::createCorMap(), cass::IdList::deserialize(), cass::DetectorTile::DetectorTile(), cass::pp240::ellipse(), cass::ACQIRIS::extactRightChannel(), cass::GeometryInfo::generateConversionMap(), cass::GeometryInfo::generateLookupTable(), cass::pixeldetector::CommonData::generateMaps(), getCompleteTagList(), cass::ACQIRIS::HelperAcqirisDetectors::HelperAcqirisDetectors(), cass::IdList::IdList(), cass::SACLAConverter::detTileParams::init(), cass::ACQIRIS::IsParticleHit::instance(), cass::ACQIRIS::DetectorAnalyzerBackend::instance(), cass::ACQIRIS::SignalExtractor::instance(), cass::ACQIRIS::DetectorBackend::instance(), cass::ACQIRIS::MomentumCalculator::instance(), cass::ProcessorManager::instance(), cass::pixeldetector::isSameSize(), cass::Log::load(), cass::pp330::loadCalibration(), cass::ACQIRIS::loadDelayDet(), cass::pp332::loadHotPixelMap(), cass::ACQIRIS::loadLayer(), cass::ACQIRIS::loadParticle(), cass::pp200::loadSettings(), cass::pp301::loadSettings(), cass::pp72::loadSettings(), cass::pp110::loadSettings(), cass::pp203::loadSettings(), cass::pp1::loadSettings(), cass::pp400::loadSettings(), cass::pp312::loadSettings(), cass::pixeldetector::OnlineFixedCreator::loadSettings(), cass::pp311::loadSettings(), cass::pp240::loadSettings(), cass::SACLAConverter::loadSettings(), cass::pp111::loadSettings(), cass::ACQIRIS::HexSorter::loadSettings(), cass::pp73::loadSettings(), cass::pp204::loadSettings(), cass::pp201::loadSettings(), cass::pp121::loadSettings(), cass::pp2::loadSettings(), cass::pp302::loadSettings(), cass::pp1002::loadSettings(), cass::pp330::loadSettings(), cass::pp112::loadSettings(), cass::pp74::loadSettings(), cass::pp109::loadSettings(), cass::pixeldetector::MovingMaps::loadSettings(), cass::pixeldetector::CommonData::loadSettings(), cass::pp404::loadSettings(), cass::pp202::loadSettings(), cass::pixeldetector::OnlineFixedCreatorCommonMode::loadSettings(), cass::ACQIRIS::DelaylineDetector::loadSettings(), cass::pp79::loadSettings(), cass::pp144::loadSettings(), cass::pp205::loadSettings(), cass::pixeldetector::HotPixelsFinder::loadSettings(), cass::pp9::loadSettings(), cass::pp500::loadSettings(), cass::pp206::loadSettings(), cass::pp12::loadSettings(), cass::pp406::loadSettings(), cass::pp148::loadSettings(), cass::pp331::loadSettings(), cass::pp208::loadSettings(), cass::pp14::loadSettings(), cass::pp162::loadSettings(), cass::pp15::loadSettings(), cass::pp407::loadSettings(), cass::pp40::loadSettings(), cass::pp164::loadSettings(), cass::pp242::loadSettings(), cass::ProcessorManager::loadSettings(), cass::pp90::loadSettings(), cass::pp408::loadSettings(), cass::pp41::loadSettings(), cass::pp209::loadSettings(), cass::pp243::loadSettings(), cass::pp50::loadSettings(), cass::pp244::loadSettings(), cass::pp166::loadSettings(), cass::pp51::loadSettings(), cass::pp57::loadSettings(), cass::pp250::loadSettings(), cass::pp251::loadSettings(), cass::pp60::loadSettings(), cass::pp61::loadSettings(), cass::pp63::loadSettings(), cass::pp64::loadSettings(), cass::pp65::loadSettings(), cass::pp66::loadSettings(), cass::pp70::loadSettings(), cass::pp85::loadSettings(), cass::pp86::loadSettings(), cass::pp87::loadSettings(), cass::pp91::loadSettings(), cass::ACQIRIS::loadWireend(), cass::pixeldetector::RAWSSSReader::operator()(), cass::TxtReader::operator()(), cass::MachineData::Converter::operator()(), cass::ACQIRIS::Converter::operator()(), cass::FormatConverter::operator()(), cass::SACLAConverter::operator()(), cass::hdf5::WriteEntry::operator()(), cass::pixeldetector::Converter::operator()(), cass::pp105::process(), cass::pp110::process(), cass::XtcIterator::process(), cass::pp107::process(), cass::pp74::process(), cass::pp109::process(), cass::pp123::process(), cass::pp205::process(), cass::pp242::process(), cass::pp1500::processEvent(), cass::Processor::processEvent(), cass::SACLAConverter::detTileParams::readFromStreamer(), cass::pixeldetector::RAWSSSReader::readHeaderInfo(), cass::ACQIRIS::LmaReader::readHeaderInfo(), cass::pixeldetector::readHLLOffsetFile(), cass::DetectorTile::retrieveData(), cass::pp240::ring(), cass::SoapServer::run(), cass::DetectorTile::runNumber(), cass::ACQIRIS::LMAParser::runthis(), cass::ZMQInput::runthis(), cass::SharedMemoryInput::runthis(), cass::FileInput::runthis(), cass::FileProcessor::runthis(), cass::TagListProcessor::runthis(), cass::XFELOnlineInput::runthis(), cass::SACLAOfflineInput::runthis(), cass::MultiFileInput::runthis(), cass::XFELHDF5FileInput::runthis(), cass::SACLAOnlineInput::runthis(), cass::HDF5FileInput::runthis(), cass::SACLAConverter::SACLAConverter(), cass::pixeldetector::CommonData::saveGainMap(), cass::pixeldetector::CommonData::saveHotPixMask(), cass::pixeldetector::CommonData::saveOffsetNoiseMaps(), cass::FileParser::savePos(), set1DHist(), set2DHist(), cass::pp330::setBadPixMap(), cass::pp1602::setup(), cass::SoapServer::SoapServer(), cass::pp240::square(), cass::DetectorTile::tag(), cass::pixeldetector::MovingMaps::train(), cass::pp240::triangle(), cass::hdf5::AppendEntry::writeAttib(), cass::pp1002::writeEventToMultipleEventsFile(), and cass::pp1002::writeEventToSingleFile().
size_t cass::Transpose | ( | size_t | destCol, |
size_t | destRow, | ||
pair< size_t, size_t > | size | ||
) |
transpose the indizes
convert the calculated indizes into the index of the linearized matrix and return it
destCol | the column index of the destination matrix |
destRow | the row index of the destination matrix |
size | the size of the destination matrix |
Definition at line 120 of file image_manipulation.cpp.
References toLinearized().
Referenced by cass::pp55::pp55().
|
inline |
Helper function to delete duplicates from a std::list.
This keeps the earliest entry in the list and removes all later ones
l | List to remove duplicates from. |
Definition at line 295 of file convenience_functions.h.
const size_t cass::NbrOfWorkers =16 |
global variable to set the number of worker threads
Definition at line 274 of file cass.h.
Referenced by cass::Processor::createHistList(), cass::pixeldetector::DetectorHelper::DetectorHelper(), and cass::ACQIRIS::HelperAcqirisDetectors::HelperAcqirisDetectors().