Reduced data structure for L0 hit.
More...
#include <JHitR0.hh>
|
| JHitR0 () |
| Default constructor.
|
|
| JHitR0 (const JPMT_t &id, const JHit &hit) |
| Constructor.
|
|
JPMT_t | getPMT () const |
| Get PMT.
|
|
int | getN () const |
| Get count.
|
|
double | getW () const |
| Get weight.
|
|
const JHit & | getHit () const |
| Get hit.
|
|
| operator double () const |
| Type conversion.
|
|
double | getT () const |
| Get calibrated time of hit.
|
|
double | getToT () const |
| Get calibrated time over threshold of hit.
|
|
double | getT1 () const |
| Get leading edge of hit.
|
|
double | getT2 () const |
| Get trailing edge of hit.
|
|
void | join (const JHit &hit) |
| Join hit.
|
|
|
static bool | getSlewing () |
| Get slewing option.
|
|
static void | setSlewing (const bool slewing) |
| Set slewing option.
|
|
|
static const struct JTRIGGER::JHitR0::compare | compare |
|
|
static bool & | get_slewing () |
| Get reference to slewing parameter.
|
|
|
JPMT_t | pmt |
| PMT readout channel in FPGA.
|
|
double | t |
| time of leading edge [ns]
|
|
double | tot |
| time-over-threshold [ns]
|
|
Reduced data structure for L0 hit.
Definition at line 25 of file JHitR0.hh.
◆ JPMT_t
PMT channel in FPGA.
Definition at line 30 of file JHitR0.hh.
◆ JHitR0() [1/2]
JTRIGGER::JHitR0::JHitR0 |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 36 of file JHitR0.hh.
36 :
39 {}
JPMT_t pmt
PMT readout channel in FPGA.
JHit()
Default constructor.
◆ JHitR0() [2/2]
JTRIGGER::JHitR0::JHitR0 |
( |
const JPMT_t & | id, |
|
|
const JHit & | hit ) |
|
inline |
Constructor.
- Parameters
-
Definition at line 48 of file JHitR0.hh.
◆ getPMT()
JPMT_t JTRIGGER::JHitR0::getPMT |
( |
| ) |
const |
|
inline |
Get PMT.
- Returns
- PMT
Definition at line 60 of file JHitR0.hh.
◆ getN()
int JTRIGGER::JHitR0::getN |
( |
| ) |
const |
|
inline |
Get count.
- Returns
- count
Definition at line 71 of file JHitR0.hh.
◆ getW()
double JTRIGGER::JHitR0::getW |
( |
| ) |
const |
|
inline |
Get weight.
The returned weight is set to one.
- Returns
- 1
Definition at line 83 of file JHitR0.hh.
◆ getHit()
const JHit & JTRIGGER::JHit::getHit |
( |
| ) |
const |
|
inlineinherited |
Get hit.
- Returns
- hit
Definition at line 99 of file JTrigger/JHit.hh.
100 {
101 return static_cast<const JHit&
>(*this);
102 }
◆ getSlewing()
static bool JTRIGGER::JHit::getSlewing |
( |
| ) |
|
|
inlinestaticinherited |
Get slewing option.
- Returns
- slewing option
Definition at line 110 of file JTrigger/JHit.hh.
111 {
113 }
static bool & get_slewing()
Get reference to slewing parameter.
◆ setSlewing()
static void JTRIGGER::JHit::setSlewing |
( |
const bool | slewing | ) |
|
|
inlinestaticinherited |
◆ operator double()
JTRIGGER::JHit::operator double |
( |
| ) |
const |
|
inlineinherited |
Type conversion.
- Returns
- time [ns]
Definition at line 132 of file JTrigger/JHit.hh.
133 {
135 }
double t
time of leading edge [ns]
◆ getT()
double JTRIGGER::JHit::getT |
( |
| ) |
const |
|
inlineinherited |
Get calibrated time of hit.
- Returns
- time [ns]
Definition at line 143 of file JTrigger/JHit.hh.
144 {
147 else
149 }
static bool getSlewing()
Get slewing option.
double tot
time-over-threshold [ns]
static const JGetRiseTime getRiseTime
Function object for rise time evaluation.
◆ getToT()
double JTRIGGER::JHit::getToT |
( |
| ) |
const |
|
inlineinherited |
Get calibrated time over threshold of hit.
- Returns
- time over threshold [ns]
Definition at line 157 of file JTrigger/JHit.hh.
◆ getT1()
double JTRIGGER::JHit::getT1 |
( |
| ) |
const |
|
inlineinherited |
Get leading edge of hit.
Note that no slewing correction is applied.
- Returns
- time [ns]
Definition at line 170 of file JTrigger/JHit.hh.
◆ getT2()
double JTRIGGER::JHit::getT2 |
( |
| ) |
const |
|
inlineinherited |
Get trailing edge of hit.
Note that no slewing correction is applied.
- Returns
- time [ns]
Definition at line 183 of file JTrigger/JHit.hh.
◆ join()
void JTRIGGER::JHit::join |
( |
const JHit & | hit | ) |
|
|
inlineinherited |
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 JTrigger/JHit.hh.
199 {
200 this->
tot = hit.getT2() - this->
getT1();
201 }
double getT1() const
Get leading edge of hit.
◆ get_slewing()
static bool & JTRIGGER::JHit::get_slewing |
( |
| ) |
|
|
inlinestaticprotectedinherited |
Get reference to slewing parameter.
- Returns
- reference to slewing parameter
Definition at line 213 of file JTrigger/JHit.hh.
214 {
215 static bool slewing = true;
216
217 return slewing;
218 }
◆ compare
const struct JTRIGGER::JHitR0::compare JTRIGGER::JHitR0::compare |
|
static |
◆ pmt
PMT readout channel in FPGA.
Definition at line 111 of file JHitR0.hh.
◆ tot
double JTRIGGER::JHit::tot |
|
protectedinherited |
The documentation for this class was generated from the following file: