Jpp
|
Auxiliary class to select DAQ hits based on time-over-treshold value. More...
#include <JDAQHitToTSelector.hh>
Public Types | |
typedef JDAQHit::JTOT_t | JTOT_t |
typedef JTOOLS::JRange< JTOT_t > | range_type |
typedef JClonable< JClonable_t > ::clone_type | clone_type |
typedef JLANG::JClass < JDAQHit::JTOT_t > ::argument_type | argument_type |
typedef JKey_t | key_type |
typedef JValue_t | mapped_type |
Public Member Functions | |
JDAQHitToTSelector () | |
Default constructor. More... | |
JDAQHitToTSelector (const JTOT_t tot_min, const JTOT_t tot_max) | |
Constructor. More... | |
virtual bool | operator() (const JDAQHit &hit) const |
DAQ hit selection. More... | |
virtual clone_type | clone () const |
Get clone of this object. More... | |
const range_type & | getRange () const |
Get range. More... | |
void | setRange (const range_type &range) |
Set range. More... | |
void | setRange (argument_type x, argument_type y) |
Set lower and upper limit. More... | |
void | setRange (R first, R second) |
Set range. More... | |
void | setRange (iterator_type __begin, iterator_type __end, result_type value_type::*member) |
Set lower and upper limit according to minimal and maximal value in input data, respectively. More... | |
void | setRange (iterator_type __begin, iterator_type __end, result_type(value_type::*function)() const) |
Set lower and upper limit according to minimal and maximal value in input data, respectively. More... | |
JDAQHit::JTOT_t | getLowerLimit () const |
Get lower limit. More... | |
JDAQHit::JTOT_t | getUpperLimit () const |
Get upper limit. More... | |
void | setLowerLimit (argument_type x) |
Set lower limit. More... | |
void | setUpperLimit (argument_type y) |
Set upper limit. More... | |
void | fixLowerLimit (argument_type x) |
Fix lower limit. More... | |
void | fixUpperLimit (argument_type y) |
Fix upper limit. More... | |
bool | equals (const range_type &range) const |
Equal method. More... | |
JDAQHit::JTOT_t | getLength () const |
Get length (difference between upper and lower limit). More... | |
void | setLength (argument_type length) |
Set length (difference between upper and lower limit). More... | |
bool | is_valid () const |
Check validity of range. More... | |
bool | operator() (argument_type x) const |
Test whether value is inside range. More... | |
JDAQHit::JTOT_t | constrain (argument_type x) const |
Constrain value to range. More... | |
JDAQHit::JTOT_t | mod (argument_type x) const |
Modulo value with respect to range. More... | |
bool | overlap (const range_type &range) const |
Test overlap with given range. More... | |
range_type | include (argument_type x) |
Include given value to range. More... | |
range_type & | join (const range_type &range) |
Join ranges. More... | |
range_type & | combine (const range_type &range) |
Combine ranges. More... | |
range_type & | add (argument_type x) |
Add offset. More... | |
range_type & | add (const range_type &range) |
Add offsets. More... | |
range_type & | sub (argument_type x) |
Subtract offset. More... | |
range_type & | sub (const range_type &range) |
Subtract offsets. More... | |
range_type & | mul (const double factor) |
Multiply range. More... | |
JFirst_t & | mul (const JSecond_t &object) |
Multiply with object. More... | |
range_type & | div (const double factor) |
Divide range. More... | |
JDAQHit::JTOT_t | getN (const double R) const |
Get expected number of occurances of given rate within this interval. More... | |
const key_type & | getKey () const |
const mapped_type & | getValue () const |
mapped_type & | getValue () |
Static Public Member Functions | |
static JDAQHit::JTOT_t | getMinimum () |
Get minimum possible value. More... | |
static JDAQHit::JTOT_t | getMaximum () |
Get maximum possible value. More... | |
Public Attributes | |
std::less< JDAQHit::JTOT_t > | compare |
Function object. More... | |
JKey_t | first |
JValue_t | second |
Static Public Attributes | |
static const JRange < JDAQHit::JTOT_t, std::less < JDAQHit::JTOT_t > > | DEFAULT_RANGE |
Default range. More... | |
Protected Member Functions | |
void | setRange (R first, R second, const JLANG::JBool< false > &option) |
Set range. More... | |
void | setRange (R first, R second, const JLANG::JBool< true > &option) |
Set range. More... | |
Auxiliary class to select DAQ hits based on time-over-treshold value.
Definition at line 25 of file JDAQHitToTSelector.hh.
Definition at line 29 of file JDAQHitToTSelector.hh.
Definition at line 30 of file JDAQHitToTSelector.hh.
|
inherited |
Definition at line 61 of file JClonable.hh.
|
inherited |
|
inherited |
|
inherited |
|
inline |
Default constructor.
Definition at line 36 of file JDAQHitToTSelector.hh.
|
inline |
Constructor.
tot_min | minimal time-over-threshold |
tot_max | maximal time-over-threshold |
Definition at line 47 of file JDAQHitToTSelector.hh.
|
inlinevirtual |
DAQ hit selection.
hit | DAQ hit |
Definition at line 58 of file JDAQHitToTSelector.hh.
|
inlinevirtualinherited |
Get clone of this object.
Reimplemented in JPHYSICS::JPDFTransformer< 5, JArgument_t >, JPHYSICS::JPDFTransformer< 4, JArgument_t >, JPHYSICS::JPDFTransformer< 3, JArgument_t >, JPHYSICS::JPDFTransformer< 2, JArgument_t >, JPHYSICS::JPDGTransformer_t< JArgument_t >, JPHYSICS::JPD0Transformer_t< JArgument_t >, JTOOLS::JMultiMapTransformer< N, JArgument_t >::JMultiMapDefaultTransformer, JPHYSICS::JPDFTransformer_t< JArgument_t >, JLANG::JClonable< JMatch< JTRIGGER::JHitR1 > >, and JLANG::JClonable< JMatch< JTRIGGER::JHitR1 >, JMatch3G< JTRIGGER::JHitR1 > >.
Definition at line 69 of file JClonable.hh.
|
inlineinherited |
Get range.
Definition at line 128 of file JRange.hh.
|
inlineinherited |
Set range.
range | range |
Definition at line 139 of file JRange.hh.
|
inlineinherited |
|
inlineinherited |
Set range.
The arguments could be values or iterators.
first | first |
second | second |
Definition at line 166 of file JRange.hh.
|
inlineinherited |
Set lower and upper limit according to minimal and maximal value in input data, respectively.
__begin | begin of data |
__end | end of data |
member | pointer to data member |
Definition at line 182 of file JRange.hh.
|
inlineinherited |
Set lower and upper limit according to minimal and maximal value in input data, respectively.
__begin | begin of data |
__end | end of data |
function | pointer to member method |
Definition at line 200 of file JRange.hh.
|
inlineprotectedinherited |
Set range.
first | first |
second | second |
option | false |
Definition at line 590 of file JRange.hh.
|
inlineprotectedinherited |
Set range.
first | first |
second | second |
option | true |
Definition at line 604 of file JRange.hh.
|
inlineinherited |
Get lower limit.
|
inlineinherited |
Get upper limit.
|
inlineinherited |
Set lower limit.
x | lower limit |
|
inlineinherited |
Set upper limit.
y | upper limit |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Equal method.
range | range |
Definition at line 288 of file JRange.hh.
|
inlineinherited |
Get length (difference between upper and lower limit).
Definition at line 302 of file JRange.hh.
|
inlineinherited |
Set length (difference between upper and lower limit).
length | length |
Definition at line 313 of file JRange.hh.
|
inlineinherited |
Check validity of range.
Definition at line 324 of file JRange.hh.
|
inlineinherited |
Test whether value is inside range.
x | value |
Definition at line 336 of file JRange.hh.
|
inlineinherited |
Constrain value to range.
This method returns the original value if it is in this range, else lower limit if value < lower limit or upper limit if value > upper limit.
x | value |
Definition at line 351 of file JRange.hh.
|
inlineinherited |
Modulo value with respect to range.
x | value |
Definition at line 366 of file JRange.hh.
|
inlineinherited |
Test overlap with given range.
The result is equivalent to join(range).is_valid().
range | range |
Definition at line 384 of file JRange.hh.
|
inlineinherited |
Include given value to range.
The new lower limit is the minimim of the original lower limit and given value and
the new upper limit is the maximum of the original upper limit and given value;
x | value |
Definition at line 399 of file JRange.hh.
|
inlineinherited |
Join ranges.
The new lower limit is the maximim of the two lower limits and
the new upper limit is the minimum of the two upper limits.
This operation results in an equal or smaller range and may result in an unphysical range (i.e. lower limit > upper limit).
range | range |
Definition at line 417 of file JRange.hh.
|
inlineinherited |
Combine ranges.
The new lower limit is the minimim of the two lower limits and
the new upper limit is the maximum of the two upper limits.
This operation results in an equal or larger range.
range | range |
Definition at line 434 of file JRange.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Multiply with object.
object | object |
Definition at line 273 of file JMath.hh.
|
inlineinherited |
|
inlineinherited |
Get expected number of occurances of given rate within this interval.
R | rate |
Definition at line 537 of file JRange.hh.
|
inlinestaticinherited |
|
inlinestaticinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
staticinherited |
|
inherited |
|
inherited |
|
inherited |