Auxiliary function object for time-slewing correction.
More...
#include <JTimeSlewing.hh>
|
| double | operator() (const double tot_ns, const int type) const |
| | Get time-slewing correction for a given time-over-threshold according given type.
|
| |
| double | operator() (const double tot_ns) const |
| | Get time offset for a given time-over-threshold.
|
| |
Auxiliary function object for time-slewing correction.
Definition at line 1419 of file JTimeSlewing.hh.
◆ operator()() [1/2]
| double JTRIGGER::JTimeSlewing_t::operator() |
( |
const double | tot_ns, |
|
|
const int | type ) const |
|
inline |
Get time-slewing correction for a given time-over-threshold according given type.
- Parameters
-
| tot_ns | time-over-threshold [ns] |
| type | type |
- Returns
- transit time [ns]
Definition at line 1431 of file JTimeSlewing.hh.
1432 {
1433 switch (type) {
1434 case 1:
1436
1437 case 38:
1439
1440 case 41:
1442
1443 case 67:
1445
1446 default:
1447 return (*this)(tot_ns);
1448 };
1449 }
const JTimeSlewing< 1 > p01
const JTimeSlewing< 41 > p41
const JTimeSlewing< 67 > p67
const JTimeSlewing< 38 > p38
◆ operator()() [2/2]
Get time offset for a given time-over-threshold.
- Parameters
-
| tot_ns | time-over-threshold [ns] |
- Returns
- rise time [ns]
Definition at line 32 of file JTimeSlewing.hh.
33 {
34 const int i = (int) tot_ns;
35
36 if (i < 0)
37 return *(this->begin());
38 else if (i >= (int) this->size())
39 return *(this->rbegin());
40 else
41 return (*this)[i];
42 }
◆ p01
◆ p38
◆ p41
◆ p67
The documentation for this struct was generated from the following file: