Jpp 20.0.0-195-g190c9e876
the software that should make you happy
Loading...
Searching...
No Matches
JTRIGGER::JTimeSlewing< type > Struct Template Reference

Auxiliary base class for time-slewing correction. More...

#include <JTimeSlewing.hh>

Inheritance diagram for JTRIGGER::JTimeSlewing< type >:
std::vector< double > JTRIGGER::JTimeSlewing< 1 > JTRIGGER::JTimeSlewing< 38 > JTRIGGER::JTimeSlewing< 41 > JTRIGGER::JTimeSlewing< 67 > JTRIGGER::JTimeSlewing<-1 > JTRIGGER::JTimeSlewing_t

Public Member Functions

double operator() (const double tot_ns) const
 Get time offset for a given time-over-threshold.
 

Detailed Description

template<int type = 0>
struct JTRIGGER::JTimeSlewing< type >

Auxiliary base class for time-slewing correction.


The correction corresponds to a time offset as a function of the time-over-threshold.
The type corresponds to the detector identifier that is used for the determination of the correction.

Definition at line 23 of file JTimeSlewing.hh.

Member Function Documentation

◆ operator()()

template<int type = 0>
double JTRIGGER::JTimeSlewing< type >::operator() ( const double tot_ns) const
inline

Get time offset for a given time-over-threshold.

Parameters
tot_nstime-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 }

The documentation for this struct was generated from the following file: