Belle II Software development
RunInfo.cc
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#include <framework/dbobjects/RunInfo.h>
10#include <framework/gearbox/Const.h>
11#include <framework/gearbox/Unit.h>
12
13#include <iostream>
14
15using namespace std;
16using namespace Belle2;
17
18
19void RunInfo::Print(Option_t*) const
20{
21 std::cout << " " << std::endl;
22 std::cout << "Run Summary" << std::endl;
23 std::cout << " Exp " << m_exp << ", Run " << m_run << std::endl;
24 std::cout << " Run Type " << m_runType << std::endl;
25 std::cout << " Start time " << m_startTime << ", Stop time " << m_stopTime
26 << ", Run Length " << m_runLength << ", Trigger Rate " << m_triggerRate << std::endl;
27 std::cout << " Received nevents " << m_receivedNevent << " Accepted nevents " << m_acceptedNevent
28 << ", Sent nevents " << m_sentNevent << std::endl;
29
30 std::cout << "Detector used " << std::endl;
31 for (const Const::EDetector& det : m_Belle2Detector) {
32 std::cout << det << " : " ;
33 }
34 std::cout << std::endl;
35
36
37}
38
39
40
EDetector
Enum for identifying the detector components (detector and subdetector).
Definition: Const.h:42
virtual void Print(Option_t *option="") const override
Print the content value.
Definition: RunInfo.cc:19
unsigned int m_sentNevent
No.
Definition: RunInfo.h:237
unsigned int m_acceptedNevent
Get No.
Definition: RunInfo.h:234
unsigned int m_exp
Experiment Number.
Definition: RunInfo.h:216
unsigned long long int m_stopTime
Run stop time (Epoch time)
Definition: RunInfo.h:228
std::string m_runType
Run type
Definition: RunInfo.h:222
unsigned int m_run
Run Number.
Definition: RunInfo.h:219
unsigned long long int m_startTime
Run start time (Epoch time)
Definition: RunInfo.h:225
Const::DetectorSet m_Belle2Detector
DetectorSet for the sub-detector used.
Definition: RunInfo.h:249
unsigned int m_runLength
Run length (in sec) by DAQ.
Definition: RunInfo.h:243
double m_triggerRate
Trigger rate (in Hz)
Definition: RunInfo.h:240
unsigned int m_receivedNevent
No.
Definition: RunInfo.h:231
Abstract base class for different kinds of events.
STL namespace.