R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3B::Mille Class Reference

#include <Mille.h>

Public Member Functions

 Mille (std::string_view outFileName, bool asBinary=true, bool writeZero=false)
 
void set_buffer_size (std::size_t buffer_size)
 
void mille (const MilleDataPoint &data_point)
 
void special (const std::vector< std::pair< int, float > > &special_data)
 
void kill ()
 
void end ()
 
void close ()
 

Private Member Functions

void check_buffer_size (std::size_t nLocal, std::size_t nGlobal)
 
void write_to_binary ()
 
void write_to_non_binary ()
 

Private Attributes

bool has_special_done_ = false
 
bool is_binary_ = true
 
bool is_zero_written_ = false
 
MilleBuffer< int, float > buffer_
 
std::size_t max_buffer_size_ = DEFAULT_BUFFER_SIZE
 
std::ofstream output_file_
 

Static Private Attributes

static constexpr unsigned int max_label_size_ = (0xFFFFFFFF - (1U << 31U))
 

Detailed Description

Definition at line 38 of file Mille.h.

Constructor & Destructor Documentation

◆ Mille()

R3B::Mille::Mille ( std::string_view outFileName,
bool asBinary = true,
bool writeZero = false )
explicit

Definition at line 35 of file Mille.cxx.

Member Function Documentation

◆ check_buffer_size()

void R3B::Mille::check_buffer_size ( std::size_t nLocal,
std::size_t nGlobal )
private

Definition at line 142 of file Mille.cxx.

◆ close()

void R3B::Mille::close ( )

Definition at line 141 of file Mille.cxx.

◆ end()

void R3B::Mille::end ( )

Definition at line 114 of file Mille.cxx.

◆ kill()

void R3B::Mille::kill ( )
inline

Definition at line 46 of file Mille.h.

◆ mille()

void R3B::Mille::mille ( const MilleDataPoint & data_point)

Definition at line 48 of file Mille.cxx.

◆ set_buffer_size()

void R3B::Mille::set_buffer_size ( std::size_t buffer_size)
inline

Definition at line 42 of file Mille.h.

◆ special()

void R3B::Mille::special ( const std::vector< std::pair< int, float > > & special_data)

Definition at line 90 of file Mille.cxx.

◆ write_to_binary()

void R3B::Mille::write_to_binary ( )
private

Definition at line 124 of file Mille.cxx.

◆ write_to_non_binary()

void R3B::Mille::write_to_non_binary ( )
private

Definition at line 134 of file Mille.cxx.

Member Data Documentation

◆ buffer_

MilleBuffer<int, float> R3B::Mille::buffer_
private

Definition at line 58 of file Mille.h.

◆ has_special_done_

bool R3B::Mille::has_special_done_ = false
private

Definition at line 55 of file Mille.h.

◆ is_binary_

bool R3B::Mille::is_binary_ = true
private

Definition at line 56 of file Mille.h.

◆ is_zero_written_

bool R3B::Mille::is_zero_written_ = false
private

Definition at line 57 of file Mille.h.

◆ max_buffer_size_

std::size_t R3B::Mille::max_buffer_size_ = DEFAULT_BUFFER_SIZE
private

Definition at line 59 of file Mille.h.

◆ max_label_size_

unsigned int R3B::Mille::max_label_size_ = (0xFFFFFFFF - (1U << 31U))
staticconstexprprivate

Definition at line 60 of file Mille.h.

◆ output_file_

std::ofstream R3B::Mille::output_file_
private

Definition at line 61 of file Mille.h.


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