Belle II Software development
CALogger Struct Reference

simple logger for CA algorithm More...

#include <CALogger.h>

Public Member Functions

std::string getStringCellsOfState (std::vector< unsigned int > &nCellsOfState)
 returns string containing number of Cells for each state occurred:
 

Public Attributes

unsigned int nPasses = 0
 counts number of passes executed so far
 
std::vector< std::pair< int, std::vector< unsigned int > > > passResults
 collects results for each pass for debugging purposes
 
unsigned int nFails = 0
 counts number of fails happened so far
 

Detailed Description

simple logger for CA algorithm

Definition at line 22 of file CALogger.h.

Member Function Documentation

◆ getStringCellsOfState()

std::string getStringCellsOfState ( std::vector< unsigned int > &  nCellsOfState)
inline

returns string containing number of Cells for each state occurred:

Definition at line 34 of file CALogger.h.

35 {
36 std::string out = "";
37 for (unsigned int i = 0; i < nCellsOfState.size(); i++)
38 { out += "had " + std::to_string(nCellsOfState[i]) + " cells of state " + std::to_string(i) + "\n"; }
39 return out;
40 }

Member Data Documentation

◆ nFails

unsigned int nFails = 0

counts number of fails happened so far

Definition at line 30 of file CALogger.h.

◆ nPasses

unsigned int nPasses = 0

counts number of passes executed so far

Definition at line 24 of file CALogger.h.

◆ passResults

std::vector< std::pair< int, std::vector<unsigned int> > > passResults

collects results for each pass for debugging purposes

Definition at line 27 of file CALogger.h.


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