Template specialisation of hit toolkit for JDAQHit class.
More...
#include <JHitToolkit.hh>
Template specialisation of hit toolkit for JDAQHit class.
Definition at line 188 of file JHitToolkit.hh.
◆ getToolkit()
Get toolkit.
- Returns
- this hit toolkit
Definition at line 195 of file JHitToolkit.hh.
196 {
197 return *this;
198 }
◆ getT()
Get time of hit.
- Parameters
-
- Returns
- time of hit [ns]
Definition at line 207 of file JHitToolkit.hh.
208 {
210 }
JTDC_t getT() const
Get time.
◆ getToT()
Get time-over-threshold of hit.
- Parameters
-
- Returns
- time-over-threshold of hit [ns]
Definition at line 219 of file JHitToolkit.hh.
220 {
222 }
JTOT_t getToT() const
Get time-over-threshold.
◆ getJHit()
◆ getHit()
Construct hit.
- Parameters
-
hit | DAQ hit |
cal | calibration |
- Returns
- hit
Definition at line 244 of file JHitToolkit.hh.
245 {
246 return hit;
247 }
◆ getEndMarker()
Get end marker.
- Returns
- latest possible hit
Definition at line 255 of file JHitToolkit.hh.
256 {
257 return JDAQHit(0, std::numeric_limits<JDAQHit::JTDC_t>::max(), 0);
258 }
◆ getTimeDifference()
Get time difference between two hits.
- Parameters
-
first | first hit |
second | second hit |
- Returns
- time second hit - time first hit [ns]
Definition at line 268 of file JHitToolkit.hh.
◆ operator()()
Compare time of two hits.
- Parameters
-
first | first hit |
second | second hit |
- Returns
- true if second hit later; else false
Definition at line 281 of file JHitToolkit.hh.
◆ join()
Join two hits.
- Parameters
-
first | first hit |
second | second hit |
- Returns
- joined hit
Definition at line 294 of file JHitToolkit.hh.
295 {
297
298 hit.join(second);
299
300 return hit;
301 }
The documentation for this struct was generated from the following file: