R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BEventProgressPrinter Class Reference

#include <R3BFileSource2.h>

Public Member Functions

 R3BEventProgressPrinter ()=default
 
void SetRunID (unsigned int runID)
 
void SetMaxEventNum (unsigned int max_event_num)
 
void SetRefreshRate_Hz (float rate)
 
void ShowProgress (uint64_t event_num)
 

Private Member Functions

void Print (uint64_t event_num, double speed_per_ms)
 

Private Attributes

uint64_t max_event_num_ = 0
 
float refresh_rate_ = 2.
 
std::chrono::milliseconds refresh_period_ { static_cast<int>(1000. / refresh_rate_) }
 
unsigned int run_id_ = 0
 
std::chrono::time_point< std::chrono::steady_clock > previous_t_ = std::chrono::steady_clock::now()
 
uint64_t previous_event_num_ = 0
 

Detailed Description

Definition at line 38 of file R3BFileSource2.h.

Constructor & Destructor Documentation

◆ R3BEventProgressPrinter()

R3BEventProgressPrinter::R3BEventProgressPrinter ( )
default

Member Function Documentation

◆ Print()

void R3BEventProgressPrinter::Print ( uint64_t event_num,
double speed_per_ms )
private

Definition at line 251 of file R3BFileSource2.cxx.

◆ SetMaxEventNum()

void R3BEventProgressPrinter::SetMaxEventNum ( unsigned int max_event_num)
inline

Definition at line 43 of file R3BFileSource2.h.

◆ SetRefreshRate_Hz()

void R3BEventProgressPrinter::SetRefreshRate_Hz ( float rate)

Definition at line 216 of file R3BFileSource2.cxx.

◆ SetRunID()

void R3BEventProgressPrinter::SetRunID ( unsigned int runID)
inline

Definition at line 42 of file R3BFileSource2.h.

◆ ShowProgress()

void R3BEventProgressPrinter::ShowProgress ( uint64_t event_num)

Definition at line 227 of file R3BFileSource2.cxx.

Member Data Documentation

◆ max_event_num_

uint64_t R3BEventProgressPrinter::max_event_num_ = 0
private

Definition at line 48 of file R3BFileSource2.h.

◆ previous_event_num_

uint64_t R3BEventProgressPrinter::previous_event_num_ = 0
private

Definition at line 53 of file R3BFileSource2.h.

◆ previous_t_

std::chrono::time_point<std::chrono::steady_clock> R3BEventProgressPrinter::previous_t_ = std::chrono::steady_clock::now()
private

Definition at line 52 of file R3BFileSource2.h.

◆ refresh_period_

std::chrono::milliseconds R3BEventProgressPrinter::refresh_period_ { static_cast<int>(1000. / refresh_rate_) }
private

Definition at line 50 of file R3BFileSource2.h.

◆ refresh_rate_

float R3BEventProgressPrinter::refresh_rate_ = 2.
private

Definition at line 49 of file R3BFileSource2.h.

◆ run_id_

unsigned int R3BEventProgressPrinter::run_id_ = 0
private

Definition at line 51 of file R3BFileSource2.h.


The documentation for this class was generated from the following files: