BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
bmn::online::Sampler Struct Reference
Inheritance diagram for bmn::online::Sampler:
Collaboration diagram for bmn::online::Sampler:

Protected Member Functions

void Init () override
void InitTask () override
Bool_t ConditionalRun () override

Static Protected Attributes

static constexpr auto OUTPUT_CHANNEL_NAME = "out-channel"

Private Attributes

TString fEventsFilePath = ""
UShort_t fEventDispatchDelay = 1000
size_t fCurrentEvent = 0
std::unique_ptr< TFile > fEventFile
std::unique_ptr< TTree > fEventData
size_t fNEvents = 0

Detailed Description

Definition at line 15 of file sampler.cxx.

Member Function Documentation

◆ ConditionalRun()

Bool_t bmn::online::Sampler::ConditionalRun ( )
inlineoverrideprotected

Definition at line 36 of file sampler.cxx.

References fCurrentEvent, fEventData, fEventDispatchDelay, fNEvents, and OUTPUT_CHANNEL_NAME.

◆ Init()

void bmn::online::Sampler::Init ( )
inlineoverrideprotected

Definition at line 20 of file sampler.cxx.

References fCurrentEvent, fEventDispatchDelay, and fEventsFilePath.

◆ InitTask()

void bmn::online::Sampler::InitTask ( )
inlineoverrideprotected

Definition at line 27 of file sampler.cxx.

References fEventData, fEventFile, fEventsFilePath, fNEvents, and TFile::Open().

Here is the call graph for this function:

Member Data Documentation

◆ fCurrentEvent

size_t bmn::online::Sampler::fCurrentEvent = 0
private

Definition at line 64 of file sampler.cxx.

Referenced by ConditionalRun(), and Init().

◆ fEventData

std::unique_ptr<TTree> bmn::online::Sampler::fEventData
private

Definition at line 67 of file sampler.cxx.

Referenced by ConditionalRun(), and InitTask().

◆ fEventDispatchDelay

UShort_t bmn::online::Sampler::fEventDispatchDelay = 1000
private

Definition at line 63 of file sampler.cxx.

Referenced by ConditionalRun(), and Init().

◆ fEventFile

std::unique_ptr<TFile> bmn::online::Sampler::fEventFile
private

Definition at line 66 of file sampler.cxx.

Referenced by InitTask().

◆ fEventsFilePath

TString bmn::online::Sampler::fEventsFilePath = ""
private

Definition at line 62 of file sampler.cxx.

Referenced by Init(), and InitTask().

◆ fNEvents

size_t bmn::online::Sampler::fNEvents = 0
private

Definition at line 68 of file sampler.cxx.

Referenced by ConditionalRun(), and InitTask().

◆ OUTPUT_CHANNEL_NAME

auto bmn::online::Sampler::OUTPUT_CHANNEL_NAME = "out-channel"
staticconstexprprotected

Definition at line 18 of file sampler.cxx.

Referenced by ConditionalRun().


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