Belle II Software development
Debug.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#ifndef TRGDebug_FLAG_
10#define TRGDebug_FLAG_
11
12#include <vector>
13#include <string>
14
15namespace Belle2 {
22 class TRGDebug {
23
24 public:
25
27 static int level(void);
28
30 static int level(int newLevel, bool thisStageOnly = false);
31
33 static void enterStage(const std::string& stageName);
34
36 static void leaveStage(const std::string& stageName);
37
39 static std::string tab(void);
40
42 static std::string tab(int extra);
43
44 private:
45
47 static std::vector<std::string> _stages;
48
50 static int _level;
51 };
52
53//-----------------------------------------------------------------------------
54
56} // namespace Belle2
57
58#endif /* TRGDebug_FLAG_ */
A class for debugging of TSIM.
Definition: Debug.h:22
static std::string tab(void)
returns tab spaces.
Definition: Debug.cc:47
static void enterStage(const std::string &stageName)
Declare that you enter new stage.
Definition: Debug.cc:24
static std::vector< std::string > _stages
Storage for stages.
Definition: Debug.h:47
static int _level
Debug level. 0:do nothing, 1:show you flow, 2:show you detail, 10:show you very detail.
Definition: Debug.h:50
static int level(void)
returns the debug level.
Definition: Debug.cc:67
static void leaveStage(const std::string &stageName)
Declare that you leave a stage.
Definition: Debug.cc:34
Abstract base class for different kinds of events.