Belle II Software
release-05-01-25
PayloadFile.cc
1
/**************************************************************************
2
* BASF2 (Belle Analysis Framework 2) *
3
* Copyright(C) 2016 - Belle II Collaboration *
4
* *
5
* Author: The Belle II Collaboration *
6
* Contributors: Thomas Kuhr *
7
* *
8
* This software is provided "as is" without any warranty. *
9
**************************************************************************/
10
11
#include <framework/database/PayloadFile.h>
12
#include <framework/logging/Logger.h>
13
#include <fstream>
14
15
using namespace
std;
16
using namespace
Belle2
;
17
18
19
string
PayloadFile::getContent()
const
20
{
21
ifstream file(m_fileName.c_str());
22
if
(!file.is_open()) {
23
B2ERROR(
"Opening of payload file "
<< m_fileName <<
" failed."
);
24
return
""
;
25
}
26
stringstream buffer;
27
buffer << file.rdbuf();
28
return
buffer.str();
29
}
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
framework
database
src
PayloadFile.cc
Generated on Fri Nov 5 2021 03:52:00 for Belle II Software by
1.8.17