Belle II Software development
TwoTimes Struct Reference

Structure to hold calpulse raw times expressed in samples since sample 0 of window 0. More...

#include <TOPTimeBaseCalibratorModule.h>

Public Member Functions

 TwoTimes (double time1, double time2, double sig)
 Full constructor.
 

Public Attributes

float t1 = 0
 time of the first pulse [samples]
 
float t2 = 0
 time of the second pulse [samples]
 
float sigma = 0
 uncertainty of time difference (r.m.s.)
 
bool good = false
 flag
 

Detailed Description

Structure to hold calpulse raw times expressed in samples since sample 0 of window 0.

Definition at line 51 of file TOPTimeBaseCalibratorModule.h.

Constructor & Destructor Documentation

◆ TwoTimes()

TwoTimes ( double  time1,
double  time2,
double  sig 
)
inline

Full constructor.

Definition at line 60 of file TOPTimeBaseCalibratorModule.h.

61 {
62 if (time1 < time2) {
63 t1 = time1;
64 t2 = time2;
65 } else {
66 t1 = time2;
67 t2 = time1;
68 }
69 sigma = sig;
70 good = true;
71 }
float t2
time of the second pulse [samples]
float t1
time of the first pulse [samples]
float sigma
uncertainty of time difference (r.m.s.)

Member Data Documentation

◆ good

bool good = false

flag

Definition at line 55 of file TOPTimeBaseCalibratorModule.h.

◆ sigma

float sigma = 0

uncertainty of time difference (r.m.s.)

Definition at line 54 of file TOPTimeBaseCalibratorModule.h.

◆ t1

float t1 = 0

time of the first pulse [samples]

Definition at line 52 of file TOPTimeBaseCalibratorModule.h.

◆ t2

float t2 = 0

time of the second pulse [samples]

Definition at line 53 of file TOPTimeBaseCalibratorModule.h.


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