Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JDATABASE::JToAshort Struct Reference

#include <JToAshort.hh>

Inheritance diagram for JDATABASE::JToAshort:
TObject

Public Member Functions

int64_t getAbsoluteToA_ns () const
 return the absolute Time Of Arrival, in nanoseconds (since Unix epoch 1 January 1970 00:00:00 UTC)
 
int64_t getDAQFrameNanoseconds () const
 get the number of nanoseconds (since Unix epoch) of the DAQ Frame start time
 
uint32_t getDAQFrameSeconds () const
 get the number of seconds (since Unix epoch) of the DAQ Frame start time
 
uint32_t getDAQFrameTicks () const
 get the number of ticks (16 ns) of the DAQ Frame start time
 
 ClassDef (JToAshort, 1)
 

Static Public Member Functions

static const char *const getName ()
 Table name.
 

Public Attributes

std::string DETID
 constraint
 
int RUN
 
int RUNNUMBER
 
double UNIXTIMEBASE
 [s]
 
int DOMID
 
int EMITTERID
 waveform identifier
 
double TOA_S
 [s]
 
int QUALITYFACTOR
 
int QUALITYNORMALISATION = 0
 

Static Public Attributes

static constexpr int64_t NANOSECONDS_IN_ONE_SECOND = 1000000000
 
static constexpr int64_t ONE_TICK_NS = 16
 

Detailed Description

Definition at line 19 of file JToAshort.hh.

Member Function Documentation

◆ getName()

static const char *const JDATABASE::JToAshort::getName ( )
inlinestatic

Table name.

Definition at line 22 of file JToAshort.hh.

◆ getAbsoluteToA_ns()

int64_t JDATABASE::JToAshort::getAbsoluteToA_ns ( ) const
inline

return the absolute Time Of Arrival, in nanoseconds (since Unix epoch 1 January 1970 00:00:00 UTC)

Definition at line 40 of file JToAshort.hh.

41 {
42 return llrint((TOA_S + UNIXTIMEBASE) * NANOSECONDS_IN_ONE_SECOND);
43 }
static constexpr int64_t NANOSECONDS_IN_ONE_SECOND
Definition JToAshort.hh:34
double UNIXTIMEBASE
[s]
Definition JToAshort.hh:27

◆ getDAQFrameNanoseconds()

int64_t JDATABASE::JToAshort::getDAQFrameNanoseconds ( ) const
inline

get the number of nanoseconds (since Unix epoch) of the DAQ Frame start time

Definition at line 46 of file JToAshort.hh.

47 {
49 }

◆ getDAQFrameSeconds()

uint32_t JDATABASE::JToAshort::getDAQFrameSeconds ( ) const
inline

get the number of seconds (since Unix epoch) of the DAQ Frame start time

Definition at line 52 of file JToAshort.hh.

53 {
55 }
int64_t getDAQFrameNanoseconds() const
get the number of nanoseconds (since Unix epoch) of the DAQ Frame start time
Definition JToAshort.hh:46

◆ getDAQFrameTicks()

uint32_t JDATABASE::JToAshort::getDAQFrameTicks ( ) const
inline

get the number of ticks (16 ns) of the DAQ Frame start time

Definition at line 58 of file JToAshort.hh.

59 {
61 }
static constexpr int64_t ONE_TICK_NS
Definition JToAshort.hh:35

◆ ClassDef()

JDATABASE::JToAshort::ClassDef ( JToAshort ,
1  )

Member Data Documentation

◆ DETID

std::string JDATABASE::JToAshort::DETID

constraint

Definition at line 24 of file JToAshort.hh.

◆ RUN

int JDATABASE::JToAshort::RUN

Definition at line 25 of file JToAshort.hh.

◆ RUNNUMBER

int JDATABASE::JToAshort::RUNNUMBER

Definition at line 26 of file JToAshort.hh.

◆ UNIXTIMEBASE

double JDATABASE::JToAshort::UNIXTIMEBASE

[s]

Definition at line 27 of file JToAshort.hh.

◆ DOMID

int JDATABASE::JToAshort::DOMID

Definition at line 28 of file JToAshort.hh.

◆ EMITTERID

int JDATABASE::JToAshort::EMITTERID

waveform identifier

Definition at line 29 of file JToAshort.hh.

◆ TOA_S

double JDATABASE::JToAshort::TOA_S

[s]

Definition at line 30 of file JToAshort.hh.

◆ QUALITYFACTOR

int JDATABASE::JToAshort::QUALITYFACTOR

Definition at line 31 of file JToAshort.hh.

◆ QUALITYNORMALISATION

int JDATABASE::JToAshort::QUALITYNORMALISATION = 0

Definition at line 32 of file JToAshort.hh.

◆ NANOSECONDS_IN_ONE_SECOND

int64_t JDATABASE::JToAshort::NANOSECONDS_IN_ONE_SECOND = 1000000000
staticconstexpr

Definition at line 34 of file JToAshort.hh.

◆ ONE_TICK_NS

int64_t JDATABASE::JToAshort::ONE_TICK_NS = 16
staticconstexpr

Definition at line 35 of file JToAshort.hh.


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