Jpp test-rotations-new
the software that should make you happy
|
Auxiliary class for a time-over-threshold pulse from a PMT. More...
#include <JPulse.hh>
Public Types | |
typedef std::pair< double, double > | pair_type |
typedef JRange< double, std::less< double > > | range_type |
typedef JLANG::JClass< double >::argument_type | argument_type |
typedef double | key_type |
typedef double | mapped_type |
Public Member Functions | |
JPulse () | |
Default constructor. | |
JPulse (const Hit &hit) | |
Constructor. | |
JPulse (const JPulse &first, const JPulse &second) | |
Constructor. | |
int | getID () const |
Get identifier. | |
int & | getID () |
Get identifier. | |
void | setID (const int id) |
Set identifier. | |
bool | less (const JObjectID &object) const |
Less than method. | |
bool | less (const int id) const |
Less than method. | |
bool | more (const int id) const |
More than method. | |
operator pair_type () const | |
Type conversion operator. | |
const range_type & | getRange () const |
Get range. | |
void | setRange (const range_type &range) |
Set range. | |
void | setRange (argument_type x, argument_type y) |
Set lower and upper limit. | |
void | setRange (R first, R second) |
Set range. | |
void | setRange (const array_type< JElement_t, JAllocator_t > &buffer) |
Set lower and upper limit according to input data. | |
double | getLowerLimit () const |
Get lower limit. | |
double | getUpperLimit () const |
Get upper limit. | |
void | setLowerLimit (argument_type x) |
Set lower limit. | |
void | setUpperLimit (argument_type y) |
Set upper limit. | |
void | fixLowerLimit (argument_type x) |
Fix lower limit. | |
void | fixUpperLimit (argument_type y) |
Fix upper limit. | |
bool | equals (const range_type &range) const |
Equal method. | |
double | getLength () const |
Get length (difference between upper and lower limit). | |
void | setLength (argument_type length) |
Set length (difference between upper and lower limit). | |
bool | is_valid () const |
Check validity of range. | |
bool | in_range (argument_type x) const |
Test whether value is inside range. | |
bool | operator() (argument_type x) const |
Test whether value is inside range. | |
double | constrain (argument_type x) const |
Constrain value to range. | |
double | mod (argument_type x) const |
Modulo value with respect to range. | |
bool | overlap (const range_type &range) const |
Test overlap with given range. | |
range_type & | include (argument_type x) |
Include given value to range. | |
range_type & | join (const range_type &range) |
Join ranges. | |
range_type & | combine (const range_type &range) |
Combine ranges. | |
range_type & | add (argument_type x) |
Add offset. | |
range_type & | add (const range_type &range) |
Add offsets. | |
range_type & | sub (argument_type x) |
Subtract offset. | |
range_type & | sub (const range_type &range) |
Subtract offsets. | |
range_type & | mul (const double factor) |
Multiply range. | |
JFirst_t & | mul (const JSecond_t &object) |
Multiply with object. | |
range_type & | div (const double factor) |
Divide range. | |
const key_type & | getKey () const |
const mapped_type & | getValue () const |
mapped_type & | getValue () |
Static Public Member Functions | |
static double | getMinimum () |
Get minimum possible value. | |
static double | getMaximum () |
Get maximum possible value. | |
static JRange< double, std::less< double > > | DEFAULT_RANGE () |
Default range. | |
Public Attributes | |
std::less< double > | compare |
Function object for comparisons. | |
double | first |
double | second |
Protected Member Functions | |
void | setRange (R first, R second, const JLANG::JBool< false > &option) |
Set range. | |
void | setRange (R first, R second, const JLANG::JBool< true > &option) |
Set range. | |
Protected Attributes | |
int | __id |
Auxiliary class for a time-over-threshold pulse from a PMT.
A ToT pulse is defined by a object identifier and a start and stop time.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inline |
Default constructor.
Definition at line 41 of file JPulse.hh.
|
inline |
Constructor.
hit | hit |
Constructor.
first | first hit |
second | second hit |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Less than method.
object | object identifier |
Definition at line 84 of file JObjectID.hh.
|
inlineinherited |
Less than method.
id | identifier |
Definition at line 96 of file JObjectID.hh.
|
inlineinherited |
More than method.
id | identifier |
Definition at line 108 of file JObjectID.hh.
|
inlineinherited |
|
inlineinherited |
Get range.
|
inlineinherited |
Set range.
range | range |
|
inlineinherited |
|
inlineinherited |
Set range.
The arguments could be values or iterators.
first | first |
second | second |
Definition at line 173 of file JRange.hh.
|
inlineinherited |
|
inlineprotectedinherited |
Set range.
first | first |
second | second |
option | false |
|
inlineprotectedinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Equal method.
range | range |
Definition at line 275 of file JRange.hh.
|
inlineinherited |
Get length (difference between upper and lower limit).
|
inlineinherited |
|
inlineinherited |
Check validity of range.
|
inlineinherited |
Test whether value is inside range.
x | value |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
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 415 of file JRange.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Add offsets.
The new lower limit is the sum of the two lower limits and
the new upper limit is the sum of the two upper limits.
range | offset |
|
inlineinherited |
|
inlineinherited |
Subtract offsets.
The new lower limit is the difference of the two lower limits and
the new upper limit is the difference of the two upper limits.
range | offset |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
|
inlinestaticinherited |
Get maximum possible value.
|
inlinestaticinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
protectedinherited |
Definition at line 140 of file JObjectID.hh.
|
inherited |
|
inherited |
|
inherited |