Belle II Software  release-08-01-10
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 
15 using namespace std;
16 using namespace Belle2;
17 
18 
19 void 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
Abstract base class for different kinds of events.