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
12#include <iostream>
13
14using namespace std;
15using namespace Belle2;
16
17
18void RunInfo::Print(Option_t*) const
19{
20 std::cout << " " << std::endl;
21 std::cout << "Run Summary" << std::endl;
22 std::cout << " Exp " << m_exp << ", Run " << m_run << std::endl;
23 std::cout << " Run Type " << m_runType << std::endl;
24 std::cout << " Start time " << m_startTime << ", Stop time " << m_stopTime
25 << ", Run Length " << m_runLength << ", Trigger Rate " << m_triggerRate << std::endl;
26 std::cout << " Received nevents " << m_receivedNevent << " Accepted nevents " << m_acceptedNevent
27 << ", Sent nevents " << m_sentNevent << std::endl;
28
29 std::cout << "Detector used " << std::endl;
30 for (const Const::EDetector& det : m_Belle2Detector) {
31 std::cout << det << " : " ;
32 }
33 std::cout << std::endl;
34
35
36}
37
38
39
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:18
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.