Belle II Software
release-05-01-25
CALogger.h
1
/**************************************************************************
2
* BASF2 (Belle Analysis Framework 2) *
3
* Copyright(C) 2015 - Belle II Collaboration *
4
* *
5
* Author: The Belle II Collaboration *
6
* Contributors: Jakob Lettenbichler *
7
* *
8
* This software is provided "as is" without any warranty. *
9
**************************************************************************/
10
#pragma once
11
12
#include <utility>
13
#include <vector>
14
#include <string>
15
16
17
namespace
Belle2
{
24
struct
CALogger {
26
unsigned
int
nPasses
= 0;
27
29
std::vector< std::pair< int, std::vector<unsigned int> > >
passResults
;
30
32
unsigned
int
nFails
= 0;
33
35
// small lambda function for printing the results
36
std::string
getStringCellsOfState
(std::vector<unsigned int>& nCellsOfState)
37
{
38
std::string out =
""
;
39
for
(
unsigned
int
i = 0; i < nCellsOfState.size(); i++)
40
{ out +=
"had "
+ std::to_string(nCellsOfState[i]) +
" cells of state "
+ std::to_string(i) +
"\n"
; }
41
return
out;
42
}
43
};
44
46
}
//Belle2 namespace
Belle2::CALogger::nFails
unsigned int nFails
counts number of fails happened so far
Definition:
CALogger.h:40
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
Belle2::CALogger::nPasses
unsigned int nPasses
counts number of passes executed so far
Definition:
CALogger.h:34
Belle2::CALogger::passResults
std::vector< std::pair< int, std::vector< unsigned int > > > passResults
collects results for each pass for debugging purposes
Definition:
CALogger.h:37
Belle2::CALogger::getStringCellsOfState
std::string getStringCellsOfState(std::vector< unsigned int > &nCellsOfState)
returns string containing number of Cells for each state occured:
Definition:
CALogger.h:44
tracking
trackFindingVXD
algorithms
include
CALogger.h
Generated on Fri Nov 5 2021 04:04:25 for Belle II Software by
1.8.17