43 throw runtime_error(
"pp72::loadSettings(): '" +
name() +
"' The requested " +
45 "maximum possible index value '" +
toString(maxIdx) +
"'");
50 "' from table " +
_table->name() +
"' .Condition on processor '" +
61 const size_t nCols(table.
shape().first);
62 const size_t nRows(table.
shape().second);
64 for (
size_t row=0; row < nRows; ++row)
92 s.
value(
"UpperBound",1.f).toFloat());
96 throw runtime_error(
"pp73::loadSettings(): '" +
name() +
"' The requested " +
98 "maximum possible index value '" +
toString(tableSize) +
"'");
102 "' retrieves subset of table in '" +
_table->name() +
"'. UpperBound '" +
105 "'. Condition on processor '" +
_condition->name() +
"'");
117 const size_t nCols(table.
shape().first);
118 const size_t nRows(table.
shape().second);
121 for (
size_t rowIdx=0; rowIdx < nRows; ++rowIdx)
124 rows.insert(rows.end(),tableIt,tableIt+nCols);
155 size_t tableSize(
_table->result().shape().first);
157 throw runtime_error(
"pp73::loadSettings(): '" +
name() +
"' The requested " +
159 "maximum possible index value '" +
toString(tableSize) +
"'");
166 _table->name() +
"'. Condition on processor '" +
175 const size_t nCols(table.
shape().first);
176 const size_t nRows(table.
shape().second);
179 throw invalid_argument(
"pp74::process(): '" +
name() +
"' The requested row index '" +
215 size_t maxIdx(
_table->result().shape().first);
217 throw runtime_error(
"pp79::loadSettings(): '" +
name() +
"' The requested " +
219 "maximum possible index value '" +
toString(maxIdx) +
"'");
221 throw runtime_error(
"pp79::loadSettings(): '" +
name() +
"' The requested " +
223 "maximum possible index value '" +
toString(maxIdx) +
"'");
225 throw runtime_error(
"pp79::loadSettings(): '" +
name() +
"' The requested " +
227 "maximum possible index value '" +
toString(maxIdx) +
"'");
239 "' Table " +
_table->name() +
"' .Condition on processor '" +
258 const size_t nCols(table.
shape().first);
259 const size_t nRows(table.
shape().second);
262 for (
size_t row=0; row < nRows; ++row)
264 const int pixCol(tableIt[
_xcolIdx]);
265 const int pixRow(tableIt[
_ycolIdx]);
299 size_t tableSize(
_table->result().shape().first);
301 throw runtime_error(
"pp500::loadSettings(): '" +
name() +
"' The requested " +
303 "maximum possible index value '" +
toString(tableSize) +
"'");
308 "' retrieves the value of '" +
_table->result().name() +
310 "' from table '" +
_table->name() +
"'. Condition on processor '" +
326 const size_t nTableRows(table.
shape().first);
327 const size_t nTableCols(table.
shape().second);
328 for (
size_t iRow(0); iRow < nTableRows; ++iRow)
332 advance(rowStart,iRow*nTableCols);
334 advance(rowEnd,nTableCols);
336 const size_t idx(rowStart[
_colIdx]);
340 newRow.assign(rowStart,rowEnd);
342 newRow.push_back(value);
CachedList::item_type result_t
define the results
storage_t::const_iterator const_iterator
a const iterator on the storage
size_t _xcolIdx
index of the column with the x-values that needs to be extracted
void appendRows(const storage_t &rows)
add row(s) to the result
virtual void loadSettings(size_t)
load the settings of the pp
Event to store all LCLS Data.
virtual void createHistList(result_t::shared_pointer result)
create result list.
virtual void loadSettings(size_t)
load the settings of the pp
size_t _rowIdx
the index of the row
contains processors that will operate on table like histograms of other processors.
void reset()
clear the appendable 1d like result
std::vector< value_t > storage_t
the storage of this container
pp500(const name_t &)
constructor
std::pair< float, float > _bounds
the boundaries for the condition
func_t _getWeight
the function to return the weight
const name_t name() const
retrieve the name of this processor
float value_t
the values of this container
std::tr1::shared_ptr< self_type > shared_pointer
a shared pointer of this class
virtual void loadSettings(size_t)
load the settings of the pp
Processor::result_t::shared_pointer set2DHist(const Processor::name_t &name)
function to set the 2d histogram properties from the ini file.
virtual void loadSettings(size_t)
load the settings of the pp
virtual void process(const CASSEvent &, result_t &)
process event
void resetTable()
reset the table like result
pp74(const name_t &)
constructor
shared_pointer _table
pp containing input table
shared_pointer _table
pp containing input table
int _weightcolIdx
index of the column with the weights that needs to be exracted
size_t _colIdx
index of the column
virtual void loadSettings(size_t)
load the settings of the pp
static void add(Level level, const std::string &line)
add a string to the log
void setValue(const_reference value)
assign the result container to a value
const_iterator begin() const
retrieve a iterator for read access to beginning
fromStdString(const std::string &str)
func_t::result_type constantWeight(func_t::argument_type unused)
returns a 1
base class for processors.
pp73(const name_t &)
constructor
shared_pointer setupDependency(const std::string &depVarName, const name_t &name="")
setup the dependecy.
virtual void process(const CASSEvent &, result_t &)
process event
virtual void process(const CASSEvent &, result_t &)
process event
func_t::result_type weightFromTable(func_t::argument_type tableIt)
returns the weight value from a table
size_t _colIdx
index of the column with the x-values that needs to be extracted
virtual void process(const CASSEvent &, result_t &)
process event
file contains declaration of classes and functions that help other processors to do their job...
QReadWriteLock lock
lock for locking operations on the data of the container
pp72(const name_t &)
constructor
shared_pointer _table
pp containing input table
std::string toString(const Type &t)
convert any type to a string
void append(const value_t &val)
append a value to the end of the result
shared_pointer _inResult
pp containing input table
value(const QString &key, const QVariant &defaultValue=QVariant()
pp79(const name_t &)
constructor
size_t _ycolIdx
index of the column with the y-values that needs to be extracted
void setupGeneral()
general setup of the processor
file contains specialized class that do the settings for cass
iterator histogram(const value_t &pos, const value_t &weight=1)
add the weight at the right bin for the value in the 1d array
shared_pointer _table
pp containing input table
shared_pointer _condition
pointer to the processor that will contain the condition
size_t _colIdx
index of the column that will be checked for
virtual void process(const CASSEvent &, result_t &)
process event
shape_t shape() const
return the shape of the result
bool setupCondition(bool defaultConditionType=true)
setup the condition.
std::string name_t
define the name type
contains a logger for cass
check if there is some light in the chamber based upon the GMD value
size_t _colIdx
index of the column that needs to be extracted
shared_pointer _table
pp containing input table
beginGroup(const QString &prefix)