Hit data structure.  
 More...
#include <JHit.hh>
Hit data structure. 
Definition at line 22 of file JHit.hh.
Default constructor. 
Definition at line 28 of file JHit.hh.
double t
time of leading edge [ns] 
double tot
time-ver-threshold [ns] 
 
 
 
  
  | 
        
          | JTRIGGER::JHit::JHit | ( | const double | t_ns | ) |  |  | inline | 
 
Constructor. 
- Parameters
- 
  
    | t_ns | calibrated time of hit [ns] |  
 
Definition at line 39 of file JHit.hh.
double t
time of leading edge [ns] 
double tot
time-ver-threshold [ns] 
 
 
 
  
  | 
        
          | JTRIGGER::JHit::JHit | ( | const double | t_ns, |  
          |  |  | const double | tot_ns |  
          |  | ) |  |  |  | inline | 
 
Constructor. 
- Parameters
- 
  
    | t_ns | calibrated time of hit [ns] |  | tot_ns | time over threshold of hit [ns] |  
 
Definition at line 50 of file JHit.hh.
double t
time of leading edge [ns] 
double tot
time-ver-threshold [ns] 
 
 
 
template<class T > 
  
  | 
        
          | JTRIGGER::JHit::JHit | ( | T | __begin, |  
          |  |  | T | __end |  
          |  | ) |  |  |  | inline | 
 
Get combined hit. 
Note that:
- leading edge of this hit is set to the earliest leading edge of the all hits;
- trailing edge of this hit is set to the latest trailing edge of the all hits;
It is assumed that the template class has the following methods: 
     getT();
     getToT();
 which should return the time and time over threshold, respectively.
- Parameters
- 
  
    | __begin | begin of hits |  | __end | end of hits |  
 
Definition at line 74 of file JHit.hh.
   78       if (__begin != __end) {
 
   80         double t1 = __begin->getT1();
 
   81         double t2 = __begin->getT2();
 
   83         for (T i = __begin; ++i != __end; ) {
 
   84           if (t1 > i->getT1()) { t1 = i->getT1(); }
 
   85           if (t2 < i->
getT2()) { t2 = i->getT2(); }
 
double t
time of leading edge [ns] 
double getT2() const 
Get trailing edge of hit. 
double tot
time-ver-threshold [ns] 
 
 
 
  
  | 
        
          | const JHit& JTRIGGER::JHit::getHit | ( |  | ) | const |  | inline | 
 
Get hit. 
- Returns
- hit 
Definition at line 99 of file JHit.hh.
  101       return static_cast<const JHit&
>(*this);
 
 
 
 
  
  | 
        
          | static bool JTRIGGER::JHit::getSlewing | ( |  | ) |  |  | inlinestatic | 
 
Get slewing option. 
- Returns
- slewing option 
Definition at line 110 of file JHit.hh.
static bool & get_slewing()
Get reference to slewing parameter. 
 
 
 
  
  | 
        
          | static void JTRIGGER::JHit::setSlewing | ( | const bool | slewing | ) |  |  | inlinestatic | 
 
Set slewing option. 
- Parameters
- 
  
  
Definition at line 121 of file JHit.hh.
static bool & get_slewing()
Get reference to slewing parameter. 
 
 
 
  
  | 
        
          | JTRIGGER::JHit::operator double | ( |  | ) | const |  | inline | 
 
Type conversion. 
- Returns
- time [ns] 
Definition at line 132 of file JHit.hh.
double t
time of leading edge [ns] 
 
 
 
  
  | 
        
          | double JTRIGGER::JHit::getT | ( |  | ) | const |  | inline | 
 
Get calibrated time of hit. 
- Returns
- time [ns] 
Definition at line 143 of file JHit.hh.
static bool getSlewing()
Get slewing option. 
double t
time of leading edge [ns] 
static const JGetRiseTime getRiseTime
Function object for rise time evaluation. 
double tot
time-ver-threshold [ns] 
 
 
 
  
  | 
        
          | double JTRIGGER::JHit::getToT | ( |  | ) | const |  | inline | 
 
Get calibrated time over threshold of hit. 
- Returns
- time over threshold [ns] 
Definition at line 157 of file JHit.hh.
double tot
time-ver-threshold [ns] 
 
 
 
  
  | 
        
          | double JTRIGGER::JHit::getT1 | ( |  | ) | const |  | inline | 
 
Get leading edge of hit. 
Note that no slewing correction is applied.
- Returns
- time [ns] 
Definition at line 170 of file JHit.hh.
double t
time of leading edge [ns] 
 
 
 
  
  | 
        
          | double JTRIGGER::JHit::getT2 | ( |  | ) | const |  | inline | 
 
Get trailing edge of hit. 
Note that no slewing correction is applied.
- Returns
- time [ns] 
Definition at line 183 of file JHit.hh.
double t
time of leading edge [ns] 
double tot
time-ver-threshold [ns] 
 
 
 
  
  | 
        
          | void JTRIGGER::JHit::join | ( | const JHit & | hit | ) |  |  | inline | 
 
Join hit. 
Note that:
- leading edge of this hit is maintained;
- time over threshold of this hit is set to the difference between the trailing edge of given hit and leading edge of this hit;
- Parameters
- 
  
  
Definition at line 198 of file JHit.hh.
double getT1() const 
Get leading edge of hit. 
double getT2() const 
Get trailing edge of hit. 
double tot
time-ver-threshold [ns] 
 
 
 
  
  | 
        
          | static bool& JTRIGGER::JHit::get_slewing | ( |  | ) |  |  | inlinestaticprotected | 
 
Get reference to slewing parameter. 
- Returns
- reference to slewing parameter 
Definition at line 213 of file JHit.hh.
  215       static bool slewing = 
true;
 
 
 
 
time of leading edge [ns] 
Definition at line 204 of file JHit.hh.
 
 
  
  | 
        
          | double JTRIGGER::JHit::tot |  | protected | 
 
time-ver-threshold [ns] 
Definition at line 205 of file JHit.hh.
 
 
The documentation for this class was generated from the following file: